Which trvActionSave event to use for automatical processes?

General TRichView support forum. Please post your questions here
Post Reply
starhu
Posts: 49
Joined: Fri Jan 17, 2014 6:33 pm

Which trvActionSave event to use for automatical processes?

Post by starhu »

Hello,

I need to save a docx when the user uses trvActionSave to save the file.
Should I use OnSaving event for that?

Thank you
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TrvActionSave cannot save DocX, because it supports only formats that TRichView can load.

And I do not understand how it should work. For example, a user opens "c:\docs\readme.txt'. Should the action save to this file in DocX format?
starhu
Posts: 49
Joined: Fri Jan 17, 2014 6:33 pm

Post by starhu »

Hello,

1.The user would create a new .rvf file. Then edit it, insert pictures etc.

2.When he saves the .rvf file, to software should save the rvf file and then it should also save (or export) a copy in docx in another folder.

So every save would create 2 files: an rvf file and a docx file.

Thank you
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, you can use OnSaving event. It has all necessary parameters for this task.
Post Reply