Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE-directing recordset output to a .PDF file

Status
Not open for further replies.

david7777777777

Programmer
Sep 26, 2001
417
US
I have a grid DTC displaying information from a recordset, very simple. Can I send the output to a file (preferrabably a PDF)instead of the grid? The problem is that when the data is displayed in the grid in the browser you cannot print the whole grid because it's too wide and I've made it as small as I can using the Format controls in the DTC property page. I would like to provide the user with a browser-printable page, meaning it can be printed easily right from the browser with no cut-off information. Thanks.
 
Hi, it's not that simple to make a pdf. You can use the Adobe FDF Toolkit (Free at Adobe.com) and produce fdf-files. I'm using activePDF ( server for the job. Quite simple to work with.

Hope that helps
 
And you could try crystal reports too.

You could output the data in comma-separated format, and set some page headers so that the browser auto-loads Excel:

'-- Tell the browser the data is a CSV...
Response.ContentType="application/csv"
'-- associate a file name with the data...
Response.AddHeader "Content-Disposition", "filename=data.csv;"

Make sure the data does not contain commas (do a replace function to cast all commas to some other character).
(Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top