How to create a TRichView at runtime
Posted: Thu Jul 26, 2007 8:57 am
Hi,
I would like to create and fill a document or TRichViewEdit at runtime with CB6 and save it without showing it in the gui.
Something like:
TRichViewEdit *rve = new TRichViewEdit(NULL);
TRVStyle* style = new TRVStyle(NULL);
rve->Style = style;
rve->InsertText("test");
TMemoryStream*Stream = new TMemoryStream;
rve->SaveRVFToStream(Stream, false);
But I can't get that working, I only get lots of runtime errors.
Thanks for help!
Usch
I would like to create and fill a document or TRichViewEdit at runtime with CB6 and save it without showing it in the gui.
Something like:
TRichViewEdit *rve = new TRichViewEdit(NULL);
TRVStyle* style = new TRVStyle(NULL);
rve->Style = style;
rve->InsertText("test");
TMemoryStream*Stream = new TMemoryStream;
rve->SaveRVFToStream(Stream, false);
But I can't get that working, I only get lots of runtime errors.
Thanks for help!
Usch