Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP to RTF, PDF, WORD options...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 29 September 2003 :  22:56:56  Show Profile  Visit dayve's Homepage
What are the best options for being able to take an active server page and exporting the page to RTF, PDF and WORD? I read a lot of TIDS at Microsofts website but having to use all the control codes is a bit much to handle so I am willing to check out recommended components or other options... TIA.

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 30 September 2003 :  05:07:06  Show Profile
Have you considered using ActivePdf?
quote:
Originally posted by dayve

What are the best options for being able to take an active server page and exporting the page to RTF, PDF and WORD? I read a lot of TIDS at Microsofts website but having to use all the control codes is a bit much to handle so I am willing to check out recommended components or other options... TIA.
We use it at work, and it seems to work well...

Cheers,

David Greening
Go to Top of Page

gelliott
Junior Member

USA
268 Posts

Posted - 30 September 2003 :  12:32:57  Show Profile
I have recently researched all of this -
  • PDF - I can't find a way to do this without having a component installed on the system or using a remote server to do the conversion for me. I wasn't impressed with the only free remote service I found.

  • XLS - I knew thatTableEditor offered Excel dumps which worked purely in ASP, so I looked at their codes. Basically, all they do is dump an html table into an ascii file and give it an .xls extension. So I wrote my own streamlined routine for XLS dumps. Excel will open and auto-convert the (ascii/html) .xls file on the fly. I was not able to get Excel to auto-convert CSV-formatted .xls files correctly (numbers and text values and quotes mishandled)

  • DOC/RTF - while I have not yet implemented this, I have it half written. After my success with the XLS conversion, I had intended to do the same for Word. I would write ascii RTF codes to a .DOC file, and Word will auto-convert upon opening as if it were a true DOC file. The format codes for RTF are easy enough to find, and I had intended to use this for form-letters as well (I will make an include file with strings of formatted letters already prepared - I use the Replace function to pull out my placeholders and insert my db merge data, and out pops the word file...) For reports, I will use a similar approach, using pre-built headers and footers and inserting the formatting around the data on the fly as I read the data from the db).
Hope this helps...

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 30 September 2003 :  14:06:34  Show Profile  Visit dayve's Homepage
I no longer need the PDF option, although it would be nice someday.

XLS was super easy to do since HTML tables convert nicely to Spreadsheet Formats

DOC/RTF - I'm too lazy to do all the control codes, not worth the time and effort right now.

Thanks anyway, I was just putting too much time into something that is really not that big a deal for the project I am working on.

On a side note, I decided to provide a Crystal Web Report through Crystal Enterprise so that worked out nicely, but we don't want to use this for public usage.

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 30 September 2003 :  20:48:55  Show Profile  Visit Gremlin's Homepage
I have an article somewhere explaining how to create very simple PDF files using a SQL Server SP kinda cool actually, lemme see if I can dig it up

http://www.sqlservercentral.com/columnists/mivica/creatingapdffromastoredprocedure.asp

Not much use to you if your not needing PDF's now, but an interesting read anyway. You'll need to be a sqlservercentral member to read it, but thats just a matter of registering if you aren't already anyway.

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 30 September 2003 20:52:34
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07