Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation
Message
From
08/10/2003 09:38:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/10/2003 09:22:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00836175
Message ID:
00836183
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>I am working with office automation. I am trying to pull up a document for word. The data source is linked in the document. It opens fine, does the merge fine, etc. The only thing is when I open it, I get a read only/file in use dialog for the document and then for the data source itself. It is almost like VFP actually uses it before it pulls it up and then will see it as already being in use by yourself. The other problem I am having is after the merge document is created, I would like to keep that avalible with the ability to change, save it, etc., but I want to close the actual form document (showing merge fields, etc.) itself and only show the result (merged document). I have the Microsoft Office Automation for Visual Foxpro book, but I can't seem to find the syntax for closing the form document and leaving the merged document up. Does anyone know what the command is? Can someone help me get rid of the readonly/fileinuse boxes on open?

Kevin,
Use a template file (.Documents.Add(lcTemplate) vs .Documents.Open(lcDoc)). Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform