Monday, March 12, 2012

Problem displaying dynamic images in runtime

Hi,

My problem is that when i make a preview or print the report on runtime, using crviewer, the pictures that i inserted dynamicaly appear shrunk on the top left side of the picture box. Its not the picture box that shrinks its only the image.

The only way to make the image use all the box is by enabling the can grow option but thats not what i need, i need all the pics of the same size.

PS: by the tests i made it seems that crystal is making the stretch in wrong way, calculating how mutch it should shrink the image right but using it on the size of the box instead of using it on the size of the image :P.

If any one has this problem or the solution ...

THANKS!!!Even I have a similar issue. I am using CR XI for .Net.

I have .XSD file as a datasource to my CR at design time. This TypedDataset(.XSD) has got a column. ImageBinary. which holds the binary data of the image and two more columns which have the height and the width of the image.

I drag and drop this ImageBinary column at design time.

At runtime I am able to display the image in this CR's blob field, but I am unable to resize it as per the height and width provided.

It will be of great help if any one could please let me know in Crystal Report how to resize the BLOB field at runtime.

Regards
Lalit

No comments:

Post a Comment