Stream documents to Response.ContentType="application/pdf"

D

David Lozzi

Hello, this is a repost of a previous post of mine from today.

I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single Crystal Report to PDF and it works quite nicely using the Response.ContentType = "application/pdf". However, the users have an option to include other documents/reports in their report that are associated with the report.

For example: User previews a single report called a case. WIth the case, there are files users have uploaded to it, files and images, etc.. There are other reports that pertain to the case but collect separate information. The user can Export Case to PDF, which will present the user with the list of attachments and the list of other reports that may pertain to this report. They can then select which items they want from both lists and then export everything to a single PDF file for easy managment.

I just need assistance in the PDF creation step, how to include all of these items into one PDF file. Is there a reference on how to handle each item separatly? Or maybe how to do exactly what I am trying to do?

Thanks a TON!
 
D

David Lozzi

I got it to stream another PDF file to the output... but when i change it to excel, for example, the Adobe reader on my PC states the file is corrupted. How can I stream an Excel (or word, images, etc) file to PDF????

Thanks!!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


Hello, this is a repost of a previous post of mine from today.

I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single Crystal Report to PDF and it works quite nicely using the Response.ContentType = "application/pdf". However, the users have an option to include other documents/reports in their report that are associated with the report.

For example: User previews a single report called a case. WIth the case, there are files users have uploaded to it, files and images, etc.. There are other reports that pertain to the case but collect separate information. The user can Export Case to PDF, which will present the user with the list of attachments and the list of other reports that may pertain to this report. They can then select which items they want from both lists and then export everything to a single PDF file for easy managment.

I just need assistance in the PDF creation step, how to include all of these items into one PDF file. Is there a reference on how to handle each item separatly? Or maybe how to do exactly what I am trying to do?

Thanks a TON!
 
M

MWells

David, PDF is a proprietary format developed by Adobe. It's not at all related to the file structure that Excel uses, so the two are not compatible.

To return an Excel file as a PDF you have a two primary options;

1. Do it in advance. Create PDF files of your documents using Adobe Acrobat (or related products), and then return the PDF file when requested.

2. Get a PDF-document-creation library and do this on-the-fly. i.e. someone requests the Excel file, you get it, convert it to a PDF, and ship it back.

Kevin's earlier comment highlights #2; Adobe provides an API for this. There are also a number of third party products, including .NET-specific libraries for this task. I know of ActivePDF but you should do your own review based on your specific requirements.

I recall that Adobe has a server product for generating PDFs from large batches of documents. It may do this on-demand as well. If you're trying to append multiple files into a single PDF however, you may be forced to use a library.



I got it to stream another PDF file to the output... but when i change it to excel, for example, the Adobe reader on my PC states the file is corrupted. How can I stream an Excel (or word, images, etc) file to PDF????

Thanks!!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


Hello, this is a repost of a previous post of mine from today.

I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single Crystal Report to PDF and it works quite nicely using the Response.ContentType = "application/pdf". However, the users have an option to include other documents/reports in their report that are associated with the report.

For example: User previews a single report called a case. WIth the case, there are files users have uploaded to it, files and images, etc.. There are other reports that pertain to the case but collect separate information. The user can Export Case to PDF, which will present the user with the list of attachments and the list of other reports that may pertain to this report. They can then select which items they want from both lists and then export everything to a single PDF file for easy managment.

I just need assistance in the PDF creation step, how to include all of these items into one PDF file. Is there a reference on how to handle each item separatly? Or maybe how to do exactly what I am trying to do?

Thanks a TON!
 
M

MWells

Also try http://www.asppdf.com/

"MWells" <outbound__at_sygnal.com> wrote in message David, PDF is a proprietary format developed by Adobe. It's not at all related to the file structure that Excel uses, so the two are not compatible.

To return an Excel file as a PDF you have a two primary options;

1. Do it in advance. Create PDF files of your documents using Adobe Acrobat (or related products), and then return the PDF file when requested.

2. Get a PDF-document-creation library and do this on-the-fly. i.e. someone requests the Excel file, you get it, convert it to a PDF, and ship it back.

Kevin's earlier comment highlights #2; Adobe provides an API for this. There are also a number of third party products, including ..NET-specific libraries for this task. I know of ActivePDF but you should do your own review based on your specific requirements.

I recall that Adobe has a server product for generating PDFs from large batches of documents. It may do this on-demand as well. If you're trying to append multiple files into a single PDF however, you may be forced to use a library.



I got it to stream another PDF file to the output... but when i change it to excel, for example, the Adobe reader on my PC states the file is corrupted. How can I stream an Excel (or word, images, etc) file to PDF????

Thanks!!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


Hello, this is a repost of a previous post of mine from today.

I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single Crystal Report to PDF and it works quite nicely using the Response.ContentType = "application/pdf". However, the users have an option to include other documents/reports in their report that are associated with the report.

For example: User previews a single report called a case. WIth the case, there are files users have uploaded to it, files and images, etc.. There are other reports that pertain to the case but collect separate information. The user can Export Case to PDF, which will present the user with the list of attachments and the list of other reports that may pertain to this report. They can then select which items they want from both lists and then export everything to a single PDF file for easy managment.

I just need assistance in the PDF creation step, how to include all of these items into one PDF file. Is there a reference on how to handle each item separatly? Or maybe how to do exactly what I am trying to do?

Thanks a TON!
 
D

David Lozzi

Thank you for your response! I've already started to investigate 3rd party solutions.

thanks again

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


"MWells" <outbound__at_sygnal.com> wrote in message Also try http://www.asppdf.com/

"MWells" <outbound__at_sygnal.com> wrote in message David, PDF is a proprietary format developed by Adobe. It's not at all related to the file structure that Excel uses, so the two are not compatible.

To return an Excel file as a PDF you have a two primary options;

1. Do it in advance. Create PDF files of your documents using Adobe Acrobat (or related products), and then return the PDF file when requested.

2. Get a PDF-document-creation library and do this on-the-fly. i.e. someone requests the Excel file, you get it, convert it to a PDF, and ship it back.

Kevin's earlier comment highlights #2; Adobe provides an API for this. There are also a number of third party products, including ..NET-specific libraries for this task. I know of ActivePDF but you should do your own review based on your specific requirements.

I recall that Adobe has a server product for generating PDFs from large batches of documents. It may do this on-demand as well. If you're trying to append multiple files into a single PDF however, you may be forced to use a library.



I got it to stream another PDF file to the output... but when i change it to excel, for example, the Adobe reader on my PC states the file is corrupted. How can I stream an Excel (or word, images, etc) file to PDF????

Thanks!!!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com


Hello, this is a repost of a previous post of mine from today.

I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single Crystal Report to PDF and it works quite nicely using the Response.ContentType = "application/pdf". However, the users have an option to include other documents/reports in their report that are associated with the report.

For example: User previews a single report called a case. WIth the case, there are files users have uploaded to it, files and images, etc.. There are other reports that pertain to the case but collect separate information. The user can Export Case to PDF, which will present the user with the list of attachments and the list of other reports that may pertain to this report. They can then select which items they want from both lists and then export everything to a single PDF file for easy managment.

I just need assistance in the PDF creation step, how to include all of these items into one PDF file. Is there a reference on how to handle each item separatly? Or maybe how to do exactly what I am trying to do?

Thanks a TON!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top