![]() |
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. |
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.
|
Re: RTF Codes
VB.Net it is a WinForm based on the 3.5 Framework
|
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. |
Re: RTF Codes
Is there any reason you're using rtf, in particular?
|
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.
|
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. |
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. :)
|
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? |
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. |
| All times are GMT -5. The time now is 2:39 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC