Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name a Word doc without saving?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01395715
Message ID:
01395761
Vues:
62
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform