Search found 57 matches
- Sun Jun 28, 2020 6:46 pm
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 20205
"ini.UpdateFile" code required!
Hi Sergey, method SaveToStreamRVST does not save data in ini file. To save the data, at the end of the operation you need to call the method "ini.UpdateFile": ... try ini.EraseSection(STYLETEMPLATEINISECTION); SaveToINI(ini, STYLETEMPLATEINISECTION); ini.WriteInteger(STYLETEMPLATEINISECTIO...
- Sat Jun 06, 2020 8:32 am
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 20205
Re: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
Thank you, Sergey!
>> I did not know that TMemIniFile can be linked to a stream. I checked, this feature was added in RAD Studio 10.3
work correctly with 10.2, don’t know for earlier versions
>> I did not know that TMemIniFile can be linked to a stream. I checked, this feature was added in RAD Studio 10.3
work correctly with 10.2, don’t know for earlier versions
- Tue May 12, 2020 10:53 pm
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 20205
TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
Hi Sergey, can you add something like that in TRVStyleTemplateCollection? function TRVStyleTemplateCollection.SaveToStreamRVST(Stream: TStream; Units: TRVStyleUnits): Boolean; var ini: TMemIniFile; begin Result := False; try ini := TMemIniFile.Create(Stream, TEncoding.UTF8); try ini.EraseSection(STY...
- Sun Mar 29, 2020 11:33 am
- Forum: Support
- Topic: Problem streaming to/from cells
- Replies: 11
- Views: 34920
Re: Problem streaming to/from cells
I had a similar situation (DrawItemNo = -1). I solved the problem by adding Edit.Format right after SaveRVFToStream.
- Sun Dec 22, 2019 8:07 am
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 23866
Re: Borders and table on each page of the document
Sergey, maybe Header/Footer is the best solution in this case? And draw two vertical lines (left and right, to connect header and footer tables)? But for them to be visible in the document, I need ScaleRichView (not TRichView), right?
- Sat Dec 21, 2019 5:16 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 23866
Re: Borders and table on each page of the document
I also thought about the background with the option "bsTiled". But in this case, the image of the frame (table) needs to be prepared somewhere... Maybe let the user create a table, then make it a bitmap and use this image as a background? The case with the image instead of the table seems ...
- Sat Dec 21, 2019 3:36 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 23866
Re: Borders and table on each page of the document
At first I thought that the table is not the best solution... Or is it possible to "rigidly" fix the indentation of the table from the edges of the sheet, for example, 5 mm each? And is it possible to repeat this table on each sheet without copying?
- Sat Dec 21, 2019 1:15 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 23866
Borders and table on each page of the document
Hi there! I want to ask advice. Our clients often want to see a document with a frame that is made according to a certain rule (standard). The frame can have mini-tables located at the edges of the document (left, right, top, and bottom). Usually, this frame is repeated on all pages or except the fi...
- Sat Sep 28, 2019 7:35 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
- Sat Sep 28, 2019 6:50 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
'Arial' cannot be used as font for equations. Only special math fonts can be used Yeah, I know that, but the original code in RVMathEditorFrm.pas just confused me) procedure TfrmRVMathEditor.FormCreate(Sender: TObject); begin ... cmbFontSize.FontName := 'Arial'; cmbDefFontSize.FontName := 'Arial'; ...
- Fri Sep 27, 2019 8:09 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
Thanks, Sergey!
I try to create my own form to set default equation settings and see that in TfrmRVMathEditor.FormCreate comboboxes initiates with 'Arial' font. Is this correct or I need to set init values 'Cambria Math'?
I try to create my own form to set default equation settings and see that in TfrmRVMathEditor.FormCreate comboboxes initiates with 'Arial' font. Is this correct or I need to set init values 'Cambria Math'?
- Thu Sep 26, 2019 8:42 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
Sergey, one more question. When loading a document from a stream using InsertRVFFromStream (not LoadRVFFromStream) equations are rolled back to the original formatting. I read the help about DocObjects and the idea is clear, but I need to use InsertRVFFromStream due to working with styles templates....
- Wed Sep 25, 2019 7:38 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
Ok, in the next update, it will be possible to get and set erroneous text in TRVMathItemInfo, without exceptions. it will be great! Sergey, I want to ask also about TrvActionInsertEquation: this action does not call the methods SetItem/GetItem, only Init method? If "Font > This equation" ...
- Mon Sep 23, 2019 8:39 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
Hmm, but if the user wants to return to editing equation later? Maybe I need to create descendant class of TRVMathItemInfo, save equation text in a separate property and use it in the TfrmRVMathEditor?
- Mon Sep 23, 2019 5:53 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 50815
Re: Equation font in TfrmRVMathEditor: strange behavior
Thanks Sergey, the situation cleared up a bit. Indeed, instead of TrvActionItemProperties I used TrvActionInsertEquation. Action TrvActionItemProperties works fine, but there is one problem: if equation contained an error symbol, editor form will show an empty string. This happens in method SetItem,...