To save new files automatically

General TRichView support forum. Please post your questions here
Post Reply
jspark
Posts: 3
Joined: Wed Apr 26, 2023 6:24 am

To save new files automatically

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: To save new files automatically

Post by Sergey Tkachenko »

Assign
ActionsResource.rvActionSave1.GetDoc(RichViewEdit1).Defined := True;
jspark
Posts: 3
Joined: Wed Apr 26, 2023 6:24 am

Re: To save new files automatically

Post by jspark »

Thank you.
Post Reply