Search found 9411 matches

by Sergey Tkachenko
Fri Aug 24, 2007 5:48 pm
Forum: ScaleRichView
Topic: OnCurTextStyleChange??
Replies: 5
Views: 23212

Several calls of this event make no problem in all demos and real applications that use TRichViewEdit/ScaleRichView. And none of them implement special processing for this.
This event is never called with incorrect parameters, so they are called several times with the same value of CurTextStyleNo.
by Sergey Tkachenko
Fri Aug 24, 2007 5:34 pm
Forum: ScaleRichView
Topic: How To Print / Print Preview??
Replies: 5
Views: 26286

Certainly, TrvActionPrint, TrvActionQuickPrint, TrvActionPrintPreview, TrvActionPageSetup do not work with ScaleRichView properly. It's obvious, because they use TRVPrint's repagination procedure and properties instead of ScaleRichView's procedure and properties. The most of these actions can be imp...
by Sergey Tkachenko
Fri Aug 24, 2007 5:24 pm
Forum: Examples, Demos
Topic: [Demo] Replacing controls with text
Replies: 1
Views: 28876

Similar code can be used to change controls to images. In this code, GetControlGraphic is your function returning graphic representation of the given control. You can use DrawControl function from CtrlImg unit, but it is not able to create images for all types of controls. { Inserting graphic item i...
by Sergey Tkachenko
Fri Aug 24, 2007 5:08 pm
Forum: Support
Topic: More than 1 Richview page on 1 pdf page using eDocEngine
Replies: 5
Views: 16471

Do you want to create PDF document consisting of several TRichView documents, with (or without) page breaks between them?
I am not sure how eDocEngine generates document, so I suggest simply to add all documents in the same TRichView, see http://www.trichview.com/forums/viewtopic.php?p=1002
by Sergey Tkachenko
Fri Aug 24, 2007 5:05 pm
Forum: Support
Topic: Strange problem
Replies: 4
Views: 12205

Is it possible to create a project reproducing the problem and send it to me? You can use this code to detect error. It checks if the RichViewEdit1 content's Unicode mode corresponds to TextStyles[].Unicode. Only the first item is checked. uses RVItem; RichViewEdit1.Format; if (RichViewEdit1.GetItem...
by Sergey Tkachenko
Fri Aug 24, 2007 4:56 pm
Forum: Support
Topic: Problem in Saving RV as RTF
Replies: 3
Views: 10944

Controls are saved in RVF by default (all their published properties are stored, except for links to other components and events).
In order to load controls, they must be registered using RegisterClass.
For example:
RegisterClass(TButton);
Call registering code one time before the first RVF loading.
by Sergey Tkachenko
Wed Aug 22, 2007 3:58 pm
Forum: Support
Topic: Problem in Saving RV as RTF
Replies: 3
Views: 10944

Controls are not saved in RTF.
If you need to save them, you can use OnSaveComponentToFile event. You need to know RTF format to implement this event.
But there is still no way to load controls back from RTF.
If you need to store controls, use RVF (RichView Format) instead.
by Sergey Tkachenko
Wed Aug 22, 2007 3:55 pm
Forum: Support
Topic: Auto calculate reporter height
Replies: 2
Views: 9154

For the last page, you can use RVReportHelper.GetLastPageHeight.
by Sergey Tkachenko
Wed Aug 22, 2007 3:51 pm
Forum: ScaleRichView
Topic: OnCurTextStyleChange??
Replies: 5
Views: 23212

This behavior is inherited from TRichViewEdit. Yes, in some cases, OnCurTextStyleChange can be called several times.
I do not think that this is a serious problem.
by Sergey Tkachenko
Tue Aug 21, 2007 4:30 pm
Forum: Support
Topic: Print a defined rtf
Replies: 3
Views: 10216

You use Lazarus version of TRichView. This is a port of the old freeware version of TRichView. It cannot load RTF.
As for printing, [rvdoImages, rvdoComponents, rvdoBullets] must be used instead of rvdoAll.
by Sergey Tkachenko
Tue Aug 21, 2007 10:02 am
Forum: Support
Topic: Bug in RVRuler.pas
Replies: 2
Views: 8819

This bug is already fixed in the newer version of RVRuler.
No, I believe that TRichView.Get*** methods must generate exception when called with incorrect item index.
by Sergey Tkachenko
Mon Aug 20, 2007 1:16 pm
Forum: Support
Topic: Changing the fontname of text in a document
Replies: 4
Views: 13677

This code must work. But if you want to replace content of Document, call: Document.Clear; VRichView.SaveRVFToStream( Document, False ); instead of VRichView.SaveRVFToStream( Document, True ); Without clearing the stream, new information will be written to the end of the existing content. It may pro...
by Sergey Tkachenko
Mon Aug 20, 2007 12:39 pm
Forum: ScaleRichView
Topic: TScaleRichView - EListIndex out of Bounds Error
Replies: 6
Views: 25474

Please note that trial again requires new version of TRichView and RichViewActions
by Sergey Tkachenko
Mon Aug 20, 2007 11:16 am
Forum: Support
Topic: TRVTextItemInfo
Replies: 5
Views: 11974

In addition, you can:
- for TRVTabItemInfo items, add #9 in text
- if objCell.GetRVData.IsFromNewLine(intCount), add #13#10