Skip to Content

Unable to display the content of the attachment.

Dear Team,

I've a requirement, where I need to display the contents (screenshots or pictures) of an attachment ( which can be a doc or pdf) in the crystal report. Currently attachments are displaying in the form of hyperlink in the report. Instead we would like to display the contents of an attachment.

note: attachments are being retrieved from SQL server.

Thanks for your inputs. -Satish

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 27, 2018 at 02:05 PM

    Assuming the documents have just 1 page, there are 3rd-party Crystal Reports tools that make this possible.
    See list of such tools here: http://kenhamady.com/bookmarks.html
    At least 2 of these tools allow you to extract the file from the database, convert it to an image, resize the image if needed, and (through the 'graphic location' property expression) display the result in a Crystal report.

    If you need to display more than 1 page from within each attachment, the answer depends on how the user wants to consume the output of the report (on screen? merged pdf?...).

    Add comment
    10|10000 characters needed characters exceeded