Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Jan 12th, 2008, 8:54 AM   #11
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: RTF Codes

Oh, if the depth of the report is not fixed, it won't be as easy as I suggested. For instance, if you want it to generate:

Quote:
Chapter 1
Blah blah blah
... for one input file, and generate:

Quote:
Chapter 1
Bleh bleh bleh

Chapter 2
Bleh bleh bleh!!

Chapted 3
Bleeeeh bleh
... for another.

Then you won't be able to use a fixed template.

But you just take a quick look at your general template's ascii data and make some logical decisions about whether or not it's easily possible with my method, and what you will have to tweak in my procedure to get it working.
Sane is online now   Reply With Quote
Old Jan 12th, 2008, 10:33 AM   #12
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 213
Rep Power: 3 Seif is on a distinguished road
Re: RTF Codes

A more up to date RTF specification available here. linky dink: http://www.wotsit.org/download.asp?f=rtf18&sc=253448238

Taken a quick look, seems to describe the format well with a sample RTF reader and writer app, with sourcecode and description.
Seif is offline   Reply With Quote
Old Apr 8th, 2008, 6:58 PM   #13
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 43
Rep Power: 0 Logical1 is on a distinguished road
Why not Word?

May be I am not understanding your problem well, but why don't you just open MS Word and create your RTF file any way you want and save it as RTF.
Anywhere you need to send variables mark them specifically ( <VAR1> <VAR2> , etc.)
Then use any method such as "replace" to send your data to this RTF file.
I did a project like this a while back in PHP and MySQL and altough at the begingin everybody told me not to use Word and use PDF instead I had no difficulty at all about getting the job done in a short time.
Logical1 is offline   Reply With Quote
Old Apr 8th, 2008, 9:22 PM   #14
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: Why not Word?

Quote:
Originally Posted by Logical1 View Post
May be I am not understanding your problem well, but why don't you just open MS Word and create your RTF file any way you want and save it as RTF.
Anywhere you need to send variables mark them specifically ( <VAR1> <VAR2> , etc.)
Then use any method such as "replace" to send your data to this RTF file.
Yep. That's what I suggested as well.

Welcome to the forum, but please only bump month-old topics if you have something to add to the discussion.
Sane is online now   Reply With Quote
Old Apr 9th, 2008, 2:48 PM   #15
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 43
Rep Power: 0 Logical1 is on a distinguished road
Question ??

What do you mean by "Welcome to the forum, but please only bump month-old topics if you have something to add to the discussion. "?
__________________
^c^
Logical1 is offline   Reply With Quote
Old Apr 9th, 2008, 2:56 PM   #16
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: RTF Codes

The post before your first one was posted on January 12th. I'm fairly sure the OP doesn't really care any more.
__________________
Me :: You :: Them
Ooble 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

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




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

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