Page 1 of 1
Some questions about RichView
Posted: Tue May 23, 2006 3:11 pm
by voodoo
I load a text file into a RichEditView. This text file can contain control characters (Form Feed, Escape sequences, etc) because the file is the print file coming from an external procedure.
I want:
a - Split the file in pages, each page with max. N lines.
b - Convert each page into a bitmap/metafile, but without blank margins around, only the full text.
It's possible?
Thanks
Re: Some questions about RichView
Posted: Wed May 24, 2006 8:06 am
by Yernar Shambayev
voodoo wrote:I load a text file into a RichEditView. This text file can contain control characters (Form Feed, Escape sequences, etc) because the file is the print file coming from an external procedure.
I want:
a - Split the file in pages, each page with max. N lines.
b - Convert each page into a bitmap/metafile, but without blank margins around, only the full text.
It's possible?
Thanks
I believe if the file contains the special control characters, it's not a text file.
Posted: Wed May 24, 2006 7:03 pm
by Sergey Tkachenko
Text loading methods recognize Form Feeds, but do not recognize Escape sequences.
There are no methods/properties allowing to set max N of lines on page. And WYSIWYG is not implemented, so lines may break in different places on paper and in editor.
You can convert each page to image using TRVReportHelper component.
Margins are defined in RVReportHelper.RichView.LeftMargin, RVReportHelper.RichView.TopMargin, ... (can be zeros)