Results 1 to 10 of 10

Thread: Crystal Report Dynamic Picture

  1. #1

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362

    Crystal Report Dynamic Picture

    I have in my database field with an ID. Each ID is link to a picture in a folder.

    How can I load the picture in the CrystalReport?

    I know how to add a static image that doesn't change but how can I changed the picture depending of 1 field of the query?

  2. #2

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    I will explain in other words.

    I have a database :

    [TABLENAME]
    -id
    -name
    -image_path

    In my program I want to show up a Cystal Report for 1 id. I have the code and it works well.

    Now, I would like to add the picture that I have the path in the database. How can I have a picturebox in my Crystal Report that will be able to show the picture?

  3. #3
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    nm

  4. #4

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    what nm mean?

  5. #5
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    No message, had thought your problem was displaying a picture on a form and was posting that reply. Really for what you want to do, you are better storing the images in the database and of course then it's a breeze to include them in the report.

  6. #6

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    database will be too big later that's the problem.

  7. #7
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I think I can help you on this. Wait and i will come with a possible answer.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  8. #8

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    Originally posted by Lunatic3
    I think I can help you on this. Wait and i will come with a possible answer.
    Thx bro, I still continue to search on my side too

  9. #9
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I wroked on it and i think there are two ways to have dynamic pictures in CR.

    1- Load all of your images into a dataset at run time and base that part of the report on the dataset. In this case your real database file does not grow large.

    2- Insert an oleobject into the report and link it to a picture file, then change that picture as needed.

    The problem I faced with both of the ways is that it seems you can only use bitmaps otherwise CR doesnt show the picture.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  10. #10

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    Originally posted by Lunatic3
    I wroked on it and i think there are two ways to have dynamic pictures in CR.

    1- Load all of your images into a dataset at run time and base that part of the report on the dataset. In this case your real database file does not grow large.

    2- Insert an oleobject into the report and link it to a picture file, then change that picture as needed.

    The problem I faced with both of the ways is that it seems you can only use bitmaps otherwise CR doesnt show the picture.
    When I display picture in my program I download the file to a Byte[] and I'll display it on a picture box after. I do this cause I download the picture on a Http Server that is not connected on a lan. If I do need to use temporely database space to be able to use the picture that will load too much traffic for nothing. I might just forgot to add the picture on the Report... but grr that's not what I desired at the beginning.

    I might need to change the way that user are in communication with picture then.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width