Search found 9411 matches

by Sergey Tkachenko
Sun Dec 24, 2006 7:18 am
Forum: Support
Topic: How to get the text of first line
Replies: 3
Views: 11743

uses CRVData, RVTable; function GetFirstLineText(RVData: TCustomRVData): String; var i: Integer; begin i := 0; if RVData.GetItemStyle(i)=rvsListMarker then inc(i); if RVData.GetItemStyle(i)=rvsTable then Result := GetFirstLineText(TRVTableItemInfo(RVData.GetItem(i)).Cells[0,0].GetRVData) else begin...
by Sergey Tkachenko
Sat Dec 23, 2006 9:22 pm
Forum: Support
Topic: TrichviewEdit and blob stream
Replies: 1
Views: 8110

(Please use English in the forum. Questions in Russian can be sent using private message or e-mail).

Your code looks correct. RVF must be written in the field.
May be this field type cannot contain binary data?
by Sergey Tkachenko
Sat Dec 23, 2006 9:18 pm
Forum: Support
Topic: table width and height: can NOt figure. Help
Replies: 5
Views: 16368

LoadRVFFromStream can either load styles (existing styles are replaced) or ignore styles (so collections of styles at the moment of loading must be the same as at the moment of saving, otherwise document cannot be loaded). I hope the following setting will work as you need: 1) Return back saving and...
by Sergey Tkachenko
Sat Dec 23, 2006 3:47 pm
Forum: Support
Topic: OnHTMLSaveImage or OnSaveImage2
Replies: 9
Views: 26050

Ok, in the next update of RichViewActions, TrvActionBackground will have new event and property: 1) OnChange event - occurs after clicking "OK" in the dialog 2) ImageFileName: String - background image file name. You can use this event and property to store file name for background image s...
by Sergey Tkachenko
Fri Dec 22, 2006 12:48 pm
Forum: Support
Topic: table width and height: can NOt figure. Help
Replies: 5
Views: 16368

If you do not want to load collections of paragraph and list styles from RVF, set RVFParaStylesReadMode=rvf_sIgnore. For text styles, set RVFTextStylesReadMode to the same value. If you do not want to save styles in RVF file, exclude rvfoSaveParaStyles and rvfoSaveTextStyles from RVFOptions. As for ...
by Sergey Tkachenko
Fri Dec 22, 2006 12:30 pm
Forum: Support
Topic: Saving text-style information in RTF files (OnSaveRTFExtra)?
Replies: 1
Views: 8868

rv_rtfs_TextStyle allows saving additional properties for text style. It does not allow applying text styles to text fragment. I am afraid it's not possible. It's simple to define font size. For 12pt, add \fs24 after \plain. But defining font name requires index in RTF font table. This table is not ...
by Sergey Tkachenko
Thu Dec 21, 2006 2:32 pm
Forum: Support
Topic: table width and height: can NOt figure. Help
Replies: 5
Views: 16368

Please send me a simple project demonstrating the problems.
by Sergey Tkachenko
Thu Dec 21, 2006 2:31 pm
Forum: Support
Topic: how to ensure fields expand (inserted with InsertStringtag)?
Replies: 1
Views: 8841

Call RichView.Format after changing text in fields.
by Sergey Tkachenko
Thu Dec 21, 2006 2:30 pm
Forum: Support
Topic: Hints not showing inthe status bar
Replies: 3
Views: 13451

Do you call RVA_LocalizeForm(<form or datamodule containing actions>)?

It's necessary even if you use only English. ActionTest demo does it in TForm3.Localize, called in FormCreate.
by Sergey Tkachenko
Thu Dec 21, 2006 2:23 pm
Forum: Support
Topic: autosave problems, using savehtmlex ...
Replies: 14
Views: 40227

Do you use timer or thread?
by Sergey Tkachenko
Tue Dec 19, 2006 3:25 pm
Forum: Support
Topic: Convertion from RTF to TEXT.
Replies: 4
Views: 13495

SaveText and SaveTextToStream produce exactly the same output (because SaveText calls SaveTextToStream inside).

If the file and the table content is different, that means that the database itself has modified it. Does it allow specifying language for the field or for the table?
by Sergey Tkachenko
Tue Dec 19, 2006 12:53 pm
Forum: Support
Topic: Page Break problem
Replies: 1
Views: 8668

Sorry, I missed this e-mail. In the first e-mail you asked: When copy and paste the content from Word, the page break is not inserted into RV, is this a bug or i missout some setting? In the second e-mail you sent me an example of document which should reproduce the problem. But this document does n...
by Sergey Tkachenko
Tue Dec 19, 2006 12:48 pm
Forum: Support
Topic: Move caret to original position
Replies: 1
Views: 10195

You cannot store position as a number of characters from the beginning, because this value becomes incorrect if you delete something before this position. I think the simplest way is to store the following value: 1) RVData := RichViewEdit1.TopLevelEditor.RVData.GetSourceRVData; 2) ItemNo := RichView...
by Sergey Tkachenko
Tue Dec 19, 2006 12:36 pm
Forum: Support
Topic: SaveText
Replies: 1
Views: 8279

by Sergey Tkachenko
Tue Dec 19, 2006 12:35 pm
Forum: Support
Topic: Convertion from RTF to TEXT.
Replies: 4
Views: 13495

For example, function SaveTextToField(rv: TCustomRichView; tbl: TTable; const FieldName: String): Boolean; var Stream: TStream; begin Stream := TMemoryStream.Create; try Result := rv.SaveTextToStream('', Stream, 60, False, False); Stream.Position := 0; TBlobField(tbl.FieldByName(FieldName)).LoadFrom...