Search found 9408 matches

by Sergey Tkachenko
Tue May 20, 2008 4:47 pm
Forum: Support
Topic: Replace text part of RichViewEdit1 by text part of RichViewE
Replies: 3
Views: 9817

Sorry, what do you mean by replacing text part? If you want to copy document as a plain text (without all text and paragraph attributes, images, tables, etc.) use this code: var Stream: TStringStream; begin Stream := TStringStream.Create(''); RichViewEdit1.SaveTextToStream('', Stream, 80, False, Fal...
by Sergey Tkachenko
Tue May 20, 2008 12:02 pm
Forum: Support
Topic: Printing Problem with tables!
Replies: 47
Views: 141959

Yes, it does.
I opened access to the member section for your account.
by Sergey Tkachenko
Sat May 17, 2008 4:49 pm
Forum: Support
Topic: rve.GetItemCoords identifies 1st line of multline Paragraph
Replies: 4
Views: 12108

Units DLines and CRVFData must still be added in "uses" of the unit where these functions are defined, otherwise the compiler will report error on lines with .Item2DrawItem and .Top. There is nothing wrong with using these units, they are already used by trichview code. Without the line rv...
by Sergey Tkachenko
Sat May 17, 2008 1:27 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19733

Well, if you need I can post code for for fast splitting text item (not as an editing operation).

But all stored positions become invalid after editing...
by Sergey Tkachenko
Sat May 17, 2008 12:14 pm
Forum: Support
Topic: rve.GetItemCoords identifies 1st line of multline Paragraph
Replies: 4
Views: 12108

uses CRVFData, DLines; procedure GetCaretY(rve: TCustomRichViewEdit): Integer; var DItemNo, DItemOffs, X, Y: Integer; begin rve := rve.TopLevelEditor; rve.RVData.Item2DrawItem(rve.CurItemNo, rve.OffsetInCurItem, DItemNo, DItemOffs); rve.RVData.GetOriginEx(X, Y); Result := rve.RVData.DrawItems[DItemN...
by Sergey Tkachenko
Sat May 17, 2008 12:09 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19733

The method InsertCheckpoint inserts the checkpoint at the caret position. If it is in the middle of the item, the item will be splitted.

The methods GetFirstCheckpoint and GetNextCheckpoint allow to enumerate checkpoints without enumerating all items. But they ignore checkpoints in table cells.
by Sergey Tkachenko
Sat May 17, 2008 11:04 am
Forum: Support
Topic: www.trichview.com can not be visited from China. why ?
Replies: 2
Views: 8369

The site moving procedure is started. After transferring is complete (1-2 days), I believe the site will be available in China.
by Sergey Tkachenko
Sat May 17, 2008 10:46 am
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19733

May be it makes sense to mark these places with Checkpoints?
by Sergey Tkachenko
Sat May 17, 2008 10:44 am
Forum: Support
Topic: "#13#10" or (only) "#13"
Replies: 1
Views: 7438

First, in trichview itself, these characters are not stored. They are converted to internal flag "this item starts a paragraph". As for using them in methods like InsertText or AddTextNL, it does not matter. TRichView understands line breaks defined as #13, or as #10, or as #13#10, or as #...
by Sergey Tkachenko
Thu May 15, 2008 6:50 pm
Forum: Support
Topic: resynchronizing
Replies: 8
Views: 19733

How do you fill this listbox initially? Do each paragraph in ScaleRichView correspond to one listbox item, or how?
by Sergey Tkachenko
Thu May 15, 2008 6:48 pm
Forum: Support
Topic: How to Insert CR LF when writing to TRichView
Replies: 1
Views: 8455

RichViewEditIn.InsertText('This is line 1'#13'This is line 2', False);
by Sergey Tkachenko
Thu May 15, 2008 1:45 pm
Forum: Examples, Demos
Topic: [Demo] Advanced RTF to PDF demo using LLPDFLib (open source)
Replies: 10
Views: 112889

[Demo] Advanced RTF to PDF demo using LLPDFLib (open source)

Update 2017-Dec-4 ] TRichView setup now includes better version of this demo in <TRichViewDir>\ThirdParty\Export\LLPDFLib\Demos\RV2PDF\ folder. This better version reads all page properties from source RTF (or RVF) files and applies them to PDF, supports headers, footers, footnotes and endnotes, di...
by Sergey Tkachenko
Wed May 14, 2008 3:19 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 23509

I do not understand the first questions. All these lines (header, item text, image class, etc.) represents one item in RVF. The link for detailed RVF specification is http://www.trichview.com/help/index.html?rvf_specification.html If you use TMemoryStream, you can access data as Stream.Memory. The c...
by Sergey Tkachenko
Tue May 13, 2008 8:28 pm
Forum: ScaleRichView
Topic: Speed problem - at the table search - replace operation
Replies: 1
Views: 12926

You can do field replacement much faster without SearchText method.
See http://www.trichview.com/forums/viewtopic.php?t=8 , it had example with fields defined by {} characters.
by Sergey Tkachenko
Tue May 13, 2008 3:28 pm
Forum: Support
Topic: cursor is hidden after using rve.scrollTo
Replies: 4
Views: 12587

Do you want to move caret to the specified Y position?

Code: Select all

var RVData:TCustomRVFormattedData;
  ItemNo, OffsetInItem: Integer;

rv.GetItemAt(0, Y, RVData, ItemNo, OffsetInItem, False);
RVData := TCustomRVFormattedData(RVData.Edit);
RVData.SetSelectionBounds(ItemNo, OffsetInItem, ItemNo, OffsetInItem);