Search found 9400 matches

by Sergey Tkachenko
Wed Jan 09, 2008 5:04 pm
Forum: Support
Topic: Bounds checking for TRichViewEdit.
Replies: 2
Views: 9030

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

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

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

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

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

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

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

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

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

Do headers on different pages have different heights?
by Sergey Tkachenko
Thu Jan 03, 2008 5:16 pm
Forum: Support
Topic: Picture alignment progress
Replies: 1
Views: 8220

I'll start working on it after releasing TRichView/ScaleRichView update on the web site.
by Sergey Tkachenko
Sun Dec 23, 2007 3:28 pm
Forum: Support
Topic: To Sergey and all users of this forum
Replies: 1
Views: 7796

Thank you, and merry Christmas to all!
by Sergey Tkachenko
Sun Dec 23, 2007 3:19 pm
Forum: Support
Topic: Table cell align text right
Replies: 4
Views: 10907

Do you need to generate document with right-aligned cell? If yes, create a right-aligned paragraph style before generation, and pass its index in AddNL().
by Sergey Tkachenko
Sat Dec 22, 2007 4:11 pm
Forum: Support
Topic: Table cell align text right
Replies: 4
Views: 10907

I know you can create a right aligned Paragraph but how do you set such a style to a table cell?
Simply use right-aligned paragraphs inside table cells.
by Sergey Tkachenko
Sat Dec 22, 2007 4:09 pm
Forum: Support
Topic: rvuCentimeters
Replies: 1
Views: 8050

RichViewEdit.DocParameters property does not affect how documents are displayed. Its primary use is to save this information in RTF files (and in RVF files). TRVRuler cannot change them, because it's impossible (it cannot change page size, page margins and other DocParameters, because they are not d...