473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
5 6453
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jerry O | last post by:
Hi , I have my asp successfully creating excel file viewable through IE using the header: Response.ContentType = "application/vnd.ms-excel" If the user does not have excel installed they...
2
by: dave | last post by:
Hello Can any one suggest me how to create pdf on the fly... I had already checked link http://www.aspfaq.com/show.asp?id=2207 but I cannot use third party component as site is not hosted some...
4
by: jrasmussen | last post by:
I have created an Excel spreadsheet for the web. When it opens in IE 6.0 I get the message that the format is not supported. This is because it is in tab delimited format. Ane when I save the file,...
5
by: TJS | last post by:
trying to display pdf file in browser fails on this line: Response.ContentType = "application/pdf" getting an error about no declaration found for "response" what declaration is needed ???
6
by: Tom Kaminski [MVP] | last post by:
I can do this in ASP, but not sure how to handle in ASP.NET: How To Use the ADODB.Stream Object to Send Binary Files to the Browser through ASP http://support.microsoft.com/?kbid=276488 Do I...
0
by: Microsoft NewsGroups | last post by:
I am creating a TAB delimited file with .XLS extention using the Response.ContentType = "application/ms-excel" method. Normally I would place this on it's own form and delete all the HTML in the...
2
by: steve02a | last post by:
I'm using the Response.ContentType = "application/vnd.ms-excel" in my web application to export data into a spreadsheet. That works fine and all. My question is: When I export the data and go...
1
by: rguarnieri | last post by:
Hi!, I'm using Visual Studio 6.0 and I'm trying to open an asp page like a .pdf file, I used Response.ContentType="application/pdf" in my asp page but it doesn't work This is an example: <%@...
4
by: Bjorn Sagbakken | last post by:
With ASP.NET 2.0 I'm trying to display the pdf file directly in the client browser, but I only get a download dialogue box. Downloading the file works fine, but I want to view the PDF directly. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.