This topic is locked

Using a PDF Document as Print Report Background

2/10/2014 2:29:39 PM
ASPRunnerPro General questions
M
MightyFerengi author

I have a request from our program users to take a government supplied form and have it filled out with a patient's information from the DB. I do not see an option to set the PDF file of the form into a report print page. Is there something I am missing? I want to make sure there is not an easier way to do this in ASPRunner Pro before I try to build it in HTML Editor.

Sergey Kornilov admin 2/10/2014

PDF export option is available in PHPRunner only.

M
MightyFerengi author 2/10/2014

Thanks, but I don't want to export it as a PDF. I want to put fields from the DB over the PDF background so the report can be physically printed out and signed.

Sergey Kornilov admin 2/10/2014

In PHPRunner you can achieve this (or get very close) using PDF export option of the View page for instance. Not sure how this can be done in ASPRunnerPro.

M
MightyFerengi author 2/11/2014

Okay, I have changed the PDF to a JPG and added it as a background image in the HTML Mode of the editor. This way, I can set up fields across the face of the page. I'll update this once I have managed to make it work correctly.

M
MightyFerengi author 2/12/2014

I can set up the page using the editor, however, when I build and upload the website, the Print Report page is completely empty. I have the file for the background uploaded to the same location on my webserver as I use on my build (C:/Forms). I assume that has to do with the style (css file), but I am new to ASP, so I am not exactly sure. Do I need to edit the css file or is there a step I am missing in the editor to make this background visible to print?

Sergey Kornilov admin 2/12/2014

When using images you need to specify image URL as https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=74013&image=1&table=forumreplies.
If you use paths like c:\Form web browser expects it to be on end user's machine as opposed to the web server.

M
MightyFerengi author 2/13/2014

I applied that change and the background now shows. However, the data fields are still not showing. Do they have to have a container in order to show the data? Sorry for all of the noob questions...

Sergey Kornilov admin 2/13/2014

Not sure what "container" means here. Is that a "normal" ASPRunnerPro page? If yes, data should just show.

M
MightyFerengi author 2/14/2014

Yes, the page is built in ASPRunner Pro. I am pulling data from MySQL DB and I use this table in other reports that all work correctly. However, the data only appears if I do not remove ANYTHING on the Editor page. I need the data to appear in specific places on the form, but if I remove the container grid and place the fields where I need them, the data is not pulled and printed to the report. That is why I ask if they need to be inside the "container".