Changing filename automatic after Import...

General TRichView support forum. Please post your questions here
Post Reply
StevieO
Posts: 6
Joined: Tue Oct 07, 2008 4:05 pm

Changing filename automatic after Import...

Post by StevieO »

Hi!

How could I change the filename after Importing a *.DOC ??

To see it when I close the APP and the question appers "Save changes in xxx?"

Thanks!!!!

Stevie
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

RichViewActions cannot save DOC files, so DOC files are available only in Insert | File dialog, not in File | Open dialog.
StevieO
Posts: 6
Joined: Tue Oct 07, 2008 4:05 pm

Post by StevieO »

Sergey Tkachenko wrote:RichViewActions cannot save DOC files, so DOC files are available only in Insert | File dialog, not in File | Open dialog.
That was'nt my question... :D I know that!
I want to know how to change the filename, before the SaveAs dialog displaying it?

Thanks!
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you want to change file name for new documents, use RVAControlPanel.DefaultFileName (change it before execution of TrvActionNew).
If you want to change file name for document with assigned name (assigned after executing TrvActionOpen or TrvActionSaveAs), you can use TrvActionSave.Documents:

Code: Select all

TrvaDocumentInfo(rvActionSave1.Documents[rvActionSave1.FindDoc(RichViewEdit1)]).FileName := ...
StevieO
Posts: 6
Joined: Tue Oct 07, 2008 4:05 pm

Post by StevieO »

Sergey Tkachenko wrote:If you want to change file name for new documents, use RVAControlPanel.DefaultFileName (change it before execution of TrvActionNew).
If you want to change file name for document with assigned name (assigned after executing TrvActionOpen or TrvActionSaveAs), you can use TrvActionSave.Documents:

Code: Select all

TrvaDocumentInfo(rvActionSave1.Documents[rvActionSave1.FindDoc(RichViewEdit1)]).FileName := ...
Thanks!
Excellent Help!
Post Reply