Search found 9391 matches

by Sergey Tkachenko
Fri Aug 24, 2007 5:05 pm
Forum: Support
Topic: Strange problem
Replies: 4
Views: 12179

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: 10884

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: 10884

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: 9127

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: 23151

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: 10153

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: 8781

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: 13639

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: 25392

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: 11942

In addition, you can:
- for TRVTabItemInfo items, add #9 in text
- if objCell.GetRVData.IsFromNewLine(intCount), add #13#10
by Sergey Tkachenko
Mon Aug 20, 2007 11:14 am
Forum: Support
Topic: TRVTextItemInfo
Replies: 5
Views: 11942

var intIndex: Integer; objData: TRVEditRVData; objItem: TRVTableItemInfo; objCell: TRVTableCellData; intRow: Integer; intCol: Integer; intCount: Integer; begin objData := TRVEditRVData(rvEdit.RVData); for intIndex := 0 to rvEdit.ItemCount-1 do begin if objData.GetItem(intIndex) is TRVTableItemInfo ...
by Sergey Tkachenko
Mon Aug 20, 2007 11:01 am
Forum: Support
Topic: Page breaks problem in Table.
Replies: 7
Views: 18012

For example, now they are shown like:
Image
(I changed color to red to make them more noticeable)
How do you want to display them?
by Sergey Tkachenko
Mon Aug 20, 2007 10:54 am
Forum: Support
Topic: Changing the fontname of text in a document
Replies: 4
Views: 13639

Code: Select all

for i :=0 to VStyles.TextStyles.Count-1 do
  VRichView.Style.TextStyles[i].FontName := 'Arial Unicode MS'; 
VRichView.Format;
PS: currently, TRichView cannot work without Parent assigned.

So add:

Code: Select all

VRichView.Visible := False;
VRichView.Parent := <some form>
by Sergey Tkachenko
Mon Aug 20, 2007 10:50 am
Forum: Support
Topic: Print a defined rtf
Replies: 3
Views: 10153

Place on form: RichView1: TRichView, RVStyle1: TRVStyle; RVPrint1: TRVPrint. Assign (at designtime) RichView1.Style := RVStyle1. Loading RTF file: RichView1.Clear; RichView1.LoadRTF('/home/peter/test.rtf'); RichView1.Format; Next, you need to choose printer. RVPrint uses the application printer sett...
by Sergey Tkachenko
Mon Aug 20, 2007 10:37 am
Forum: Support
Topic: SaveRVFToStream problem
Replies: 1
Views: 7672

If you use Delphi debuger to view Stream.Size, it shows wrong value.
I do not know why, but it does not show Stream.Size correctly.