Search found 7590 matches

by Sergey Tkachenko
Wed Nov 02, 2005 9:20 pm
Forum: Support
Topic: spaces which make a memo-text justify are white,
Replies: 3
Views: 5802

1. I cannot reproduce the problem with spaces. Please send me a project showing it. 2. procedure DeleteTrailingBlankLines(RVData: TCustomRVData); var i: Integer; begin for i := RVData.ItemCount-1 downto 1 do if RVData.IsParaStart(i) and (RVData.GetItemStyle(i)>=0) and (RVData.GetItemText(i)='') then...
by Sergey Tkachenko
Wed Nov 02, 2005 9:19 pm
Forum: Examples, Demos
Topic: [Example] DeleteBlankLines, RemoveParagraphBreaks, etc.
Replies: 16
Views: 64778

Modification of DeleteBlankLines - removing blank lines only from the end of the document: procedure DeleteTrailingBlankLines(RVData: TCustomRVData); var i: Integer; begin for i := RVData.ItemCount-1 downto 1 do if RVData.IsParaStart(i) and (RVData.GetItemStyle(i)>=0) and (RVData.GetItemText(i)='') ...
by Sergey Tkachenko
Wed Nov 02, 2005 8:47 pm
Forum: Support
Topic: Meaning of image size (rvepImageWidth, rvepImageHeight)?
Replies: 3
Views: 6271

It's an image size in pixels. More exactly, it is in screen pixels, because when printing the image size is recalculated according to the printer resolution. So these values are exactly the same as <img width height> in HTML. You can convert them to inches by dividing by Screen.PixelsPerInch value. ...
by Sergey Tkachenko
Tue Nov 01, 2005 11:00 pm
Forum: Support
Topic: Some questions about table
Replies: 1
Views: 5029

1,2) TRichView tables are like HTML tables: column width and row heights are not explicitly defined. They are calculated basing on widths and height of cells. Apart from the cell content, the cell width is defined by BestWidth property, and the cell height is defined by BestHeight property. See also...
by Sergey Tkachenko
Mon Oct 31, 2005 4:24 pm
Forum: Support
Topic: Saving BackgroundStyle
Replies: 10
Views: 11569

CanChange + Change must do the same work as inserting&deleting the character. And I do not understand how SetFocus affects to this problem.
by Sergey Tkachenko
Mon Oct 31, 2005 8:57 am
Forum: Support
Topic: Large Docs with Many Pictures
Replies: 6
Views: 7921

You cannot call Screen.Free, because this method destroys the bitmap, but it still used by rvReport.
But I think you can call Dormant or FreeImage (as far as I understand how TBitmap works, only FreeImage makes sense here)
by Sergey Tkachenko
Sun Oct 30, 2005 10:24 pm
Forum: Support
Topic: Scale RTF to fit to one page
Replies: 8
Views: 9869

You cannot print a scaled document using TRVPrint. Use TRVReportHelper instead. First, format RVReportHelper (Init + FormatNextPage). Let PageWidth is a width specified in Init, PageHeight := RVReportHelper.GetLastPageHeight (I assume that the document has only one page). Let DestRect is a rectangle...
by Sergey Tkachenko
Sun Oct 30, 2005 10:07 pm
Forum: Support
Topic: Is it possible to make a richview's background transparent?
Replies: 2
Views: 5888

Yes, transparency is not supported directly. One of possible solutions is suggested by Michel. Another solution. It may be useful if you create a kind of report including TRichView objects. Draw the document into a metafile and display this metafile instead of TRichViewEdit. If you need an inplace e...
by Sergey Tkachenko
Sun Oct 30, 2005 9:59 pm
Forum: Support
Topic: Assignment of RV to RV
Replies: 2
Views: 5409

The best way to save data from TRichViewEdit in database is writing directly into the table field, instead of copying data to TDBRichViewEdit. See the demo: Demos\Delphi\DB Demo\2 RichViewEdit\ Why the document is not updated when you call LoadRVFFromStream of TDBRichViewEdit? Because LoadRVFFromStr...
by Sergey Tkachenko
Sun Oct 30, 2005 9:48 pm
Forum: Support
Topic: Error about CharSpacing
Replies: 4
Views: 6395

Value of this property is interpreted by WinAPI. It is passed to SetTextCharacterExtra function.
by Sergey Tkachenko
Sat Oct 29, 2005 4:22 pm
Forum: Support
Topic: How to create/modify RTF text inside a browser (web based)
Replies: 8
Views: 10322

I am afraid that you need to implement downloading data in your ActiveX yourself (using Indy, ICS or other components allowing to download data via http).

lkessler, I think that explanation does not explain too much :)
by Sergey Tkachenko
Sat Oct 29, 2005 4:20 pm
Forum: Support
Topic: xhtml/xml compliancy
Replies: 7
Views: 12164

Added in to-do list: to add an option for saving named entities as character codes.
NBSP is not the only named character enity used.
Others are: GT, LT, AMP, and a number of characters for saving text of Symbol and Wingdings fonts.
by Sergey Tkachenko
Sat Oct 29, 2005 4:11 pm
Forum: Support
Topic: Hyperlink Problem
Replies: 2
Views: 5776

Make sure that rvoClearTagOnStyleApp is excluded from EditorOptions
by Sergey Tkachenko
Sat Oct 29, 2005 4:09 pm
Forum: Support
Topic: Saving BackgroundStyle
Replies: 10
Views: 11569

The Michel's suggestion is absolutely correct. Call CanChange before (this will change table to the editing mode), and call Change after (this will inform table that RichViewEdit was modified). All these operations are required only when you modify documents by non-editing methods (including changin...
by Sergey Tkachenko
Sat Oct 29, 2005 11:31 am
Forum: Examples, Demos
Topic: [RvXML] How to save several documents in one XML file
Replies: 10
Views: 42490

RvXML.SaveToStream