Crystal Reports and images

How to dynamicly load an image

Page 1 of 1

2 Replies - 1146 Views - Last Post: 13 May 2009 - 03:26 AM Rate Topic: -----

#1 hinkeltje  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-April 09

Crystal Reports and images

Post icon  Posted 12 May 2009 - 02:09 AM

Hi everybody,

I have a Crystal Report report in my C# project.
And a variable 'myBinaryName' where I stored an image filename "risc1.jpg" to "risc9.jpg" in.

Now I want an image object in my Crystal Report that loads the image (located on my harddisk) depending on what name is stored in the 'myBinaryName' variable.

But I am a bit lost. Can't get this to work. Is it even possible to this? Please help!

Bye
Hinke

Is This A Good Question/Topic? 0
  • +

Replies To: Crystal Reports and images

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8962
  • View blog
  • Posts: 33,586
  • Joined: 12-June 08

Re: Crystal Reports and images

Posted 12 May 2009 - 08:42 AM

I say store the images in your database as either an image blob or a binary array.. then have your SQL determine what to get.
Was This Post Helpful? 0
  • +
  • -

#3 hinkeltje  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-April 09

Re: Crystal Reports and images

Posted 13 May 2009 - 03:26 AM

View Postmodi123_1, on 12 May, 2009 - 07:42 AM, said:

I say store the images in your database as either an image blob or a binary array.. then have your SQL determine what to get.


Thanks for your answer.
Only I don't use a database, but I get information from a third party via xml.
When I read this xml, I create a dataset and that's what I connect as source for my report.

When the code is finished with some calculations, there will be a value ranging 1 to 9.
Depending on that value, a picture "risc1.jpg" to "risc9.jpg" has to be shown on the report.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1