Some questions about RichView

General TRichView support forum. Please post your questions here
Post Reply
voodoo
Posts: 3
Joined: Tue May 23, 2006 1:24 pm

Some questions about RichView

Post 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
Yernar Shambayev
Posts: 57
Joined: Wed Aug 31, 2005 6:46 pm

Re: Some questions about RichView

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply