Search found 9411 matches

by Sergey Tkachenko
Tue Jan 15, 2008 3:57 pm
Forum: Support
Topic: DocProperties should not be loaded
Replies: 1
Views: 8043

I cannot reproduce copying of DocProperties if rvfoLoadDocProperties is excluded from rv.RVFOptions. But if you call rv.LoadRVFFromStream, rv.DocProperties will be cleared, because rv.LoadRVFFromStream calls rv.Clear, and rv.Clear clears rv.DocProperties. So if you need to store them after call of C...
by Sergey Tkachenko
Tue Jan 15, 2008 3:41 pm
Forum: Support
Topic: Always unable to export to MS Word
Replies: 39
Views: 105303

Please send me compiled exe to richview at gmail dot com
(zipped with password protection, otherwise it will be rejected by gmail)
by Sergey Tkachenko
Tue Jan 15, 2008 3:39 pm
Forum: Support
Topic: RichViewEdit1.Paste doesn't work inside the table cell.
Replies: 5
Views: 14426

Sorry, I cannot reproduce this problem.
by Sergey Tkachenko
Tue Jan 15, 2008 3:37 pm
Forum: Support
Topic: Selection bounds and Unicode text
Replies: 3
Views: 11627

Sorry, but if you create a list of SearchTextW results, I think you know what text is found.
by Sergey Tkachenko
Sat Jan 12, 2008 1:38 pm
Forum: Support
Topic: TEdit and resizing
Replies: 3
Views: 11174

You can assign this code to OnChange of TEdits: procedure TForm1.OnControlChange(Sender: TObject); var txt: TEdit; begin txt := (Sender as TEdit); Canvas.Font := txt.Font; txt.ClientWidth := Canvas.TextWidth(txt.Text)+6; RichViewEdit1.AdjustControlPlacement2(txt); end; (do not forget to reassign it ...
by Sergey Tkachenko
Sat Jan 12, 2008 11:09 am
Forum: Support
Topic: TEdit Control and Font
Replies: 6
Views: 16242

You can use TRichViewEdit.OnSelect event. In this event, call GetSelectionBounds, enumerate all selected items and check if they contain TEdit.
As for other your questions, I need some time to answer them. I'll try to answer in
by Sergey Tkachenko
Sat Jan 12, 2008 11:06 am
Forum: Support
Topic: I have an question about TRichViewEdit
Replies: 26
Views: 48152

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

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

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

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

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

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

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

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

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...