Search found 9390 matches

by Sergey Tkachenko
Sat Jan 12, 2008 11:06 am
Forum: Support
Topic: I have an question about TRichViewEdit
Replies: 26
Views: 48060

Can you reproduce these problems in simple project and send it to me?
by Sergey Tkachenko
Sat Jan 12, 2008 11:05 am
Forum: Support
Topic: How to save selectionbound for future use
Replies: 1
Views: 8338

Use functions from RVLinear.pas
by Sergey Tkachenko
Thu Jan 10, 2008 4:45 pm
Forum: Support
Topic: How to save table background img original path+name in HTML
Replies: 6
Views: 14972

Do you use this code: procedure TForm3.RichViewEdit1HTMLSaveImage(Sender: TCustomRichView; RVData: TCustomRVData; ItemNo: Integer; const Path: String; BackgroundColor: TColor; var Location: String; var DoDefault: Boolean); var FileName: String; begin if (ItemNo>=0) and RVData.GetItemExtraStrProperty...
by Sergey Tkachenko
Thu Jan 10, 2008 4:32 pm
Forum: Support
Topic: Off-screen rendering
Replies: 3
Views: 11267

You can use OnDrawParaBack and OnDrawStyleText to draw additional effects for paragraphs and text.
See Demos\Delphi\Assorted\CustomDraw\CustomDraw\
by Sergey Tkachenko
Thu Jan 10, 2008 12:46 pm
Forum: Support
Topic: Off-screen rendering
Replies: 3
Views: 11267

In the latest version (available for registered users), TRVReportHelper does not require forms (can be created without parent or placed on datamodule). But I doubt that VCL components can work in thread properly. As for the paragraph coordinates, can you explain what you want to implement? I'll try ...
by Sergey Tkachenko
Wed Jan 09, 2008 5:04 pm
Forum: Support
Topic: Bounds checking for TRichViewEdit.
Replies: 2
Views: 8997

When document in RV is formatted, it has width:
rv.RVData.DocumentWidth+rv.LeftMargin+rv.RightMargin;
height:
rv.DocumentHeight.
by Sergey Tkachenko
Wed Jan 09, 2008 4:58 pm
Forum: Support
Topic: Adding to image path when exporting
Replies: 1
Views: 7547

by Sergey Tkachenko
Wed Jan 09, 2008 4:56 pm
Forum: Support
Topic: How to save table background img original path+name in HTML
Replies: 6
Views: 14972

But I think you should check if FileName is a full local path (do not add 'file://' to relative paths and to internet addresses).
For example,

Code: Select all

if (Length(FileName)>=2) and (FileName[2]=':') then ...
by Sergey Tkachenko
Wed Jan 09, 2008 4:48 pm
Forum: Support
Topic: How to save table background img original path+name in HTML
Replies: 6
Views: 14972

Your code work for table background. For table cells: if (ItemNo=-1) and (RVData.GetSourceRVData is TRVTableCellData) then begin FileName := TRVTableCellData(RVData.GetSourceRVData).BackgroundImageFileName; if FileName<>'' then begin Location := 'file://' + FileName; DoDefault := False; end; end; Fo...
by Sergey Tkachenko
Wed Jan 09, 2008 10:44 am
Forum: Support
Topic: Table's indent lost in RTF
Replies: 1
Views: 8712

This is a known problem. It will be fixed in one of future updates.
by Sergey Tkachenko
Tue Jan 08, 2008 1:56 pm
Forum: Support
Topic: Problem with header
Replies: 4
Views: 13469

You draw header above the printable area (above the rectangle defined in PrintAreaRect). You can reserve space for header by increasing RVPrint.TopMarginsMM. The code below does it. Call it before calling RVPrint1.FormatPages. // returns page width and height, in printer pixels procedure GetPageSize...
by Sergey Tkachenko
Tue Jan 08, 2008 12:17 pm
Forum: Support
Topic: I have an question about TRichViewEdit
Replies: 26
Views: 48060

1) I do not completely understand the question. There is no designtime document editor, so items cannot be inserted at design time. GetItemCoords returns coordinates of item at the moment of its call. Of course, document must be formatted, otherwise coordinates are undefined. 2) When you do a drag&a...
by Sergey Tkachenko
Mon Jan 07, 2008 11:58 am
Forum: Support
Topic: I have an question about TRichViewEdit
Replies: 26
Views: 48060

In this declaration (both in hpp and cpp files) change TBitmap to Graphics:TBitmap.
by Sergey Tkachenko
Thu Jan 03, 2008 8:37 pm
Forum: Support
Topic: Background picture/color problem
Replies: 1
Views: 7886

If you want to store backgrounds with documents, include rvfoSaveBack and rvfoLoadBack in DBRichViewEdit.RVFOptions.
by Sergey Tkachenko
Thu Jan 03, 2008 5:51 pm
Forum: Support
Topic: Problem with header
Replies: 4
Views: 13469

Do headers on different pages have different heights?