Set filename prior to Save Action's Execute

General TRichView support forum. Please post your questions here
Post Reply
MarkElder
Posts: 21
Joined: Tue Aug 28, 2012 7:43 pm

Set filename prior to Save Action's Execute

Post by MarkElder »

Hello,

I am trying to programmatically set the filename for a first save of a document. Basically I have a default editor hooked up to all the Rich View Actions. The Rich View Open/Save/Save As actions should work as normal.

I have a 'Create New File' button that will create a new rich view file with a specific name, in a specific directory. If the user hits the save button they should not be prompted for a file name. However they can still use the Save As action to change the name of the file.

Digging into the Actions it looks like I should call TrvActionSave.AddDoc to set my file name and desired output format. However this method is Protected.

Is there some other way I can accomplish this? The Documents list where the last filename is stored so it looks like I can copy the AddDoc code into my own form but I was trying to avoid that.

Thanks,

Mark
Post Reply