Search found 16 matches

by SpoQSI
Thu Jan 14, 2016 12:20 pm
Forum: Support
Topic: RV Header/Footer in HTML
Replies: 6
Views: 22688

To make clear where i need it: procedure TsrvActionsResource.TestActionEventExecute(Sender: TObject; Editor: TCustomRichViewEdit); begin // Here i need the Header and Footer of the Editor. end; This is a custom rv action added in your ActionTest Demo in the "ScaleRichView\Demos\ActionTest" Folder of ...
by SpoQSI
Tue Jan 12, 2016 11:47 am
Forum: Support
Topic: RV Header/Footer in HTML
Replies: 6
Views: 22688

As said, i used your ActionTest Demo (ScaleRichView) as basis and expanded it.

As far as i can tell, there you got a single ScaleRichViewEdit containing the whole Document, including Header and Footer.
by SpoQSI
Mon Jan 11, 2016 8:37 am
Forum: Support
Topic: RV Header/Footer in HTML
Replies: 6
Views: 22688

I have not the problem of saving documents as HTML and am doing it this way: saveOptions := [rvsoInlineCSS, rvsoOverrideImages]; Editor.SaveHTMLEx(appPath + 'TempFiles\HTMLExportDoc.htm', 'Document', 'HTMLExportDoc.Files\docImg', '', '', '', saveOptions); I am using your ActionTestDemo where you got ...
by SpoQSI
Mon Jan 04, 2016 9:46 am
Forum: Support
Topic: RV Header/Footer in HTML
Replies: 6
Views: 22688

RV Header/Footer in HTML

Hello, due to several reasons i need to save and work with richview documents as HTML. I have a problem whith the export. Naturally the header and the footer are not exported to HTML. My idea to solve that would be to copy the header and paste it to the beginning of the document, then copy the ...
by SpoQSI
Mon Sep 28, 2015 6:58 am
Forum: Support
Topic: How RichEdit to RichView
Replies: 6
Views: 26030

I haven´t tested it yet, but you might try:

Code: Select all

procedure CopyFromRichEditToRichView();
    var strStream: TStringStream;
begin
    RichEdit1.Lines.SaveToStream(strStream);
    RichView1.LoadRTFFRomStream(strStream);
end;
by SpoQSI
Tue Sep 15, 2015 7:15 am
Forum: Support
Topic: Text changes when saved with ScaleRichView.
Replies: 2
Views: 13286

Thank you for the information on this. This is more or less a big problem for me. Do you have any ETA on this feature?
by SpoQSI
Fri Sep 11, 2015 2:16 pm
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

Thank you for the fast response, but i can´t find the unit i have to add to the usings in which CompleteFormat is held.
by SpoQSI
Fri Sep 11, 2015 1:47 pm
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

Correct: This is what it should look like and what it looks, if i Load the RTF via the standard open button in the ActionTest-Demo http://s8.postimg.org/4f9jgokpx/Error_Loading_Correct.jpg Incorrect: This is what it looks like when loaded with this code: procedure TsrvActionsResource ...
by SpoQSI
Fri Sep 11, 2015 10:09 am
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

Oh i noticed the problem is not solved completely. When i load an RTF now this way: procedure TsrvActionsResource.OpenNewPlainTemplateActionEventExecute( Sender: TObject; Editor: TCustomRichViewEdit); var appPath : string; begin appPath := ExtractFilePath(Application.ExeName); Editor.Clear; Editor ...
by SpoQSI
Fri Sep 11, 2015 9:11 am
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

Great, the two suggestions solved my problems with that. Thank you very much.

One more Question:
How exactly can i get the current Documents RTF-Text as string without saving it to an rtf file?

I need to save and load the documents from and to a Database.
by SpoQSI
Thu Sep 10, 2015 12:43 pm
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

Also, if i try it the TsrvAction-Way you mentioned i cannot compile the code as TCustomRichViewEdit is not know.
by SpoQSI
Thu Sep 10, 2015 12:37 pm
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

A sample project is not needed. Open ActionTest (The Demo), add a button to the upper left corner (or somewhere else) on the toolbar and set a Click-Event. Add this code to the button: procedure TForm3.Button2Click(Sender: TObject); var appPath : string; begin appPath := ExtractFilePath(Application ...
by SpoQSI
Thu Sep 10, 2015 10:37 am
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

I have no bug assigning an Action to a Toolbutton. The bug, as described, occurs when i do something in the OnClick Event of a Button in the Toolbar.

I have Delphi 6 and the latest Non-Beta TRichView Version.
by SpoQSI
Wed Sep 09, 2015 12:13 pm
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

I don´t understand what i have to do now. in your example in http://www.trichview.com/forums/viewtopic.php?t=4981 you say to use the Action Editor to add a new action. This is what i did. I have: OpenPlainTemplateAction: TAction; procedure OpenPlainTemplateActionExecute(Sender: TObject); private ...
by SpoQSI
Wed Sep 09, 2015 9:39 am
Forum: Support
Topic: RichViewActions, how to get the executing richedit?
Replies: 15
Views: 48228

RichViewActions, how to get the executing richedit?

Hello, in the RichViewActions Demo, which i costumize, i need costum buttons in the toolbar. Normal OnClick-Events don´t work, as i get exceptions with buttons without any action applied. Therefor i wanted to create custom Actions, but i don´t know how to access the richview (scalerichview) which is ...