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
Some questions about RichView
-
- Posts: 57
- Joined: Wed Aug 31, 2005 6:46 pm
Re: Some questions about RichView
I believe if the file contains the special control characters, it's not a text file.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
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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)
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)