Page 1 of 1

Changing filename automatic after Import...

Posted: Tue Oct 07, 2008 4:09 pm
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

Posted: Tue Oct 07, 2008 6:10 pm
by Sergey Tkachenko
RichViewActions cannot save DOC files, so DOC files are available only in Insert | File dialog, not in File | Open dialog.

Posted: Wed Oct 08, 2008 7:54 am
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!

Posted: Wed Oct 08, 2008 11:56 am
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 := ...

Posted: Wed Oct 08, 2008 2:12 pm
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!