CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Images in Crystal Report

    Dear Gurus,

    I have a "Ms Access" table containing a ole field, which contains the photo.

    I am able to design the report using Crystal Report 8.0, I can see the photos, in the preview, but there is absolutely "no quality."

    And even, when linked thru VB to open the report using the
    Cr.action=1 'command
    the report is displayed, the other text is also shown "except the photos."

    The photos are stored in the "table" properly. They can be seen
    through Vb (Image Box).

    What the problem I found (observed) may be the
    Crystal not showing the images properly
    and also the quality is very poor.

    I have broken my head on this for 2 days.
    Please help me out.

    Thanks in advance.

    Shivakumar G.M.

  2. #2
    Join Date
    Aug 2001
    Location
    India
    Posts
    173
    Dear gurus,

    I need some hint on thist.
    anybody could guide me out.

    Shivakumar G.M.

  3. #3
    Join Date
    May 2002
    Posts
    16
    Hi I also got the same problem. I used SQL DB though to store my .jpeg binary image in the data column.

    1 thing I noticed is that the quality of my image in Crystal Report improves if I enlarge the "box" of my image during the design time @ details section.

    I am still looking for an answer for the poor quality of image @ smaller image. The image looks excellent if I enlarge to about 1/2 the size of A4 paper.

    I have also tried doing the same thing in VB. But VB got no problem showing the picture @ whatever size the picture box is.

  4. #4
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    Thinking a little outside the square here:

    Think of your form as an HTML page (assuming that somewhere along the track you've designed web pages...) You would show a thumbnail as your image, then when the user clicks/dbl clicks on the image, it magically enlarges.

    Applying the same technique to your VB program, you could have a non-resizeable image created as a thumbnail, stored as an extra field (or create a new table for thumbnails), and provide that to the user.

    The problem comes in when you try to resize an image either much smaller, or much larger than its original size....the pixels are calculated according to a particular formula, which gets less and less accurate the further away (in size) from the original size that you get. You could perhaps be able to use the kodak image control to resize the images to the user-defined size - but it could be a little bit clunky.

    Good luck

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

Featured