Image in PDF

Posted by: ferlin on 4 August 2017, 2:31 pm EST

  • Posted 4 August 2017, 2:31 pm EST


    I have a report that prints on a preprinted form.  I have added a button on the toolbar to export to PDF, this works fine.  What I would like to do is to place an image of the form in the PDF file, but not on the actual report.

    I tried adding the image with an image control and setting visible to false, then in my PDF export routine I tried to set Image1.Visible = True, but it still does not show up in the PDF file, maybe because the report in the viewer has already been sent to the canvas, not sure.

    Could anyone tell me how to accomplish this?

    Thanks in advance.

    Ferlin Scarborough
  • Replied 4 August 2017, 2:31 pm EST

    Yes you would need to rerun the report with the image visible before you export if you want it in the PDF.
  • Replied 4 August 2017, 2:31 pm EST

    You could also take the report object after it has been run and use DrawPicture on the pages you want to add a picture to before doing the export.  This way you wouldn't have to rerun the report and would have no need for the image control on the report surface (you would just need to leave the area for the image there so you can put it in after the fact).
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels