Page 1 of 1

To save new files automatically

Posted: Wed Apr 26, 2023 6:55 am
by jspark
Hello.

I'd like to inquire about RivhViewEdit.

When the user clicks the Save button, a save dialog window appears.
The save dialog window does not appear, and the system forces the file name to be applied
Can I have it saved automatically in a specific folder?

Sample code:
rvActionsResource.rvActionSave1.GetDoc(RichViewEdit1).FileName := FormatDateTime('YYYYMMDD hhmmss',now);
rvActionsResource.rvActionSaveAs1.ExecuteTarget(RichViewEdit1);

I don't want the save dialog window to appear when I run ExecuteTarget.

Thank you.

Re: To save new files automatically

Posted: Wed Apr 26, 2023 9:48 am
by Sergey Tkachenko
Assign
ActionsResource.rvActionSave1.GetDoc(RichViewEdit1).Defined := True;

Re: To save new files automatically

Posted: Thu Apr 27, 2023 11:37 pm
by jspark
Thank you.