Search found 7422 matches

by Sergey Tkachenko
Sat May 12, 2018 4:59 pm
Forum: Examples, Demos
Topic: [ReportWorkshop][Unit] Image file names in fields
Replies: 0
Views: 293

[ReportWorkshop][Unit] Image file names in fields

Question: In my database, instead of saving the image, I saved the image path. How can I make Report Workshop display the image for the path? Answer: This is not a standard functionality, but it can be implemented with a very simple add-on. Report Workshop implements standard field types, such as '...
by Sergey Tkachenko
Sat May 05, 2018 7:59 pm
Forum: Support
Topic: Move caret to end text cell
Replies: 3
Views: 475

Re: Move caret to end text cell

Moving to the end of table.Cells[r,c]: uses RVTable, CRVFData; var RVData: TCustomRVFFormattedData; ItemNo, Offs: Integer; RVData := table.Cells[r,c].Edit as TCustomRVFFormattedData; ItemNo := RVData.ItemCount - 1; Offs := RVData.GetOffsAfterItem(ItemNo); RVData.SetSelectionBounds(ItemNo, Offs, Item...
by Sergey Tkachenko
Thu May 03, 2018 3:26 pm
Forum: Support
Topic: Very large RTF result for small text
Replies: 2
Views: 347

Re: Very large RTF result for small text

Sometimes, unused list styles are added when importing RTF.
Call RichViewEdit.DeleteUnusedStyles(True, True, True) after loading to delete them.

If you use TDBRichViewEdit, assign its property AutoDeleteUnusedStyles = True.
by Sergey Tkachenko
Thu May 03, 2018 3:17 pm
Forum: Examples, Demos
Topic: [Demo] Shared StyleTemplates
Replies: 1
Views: 392

Re: [Demo] Shared StyleTemplates

This video shows how this demo works:
by Sergey Tkachenko
Thu May 03, 2018 2:52 pm
Forum: Examples, Demos
Topic: [Demo] Shared StyleTemplates
Replies: 1
Views: 392

[Demo] Shared StyleTemplates

1) This demo uses FireDAC and InterBase table: http://www.trichview.com/support/files/dbstyledemo-firedac_ib.zip 2) This demo uses BDE: http://www.trichview.com/support/files/dbstyledemo-bde.zip TRichView 17.3 or newer is required. These demos show how to use the rvfoSaveStyleTemplatesOnlyNames opti...
by Sergey Tkachenko
Wed May 02, 2018 6:56 pm
Forum: Support
Topic: How Right to cancel the add table row data
Replies: 2
Views: 404

Re: How Right to cancel the add table row data

What's your code exactly? Can you post it here? Unfortunately, the current version of grouping undo operations does not allow grouping operations inside cells (text insertion) and operations outside cells (row addition). But AV must not happen. I have an idea how to improve undo grouping, I'll see i...
by Sergey Tkachenko
Wed May 02, 2018 3:28 pm
Forum: Examples, Demos
Topic: Updating this forum to version 17.3
Replies: 1
Views: 530

Re: Updating this forum to version 17.3

The conversion is finished. All demo projects and code samples in this forum are compatible with TRichView 17.3.

If I overlooked something (and it does not work with TRichView 17.3), please let me know.
by Sergey Tkachenko
Wed May 02, 2018 12:55 pm
Forum: Examples, Demos
Topic: [Example] How to store page information in RVF
Replies: 2
Views: 19053

Re: [Example] How to store page information in RVF

New version of this code. -using RVPrint.Margings, RVPrint.HeaderY, RVPrint.FooterY instead of deprecated RVPrint.***MM properties - assigning TitlePage and FacingPages property - the code for assigning DocParameters uses DocParameters.Units and does not change it - using RV_UnitsToUnits function f...
by Sergey Tkachenko
Mon Apr 30, 2018 6:46 pm
Forum: Examples, Demos
Topic: [Demos] Mail Merge
Replies: 14
Views: 80644

Re: [Demos] Mail Merge

I have updated all demos in this topic for compatibility with TRichView 17.3 Additional changes: 1. All MailMerge-Text demos that support multiline text now use the same InsertMultilineText procedure. This procedure is moved to RVInsertMultilineText.pas. This unit is included in the demo projects, y...
by Sergey Tkachenko
Mon Apr 30, 2018 9:05 am
Forum: Support
Topic: Convert to HTML without a visual editor
Replies: 3
Views: 2834

Re: Convert to HTML without a visual editor

This method must work.
Make sure that you linked TRVReportHelper with some TRVStyle component:
RVReportHelper1.RichView.Style := RVStyle1;
by Sergey Tkachenko
Wed Apr 25, 2018 1:24 pm
Forum: Examples, Demos
Topic: Updating this forum to version 17.3
Replies: 1
Views: 530

Updating this forum to version 17.3

We are working to update all demo projects and code samples posted here. We are updating them for compatibility with TRichView 17.3 . In this version of TRichView, all strings were changed to TRVUnicodeStrings (i.e. to UnicodeString/WideString, depending on Delphi version), and this change requires ...
by Sergey Tkachenko
Wed Apr 25, 2018 1:02 pm
Forum: RVMedia
Topic: ANN: RVMedia 5.3 beta
Replies: 2
Views: 1040

Re: ANN: RVMedia 5.3 beta

Sorry, no FM version yet.
Our plans:
- return Lazarus and Linux compatibility and release that version as RVMedia 6
- FireMonkey for Windows

Version for Android is planned too, but not in near future.
by Sergey Tkachenko
Sat Apr 21, 2018 7:11 pm
Forum: Support
Topic: save TDBRichViewEdit configuration
Replies: 3
Views: 485

Re: save TDBRichViewEdit configuration

TRichView does not use these properties for printing. They are used only for saving and loading in documents (RVF, RTF, DocX). For printing, properties of TRVPrint are used (such as margins) and properties of the current printer (such as page size and orientation). Here is how to store page informat...
by Sergey Tkachenko
Sat Apr 21, 2018 2:07 pm
Forum: Examples, Demos
Topic: PDF manuals
Replies: 1
Views: 1932

Re: PDF manuals

by Sergey Tkachenko
Sat Apr 21, 2018 12:50 pm
Forum: Examples, Demos
Topic: [Example] Document structure as a tree
Replies: 7
Views: 33732

Re: [Example] Document structure as a tree

Code for TRichView 17.3 and newer: procedure ShowStructure(RVData: TCustomRVData; Node: TTreeNode); var i, StyleNo: Integer; ParaNode, ItemNode: TTreeNode; function GetExtraBreakProps(i: Integer): String; begin if RVData.PageBreaksBeforeItems[i] then begin Result := '; page break'; exit; end; if RVD...