Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name a Word doc without saving?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01395715
Message ID:
01395761
Views:
61
>I wish to name them meaningful names because the application creates several at a time. Word automation, and especially changing the printer driver within Word, can be a slow process so they are created in a batch. I'd like to know which one is which when it comes time to print them and Document 4 isn't very helpful. I could save them to assign a name but I don't need or want a disk file.

You can add custom property, and then identify document by it. Like:
with oWord.ActiveDocument.CustomDocumentProperties
  .add(("aliasname",.f.,4,"Document Name As you Wish")
endwith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform