NetTalk Central

Author Topic: PDF generated but the report not display in web browser  (Read 2634 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
PDF generated but the report not display in web browser
« on: May 02, 2013, 10:36:28 PM »
Hi Bruce

I run a report procedure in in web mode, the pdf file is created every time an can be found in \web\reports\$$$40677.pdf but the report does not display in the web browser. I call the procedure from a button. I use PDF-XChange tools from tracker software to generate the report. The [C:\D\sqld8\web\reports\$$$74399.pdf] is not created.

The filename(glo:pdftoolsname) is generated by code and in PDF-XChange procedure extension the filename is set to !glo:pdftoolsname.

The web browser only display the following message
Date: Fri, 03 May 2013 06:28:43 GMT
Server: NetTalk-WebServer/7.07
Content-Length: 87
Content-Type: text/html
Content-Disposition: attachment; filename="pdf\$$$40677.pdf"
Connection: close

The Print procedure failed to create the PDF file [C:\D\sqld8\web\reports\$$$74399.pdf]

Any suggestions will help.

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: PDF generated but the report not display in web browser
« Reply #1 on: May 03, 2013, 03:14:13 AM »
>> I call the procedure from a button.

Tell me more about the button. Is the button on a browse or a form? What are the properties of the button set to? What type is it?

this paragraph of yours confuses me a bit. You say;

>> I run a report procedure in in web mode, the pdf file is created every time an can be found in \web\reports\$$$40677.pdf

ok, but then you say

>> The [C:\D\sqld8\web\reports\$$$74399.pdf] is not created.

So I'm not sure what you're telling me. Are you calling it from 2 different places? Obviously the name is randomized, but I think you understand that.

Perhaps if you made a small example app showing what you were doing then it'd make it easier to follow your question.

cheers
Bruce