By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

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

P: n/a
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!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:%2******************@TK2MSFTNGP14.phx.gbl...
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!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
Nov 19 '05 #2

P: n/a
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.

"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:#9**************@TK2MSFTNGP10.phx.gbl...
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
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:%2******************@TK2MSFTNGP14.phx.gbl...
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!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
Nov 19 '05 #3

P: n/a
Also try http://www.asppdf.com/

"MWells" <outbound__at_sygnal.com> wrote in message news:#t**************@TK2MSFTNGP15.phx.gbl...
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.

"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:#9**************@TK2MSFTNGP10.phx.gbl...
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
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:%2******************@TK2MSFTNGP14.phx.gbl...
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!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
Nov 19 '05 #4

P: n/a
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 news:uu****************@TK2MSFTNGP11.phx.gbl...
Also try http://www.asppdf.com/

"MWells" <outbound__at_sygnal.com> wrote in message news:#t**************@TK2MSFTNGP15.phx.gbl...
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.

"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:#9**************@TK2MSFTNGP10.phx.gbl...
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
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in message news:%2******************@TK2MSFTNGP14.phx.gbl...
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!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi(remove-this)@delphi-ts.com
Nov 19 '05 #5

P: n/a
Hello David,

TallPDF is another very attractive library...

http://www.tallcomponents.com/

--
Matt Berther
http://www.mattberther.com
Thank you for your response! I've already started to investigate 3rd
party solutions.

thanks again

"MWells" <outbound at sygnal.com> wrote in message
news:uu****************@TK2MSFTNGP11.phx.gbl...
Also try http://www.asppdf.com/
"MWells" <outbound at sygnal.com> wrote in message
news:#t**************@TK2MSFTNGP15.phx.gbl...
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.

"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in
message
news:#9**************@TK2MSFTNGP10.phx.gbl...
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
"David Lozzi" <dlozzi@(remove-this)delphi-ts.com> wrote in
message news:%2******************@TK2MSFTNGP14.phx.gbl...
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!

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

Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.