NetTalk Central

Author Topic: PDF document  (Read 3736 times)

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
PDF document
« on: August 05, 2009, 01:25:42 AM »
Hi,

When creating a PDF document with example web13.app the extension '.pdf' is not added to MailboxesReport report. So the browser doesn't open the PDF file because it doesn't know that the file is an PDF file.

How can I solve this?

Thanks.

Bram



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PDF document
« Reply #1 on: August 07, 2009, 09:44:03 PM »
Hi Bram,

it's not the extension that tells the browser the nature of the page contents, it's the header field called Content-Type:

When PDF reports are generated and sent to the browser, the Content-Type is set to application/pdf.

On the browser side, the browser then checks to see what apps it has listed for that application type, and opens one as appropiate.

So the most likely reason for it not opening is that there's not PDF reader installed on the client machine.

Cheers
Bruce

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
Re: PDF document
« Reply #2 on: August 15, 2009, 11:14:09 AM »
Hi Bruce,

I did some testing and with Adobe Reader NTWS works fine. With PDF-Viewer (www.docu-track.com) it doesn't open NTWS pdf files.
With all other pdf documents this viewer has no problems, I think because most files has the '.pdf' extension and the NTWS pdf document hasn't.

Thanks.

Bram

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PDF document
« Reply #3 on: August 18, 2009, 10:26:03 PM »
Hi Bram,

Well you can add the .Pdf extension to the URL if you like.
ie, in the example, in PageHeaderTag procedure is the menu. Go to the 'Report' menu, then to the 'Mailboxes' option. Set the URL to
'MailboxesReport.pdf'

See if that helps.
(Report procedures automatically respond to their name used as a URL, or their name appended with .pdf).

Cheers
Bruce