Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2005, 12:07 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP To PDF

Hello,

I'm trying to convert an asp report to pdf when a user clicks on the 'Generate Report' button. At this time, when the button is clicked, the data is retrieved from SQL Server then an ASP report is generated. I now need the report to be converted to pdf once the button is clicked, then displayed on the client machine for printing if desired. Can anyone tell me how to do this programmatically? Which third-party software have you used or are you using that will allow me to do this using code?

Thx!


 
Old March 7th, 2005, 04:57 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you have to use some third party components..

I have not tested it but look for Active PDF
http://www.activepdf.com/





 
Old March 9th, 2005, 03:16 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have been testing some third party components, but the problem is that all of them thus far require me to have to re-write all of my reports using their tools and controls. My reports are quite complex so that is not a possibility. Does anyone know of a third-party component that will take the completed HTML report that is produced, and convert it into pdf and displays it to the screen?

 
Old April 8th, 2005, 06:22 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Biplab
Default

Hi Kacey

Just Try "ContentType="application\pdf"
on click of the button

Biplab

Quote:
quote:Originally posted by Kacey
 Hello,

I'm trying to convert an asp report to pdf when a user clicks on the 'Generate Report' button. At this time, when the button is clicked, the data is retrieved from SQL Server then an ASP report is generated. I now need the report to be converted to pdf once the button is clicked, then displayed on the client machine for printing if desired. Can anyone tell me how to do this programmatically? Which third-party software have you used or are you using that will allow me to do this using code?

Thx!


hi
 
Old April 13th, 2005, 11:47 AM
Authorized User
 
Join Date: Jun 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>>Just Try "ContentType="application\pdf" on click of the button

I think this would only work if opening an existing PDF file -- it wouldn't do the job of converting an ASP report into a PDF format.

I am currently weighing a decision to purchase aspPDF (http://www.asppdf.com) or just plain old Adobe Acrobat, and see if I can program Acrobat myself. Not sure which option is better, but will stay tuned if anyone has advice.


Susan :)
 
Old April 25th, 2005, 01:17 PM
Authorized User
 
Join Date: Jun 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Update: have purchased ASPpdf. Works beautifully! Was able to generate dynamic content onto an existing PDF file, WITH a dynamic barcode, with two simple routines. Just had to make a few tweaks to the code in ASPpdf's Form Sample.

I highly recommend the product - I had my form programmed in a couple of hours. (Some of you smarter ones will probably have it hammered out in much less time.)

Ta,

Susan :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP to PDF Bhakti_thakkar Classic ASP Components 5 March 9th, 2007 08:47 AM
Need to Convert ASP to PDF metrov Classic ASP Databases 2 March 9th, 2007 08:10 AM
ASP to PDF arnabghosh Classic ASP Professional 0 February 5th, 2007 12:04 AM
ASP to PDF rajanikrishna Classic ASP Databases 1 May 5th, 2004 04:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.