Page 1 of 1

how to merge rtf files in purebasic?

Posted: Wed Nov 17, 2004 5:45 pm
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 !

Posted: Wed Nov 17, 2004 6:47 pm
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.

Posted: Wed Nov 17, 2004 7:49 pm
by GedB
This should prove useful:

viewtopic.php?t=10466