Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation Problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00690920
Message ID:
00690925
Views:
22
Hello Dave

did you turn on the macro recorder and see whats going on when you do a mail merge?

sorry don't have office on my pc right now


>I am working on my first word automation implementation. I am using the samples from the Hentzenwerks Book on Word Automation. My problem comes when I create the Datasource and then try to do a mail merge on that data source. I am trying to make it completely seemless but at this point word is bring up a Open Data Source Dialog which I am trying to bypass. Does Anyone Have an Idea about what I may be Doing wrong when creating the data source? Here is the Code that I am Currently Using.
>
>loDocument.MailMerge.OpenDataSource( lcResultFile, 0, .f.,,.f.,.t.,,,,,,"Entire Spreadsheet" )
>
>This code brings up the word import wizard and makes you choose ok before it continues. How can I bypass this table import wizard? I converting a cursor to a xls format and then doing the open data source.
>
>
>Thanks!
>
>Dave
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform