Search found 9390 matches

by Sergey Tkachenko
Wed Mar 27, 2024 8:46 pm
Forum: Support
Topic: merge items in RV17.6.2--RV22
Replies: 14
Views: 223

Re: merge items in RV17.6.2--RV22

I confirm the bug in RTF and DocX reading. Quick fix: Open RVRTFProps.pas. Change the line 2764 from if (InsertPoint > 0) and item.SameAsPrev and (item.StyleNo >= 0) and (CurrentRVData.GetItemStyle(InsertPoint - 1) = item.StyleNo) and (item.Checkpoint = nil) then to if (InsertPoint > 0) and item.Sam...
by Sergey Tkachenko
Tue Mar 26, 2024 7:19 pm
Forum: Support
Topic: merge items in RV17.6.2--RV22
Replies: 14
Views: 223

Re: merge items in RV17.6.2--RV22

In your original example (|The item1| cat item2| ate item3|), are all 3 items hyperlinks with different targets?
In this case, they must not be merged into a single item.
Please send me a complete sample document for testing.
by Sergey Tkachenko
Tue Mar 26, 2024 5:42 pm
Forum: Support
Topic: merge items in RV17.6.2--RV22
Replies: 14
Views: 223

Re: merge items in RV17.6.2--RV22

Do you load RTF or RVF? If RTF (Rich Text Format, format of MS Word), then RTF does not have items. It has commands like "make bold", "apply font name", etc. Also, tags are not saved in RTF (except for hypertext targets stored in tags). So, items cannot be kept when saving and re...
by Sergey Tkachenko
Tue Mar 26, 2024 9:06 am
Forum: Support
Topic: PDF Engine and TRichView
Replies: 1
Views: 83

Re: PDF Engine and TRichView

TRichView does not have its own methods for PDF export. However, it can use third-party PDF engines. 1. If you use FireMonkey, you can use PDF engine of Skia4Delphi. Just use TRVPrint.SavePDF or TRVReportHelper.SavePDF . Skia4Delphi is included in Delphi 12, or can be downloaded from https://github....
by Sergey Tkachenko
Mon Mar 25, 2024 10:16 am
Forum: Support
Topic: Insert Item into a Header\Footer
Replies: 3
Views: 260

Re: Insert Item into a Header\Footer

3) This function returns the index of paragraph style having all properties of the ParaNo-th paragraph style, but the specified alignment. If such a style does not exist, the function creates it: function GetParaNoWithAlignment(ARVStyle: TRVStyle; ParaNo: Integer; Alignment: TRVAlignment): Integer; ...
by Sergey Tkachenko
Mon Mar 25, 2024 10:06 am
Forum: Support
Topic: Insert Item into a Header\Footer
Replies: 3
Views: 260

Re: Insert Item into a Header\Footer

2) To insert a page number from the second page, you need to activate the special header for the first page: fScaleRichView.PageProperty.TitlePage := True. (or, if you want to do it as an undoable operation, fScaleRichView..SetIntPropertyEd(srvipPPTitlePage, 1)). Please note that fScaleRichView.Star...
by Sergey Tkachenko
Mon Mar 25, 2024 9:50 am
Forum: Support
Topic: Insert Item into a Header\Footer
Replies: 3
Views: 260

Re: Insert Item into a Header\Footer

1) Before inserting content to the footer, you must activate its editing using StartEditing(srvrveHeader);.
See the explanation here: https://www.trichview.com/forums/viewto ... 203#p39203
by Sergey Tkachenko
Thu Mar 21, 2024 2:34 pm
Forum: Support
Topic: Shrink the text
Replies: 1
Views: 194

Re: Shrink the text

Do you want to change text size dynamically? I.e., make text in long documents smaller, and in short documents larger? If yes, the simplest way is not changing font size, but apply zooming, by changing DocumentPixelsPerInch property. Smaller values make text smaller. After changing this property, ca...
by Sergey Tkachenko
Wed Mar 20, 2024 2:05 pm
Forum: RVMedia
Topic: Doesn't capture video stream
Replies: 4
Views: 1333

Re: Doesn't capture video stream

Summary: I received a sample jpeg frame from the topic starter. This is an unusual Jpeg, it cannot be read by Delphi classes (by TJpegImage in Vcl, and by TBitmap in FireMonkey). But I found how to modify it to make it compatible, and it seems to work now. I sent modified units to the topic starter ...
by Sergey Tkachenko
Wed Mar 20, 2024 12:31 pm
Forum: Support
Topic: I want the user cannot write more than 12 lines
Replies: 1
Views: 240

Re: I want the user cannot write more than 12 lines

There is no built-in line count limitation. You can process OnChange event. In this event, check line count: function IsParaCountOk(rv: TCustomRichView; MaxCount: Integer): Boolean; var Count: Integer; begin Result := False; Count := 0; for i := 0 ro rv.ItemCount - 1 do if rv.IsFromNewLine[i] then b...
by Sergey Tkachenko
Sun Mar 17, 2024 7:22 pm
Forum: Examples, Demos
Topic: [Demo] Editors in editors
Replies: 12
Views: 43544

Re: [Demo] Editors in editors

Can you send me a sample project, as simple as possible?
by Sergey Tkachenko
Sun Mar 17, 2024 7:21 pm
Forum: Support
Topic: Best way to handle using TRichView
Replies: 5
Views: 12330

Re: Best way to handle using TRichView

Unfortunately, tables cannot be placed side by side. Planned for future versions.
by Sergey Tkachenko
Sun Mar 17, 2024 7:20 pm
Forum: Support
Topic: Make the caret visible
Replies: 3
Views: 686

Re: Make the caret visible

1. Make sure that the editor is formatted. Call rve.Format; (this method moves the caret to the end of the document, so MoveCaret is redundant).
2. Probably the editor is not focused. Call rve.SetFocus.
by Sergey Tkachenko
Sat Mar 16, 2024 6:40 pm
Forum: Examples, Demos
Topic: [Demo] Editors in editors
Replies: 12
Views: 43544

Re: [Demo] Editors in editors

1. As for rv.RVData.DocumentWidth, try assigning rv.WordWrap = False. 2. As for efficiency. Do you need to add all this content by one function call, or do you add/delete subeditors one by one? The most efficient method is adding all content (using AddControlEx method), and then call rv.Format only ...
by Sergey Tkachenko
Wed Mar 13, 2024 8:50 pm
Forum: Support
Topic: HunSpell
Replies: 1
Views: 1023

Re: HunSpell

Do you call RVHunSpell.Check() yourself? If you assigned RVHunSpell to RVAHunSpellInterface.HunSpell, you should not call RVHunSpell.Check() (because it will attempt to localize a spell-checking dialog and will fail). Instead, use TrvActionSpellCheck action. This action assigns RVAHunSpellInterface....