![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 289
Rep Power: 3
![]() |
RTF Codes
So I'm developing an app that will take some data out of an sql database and format it into a nice RTF Document. Anyone know of any good tools or resources for RTF? This will be my first project with it and any tips or advice would be great, thank you.
Links I have found and used: http://search.cpan.org/~sburke/RTF-W...F/Cookbook.pod http://www.biblioscape.com/rtf15_spec.htm I'd be interested if there are any Wizards or Generators that will help me speed up the RTF Template process. Thank you. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
Re: RTF Codes
What language are you using? PHP? In the past I've found user-written libraries in PHP for creating RTF documents from HTML, and vice-versa.
|
|
|
|
|
|
#3 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 289
Rep Power: 3
![]() |
Re: RTF Codes
VB.Net it is a WinForm based on the 3.5 Framework
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
Re: RTF Codes
Hmm... well if your presentation is limited to only one specific template, it would be very (very) simple (and worth your time), to do the following:
In VB.net, simply:
Then, if you ever need to change the template... just open up the .rtf file in a word processor again, and change around the template. That's my solution. Hope it at least stimulates some ideas. |
|
|
|
|
|
#5 |
|
18 Year Old Programmer
Join Date: Jan 2008
Posts: 26
Rep Power: 0
![]() |
Re: RTF Codes
Is there any reason you're using rtf, in particular?
__________________
Tier 2 Hardware Technician Net Effects, LLC Brunswick, Ohio |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
Re: RTF Codes
I presume because he needs to deliver something in a hard-copy format. HTML could do the job, but it's not always the same feel for a user/client as a familiar word document.
|
|
|
|
|
|
#7 |
|
18 Year Old Programmer
Join Date: Jan 2008
Posts: 26
Rep Power: 0
![]() |
Re: RTF Codes
I was going to suggest that he uses XML, especially if it's in hard-copy format.
Even so, I'm pretty sure word can open and convert and XML document that's been formatted with an XSLT Stylesheet.
__________________
Tier 2 Hardware Technician Net Effects, LLC Brunswick, Ohio |
|
|
|
|
|
#8 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
Re: RTF Codes
Would someone who's not so computer savvy know what to do with an XML file? I certainly know my mother wouldn't.
![]() |
|
|
|
|
|
#9 |
|
18 Year Old Programmer
Join Date: Jan 2008
Posts: 26
Rep Power: 0
![]() |
Re: RTF Codes
Touche.
However, wouldn't he be able to use the ActiveX controls that come with Office to write the output to a formatted Word Document? Also, to me it almost seems like he's talking about doing reporting. What exactly is this application for? Is it a single business app, or is it for a part of a system or something?
__________________
Tier 2 Hardware Technician Net Effects, LLC Brunswick, Ohio |
|
|
|
|
|
#10 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 289
Rep Power: 3
![]() |
Re: RTF Codes
RTF is a nice format for printed documents.
I'm using XML to Save the Data, XSLT to Format the RTF Document File. And the application is for taking data from an SQL DB and Creating basically a book version of a website with a single click. It isnt going to do everything for the printed book, but it will have the bulk of it. @Sane, thank you for the advice, I'll look into that tomorrow. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Function for Converting ASCII Codes? | Sane | Python | 2 | Mar 29th, 2006 10:00 PM |
| Need a bit of help understanding some codes. | emdiesse | Visual Basic | 4 | Apr 21st, 2005 12:05 PM |
| Checking source codes of image, audio and video files | on_auc | C++ | 3 | Feb 21st, 2005 8:36 PM |