cancel
Showing results for 
Search instead for 
Did you mean: 

How to set original image size to Blobobject?

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)