Date:  02/03/2009 11:07:13 AM Msg ID:  003901
From:  poropeza Thread:  003899
Subject:  Re: Show pdf files
Thanks :)
if upgrade my foxweb to the version 4.3 and i have my pdf files in fields blob in a table i'm not need convert file to pdf, as it is the procedure to show it in browser?
 
by example, my report show in the web:
 
Invoice #      Document
  9999         see invoice
 
if click in see invoice, open a document pdf content into actual record in the file
he is complicated? that steps I must follow?
 
Thanks
I am thankful for its help
 
 
Sent by FoxWeb Support on 01/30/2009 01:18:33 PM:
In order to support this you will need to create another script, which you will make the target of all your PDF links. These links will contains a query string variable that identifies the PDF file you would like to display.
 
The script will load the appropriate PDF file from the memo file (what you called "field blob") and return it to the browser, along with the appropriate HTTP headers. For additional information on how to serve non-HTML content from your scripts please refer to the Returning Non-HTML Content section of the Returning Content to the Browser topic in the FoxWeb documentation.
 
Note that FoxWeb 4 added the fwPDF object, which makes it much easier to do this.
FoxWeb Support Team
support@foxweb.com email
Sent by poropeza on 01/30/2009 11:56:58 AM:
Hi, excuse me my english :) I have a question, at the moment I have a system that shows something thus: Reference item description purchase date invoice 9999 1234 product x 01/29/2009 1500 . . . . . I need to add a column with a Link to a document pdf, this document this stored in a field blob, for example: Reference item description purchase date invoice Pdf 9999 1234 product x 01/29/2009 1500 show . . . . . . where the field show have a Link to file pdf when the client click in the Link (show) that client can see the selected document pdf I have foxweb ver. 2.6 thanks for its aid , thanks very much