Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 5th, 2006, 6:20 PM   #1
rag05
Newbie
 
rag05's Avatar
 
Join Date: Oct 2005
Location: Texas
Posts: 11
Rep Power: 0 rag05 is on a distinguished road
Question Convert HTML to PDF in ASP Application

Hello,

I am currently writing a web application using ASP, and would like to give my users the capability of coverting some HTML documents (like reports, lists, etc.) into PDF "on the fly", so they can immediately view and print.

In other words, I want the user to generate a report in HTML at first (for example), and then, have a link/button available for him/her to click and automatically have another window open with a PDF document displaying the same report.

Is there any tool available that could help me with this task?

I appreciate your help.
__________________
There are only two kinds of programming languages:
those people always bitch about and those nobody uses.

-- Bjarne Stroustrup
rag05 is offline   Reply With Quote
Old Jul 5th, 2006, 7:05 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
This may be zero help, but there's something called EasyPDF available for PHP. Maybe they have it for ASP, also. If so, it's a great tool.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 6th, 2006, 11:03 AM   #3
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
The idea that comes to my head first is installing a "PDF printer" and using COM objects to communicate with IE or Word to open the HTML document then instructing it to print to a pdf file.
__________________

tempest is offline   Reply With Quote
Old Jul 6th, 2006, 12:51 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I find that I rarely want to print a page that's a duplicate of the HTML presentation, but a print-friendly representation of the same content (minus navbars and all that chit).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 6th, 2006, 12:55 PM   #5
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,650
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
http://dypso.free.fr/tech/generer_pd...rs_html-en.php
http://www.pdfonline.com/absolutenew...r.asp?a=24&z=6

I don't know how much those will help, as I don't know ASP but I found them on google so maybe they will. good luck, let us know if they help.
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jul 6th, 2006, 1:15 PM   #6
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 219
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
I've used FPDF before with php and it worked pretty good. It is somewhat clunky to use but it gets the job done
http://www.fpdf.org
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Jul 6th, 2006, 5:40 PM   #7
rag05
Newbie
 
rag05's Avatar
 
Join Date: Oct 2005
Location: Texas
Posts: 11
Rep Power: 0 rag05 is on a distinguished road
Thumbs up Thanx!

Thank you all for your responses...

So far I've found a version of easyPDF that does work with W2k and 2003 server. I've tested it and it does exactly what I need! The only problem I've found is the price $$$...

I'll take a look at the other information you've posted and will let you know what I find.

Once again, I appreciate your help
__________________
There are only two kinds of programming languages:
those people always bitch about and those nobody uses.

-- Bjarne Stroustrup
rag05 is offline   Reply With Quote
Old Jul 6th, 2006, 7:59 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Man! It's free for PHP. Mine is actually called EZpdf.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC