Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word from Foxpro-docproperties doesn't change saveas
Message
 
 
To
15/09/2005 07:44:19
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01049783
Message ID:
01049797
Views:
12
Try
oDlg = Dialogs(wdDialogFileSaveAs)
oDlg.Name = lcSaveAsName
oDlg.Show()
>
>I have a foxpro application that creates a word document. within foxpro, i change the "title" of the word document by issuing:
>
>oword.activedocument.builtindocumentproperties("title").value = "newtitle"
>
>now, in word, when the user does "save as", i want the name "newtitle" to be in the dialog box as the title to save it as. It isn't. the save dialog box lists the name as the first couple of words in the document. i check the document properties and the title has been changed to "newtitle", but saveas isn't affected.
>
>I've done some looking into this and found that MS has a workaround by issuing a change to the "dialogs" object, but I can't seem to get that code to work.
>
>Does anyone have any suggestions? Thanks.
>
>Paul
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform