Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to set original image size to Blobobject?

Hi to all,

I'm using Crystal Report 11.5, Asp.net2.0-C# and SQL server 2005.

I'm doing dynamic report creation job, i retrieve some byte[] from database and bind into the Crystal report Blobobject and i set height=2000 and width=1500 so the image is set to this size, what i want is then image display by the original size if i'm not specify height and width then image is not displaying. How to display the image as it is the oiriginal size?

replied

Hello, Winseelan;

The usual way to have an image show with the original size in the designer is to set Can Grow on for the object.

The CanGrow property in the report allows an object to display in it's original size. You should be able to do that using:

Dim BlobField As FieldObject

BlobField.ObjectFormat.EnableCanGrow = True

The other property I see that may be useful is OriginalHeight and OriginalWidth for ReportAlpplicationServer:

[Click|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/RAS_SDK/rassdk_net_doc/doc/rassdk_net_doc/html/raslrfCrystalDecisionsReportAppServerReportDefModelPictureObjectClassOriginalHeightTopic.htm]

Elaine

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question