how to merge rtf files in purebasic?

Everything else that doesn't fall into one of the other PB categories.
wdurden
User
User
Posts: 13
Joined: Mon Feb 23, 2004 3:29 am

how to merge rtf files in purebasic?

Post by wdurden »

Hi everyone! I coded an app in VB that used the richedit control where I merged rtf by getting the rtf string for two files. I lopped off some tail characters from the first one (i think 4) and lopped off a bunch of header characters from the second (something like 42 or so) then concatenated the strings and saved it as a new file and then I could open that in the rich text box and see the rich text and graphics just fine... Can this be done with the editor gadget in purebasic? In visual basic there was an option to get either the plain text (no formatting) or the rtf text which had the braces and formatting information. I don't see how to get the text string that has the rtf formatting in purebasic? Can anyone give a pointer on how to get the string of an rtf file with all of that formatting info?

Thanks !
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

The richedit control can insert rtf documents.
For PB this depends on the calls available.
Otherwise you'll need to write the stream in function+callback yourself.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

This should prove useful:

viewtopic.php?t=10466
Post Reply