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.

No comments:

Post a Comment