Showing posts with label height. Show all posts
Showing posts with label height. Show all posts

Monday, March 19, 2012

Custom report item

How would one go about setting the height of a custom report item programmatically?

I have a custom report item that renders back an image of indeterminate height. I cannot simply set RenderItem.Sizing = Image.Sizings.AutoSize; As the image is being rendered back at 300 dpi and will require being set to FitProportional. Therefore I need to set the height to a scale height. I've tried setting CRI.Height to a ReportSize value, but it tells me that I cannot because of the current state of the item.

I have also tried setting the Width and Height of the Microsoft.ReportingServices.ReportRendering.Image to the needed values, but that appears to be completely ignored when the report is generated.

Custom report item

How would one go about setting the height of a custom report item programmatically?

I have a custom report item that renders back an image of indeterminate height. I cannot simply set RenderItem.Sizing = Image.Sizings.AutoSize; As the image is being rendered back at 300 dpi and will require being set to FitProportional. Therefore I need to set the height to a scale height. I've tried setting CRI.Height to a ReportSize value, but it tells me that I cannot because of the current state of the item.

I have also tried setting the Width and Height of the Microsoft.ReportingServices.ReportRendering.Image to the needed values, but that appears to be completely ignored when the report is generated.

Sunday, March 11, 2012

Custom Paper Size

My body width is set to 10. My left and right margins are set to 0.5in. And my page width and height are set to 11in and 8.5in, respectively.

So in essence, I want to print my reports on Letter in Landscape mode.

Yet when I go to print the report and look at the properties, it shows as 215.9 x 279.4 mm Custom paper.

Any ideas?

Thanks.

May have found something. Even though my report is set to 11x8.5 with 0.5 margins (giving me 10in to work with), I found my header, body, and footer set to 10.0000001.

It seems that using snap to grid and the ruler for sizing and positioning add a infinitesmal value which throws off paper selection.

Thursday, March 8, 2012

Custom Height Footer

Hello
I really hope some one can help me resolve this problem.
I need to be able to print my footer at different heights.
For example:
On the first page i need my footer to start printing at 1.5 in
And all other pager at 0.5 in
Im using Crystal Report 10Here is the structure of my report

GH1 - ITEMNO
GH2 - Header for the ITEMNO
DETAIL at the and of page1 I need to change footer height
GF2 Not Used
GF1A - ITEMNO Additional Info
GF1B - ITEMNO Additional Info|||you can create two footers one at 1.5 and the other at 0.5.

Create 2 shared booleanvar footer_1 and footer_2.

You can manage these variables to show and hide the required footer. First footer_1:= true;
footer_2:=false;

after showing the firt footer or in first footer change the variables to
footer_1:=false;
footer_2:=true;

now your 2nd footer will show onward.