Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Malimerge call from VFP
Message
From
02/07/2010 08:46:12
 
 
To
01/07/2010 14:06:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01471034
Message ID:
01471282
Views:
47
>>>>>>Hi Tamar
>>>>>>
>>>>>>I would appreciate if you can help me with some sample code to try out.
>>>>>>
>>>>>>Thanks & Best Regards
>>>>>
>>>>>There's a section on mail merge in my paper on automating Word: http://www.tomorrowssolutionsllc.com/Materials/AutomatingWord.html
>>>>>
>>>>>Tamar
>>>>
>>>>
>>>>Tamar ,
>>>>
>>>>Hi,
>>>>
>>>>How to avoid the (excel2007) prompt about the first line with headerdescription when I apply the alt2domerge procedure?
>>>>
>>>
>>>Generally, the way to avoid prompts is to set .DisplayAlerts = .F. for the automation server. Not sure if this is applicable in this particular case.
>>>
>>>Tamar
>>
>>Hi,
>>
>>DisplayAlerts property not found in oDocument.Mailmerge.OpenDataSource - will look around for other solution.
>>
>
>DisplayAlerts is a Word-level property. Try oWord.DisplayAlerts=.F.
>
>Tamar

Hi,

no luck. Actualy I was expecting you would advise me something like oExcel.DisplayAlerts=.F. - since it is an Excel prompt h/e in this coding I have no Excel object. So maybe something different to

oDocument.MailMerge.OpenDataSource( cTempfile, 0, .F.,,.t.,,,,,,,"Entire Spreadsheet" )

into somethng like oDocument.MailMerge.OpenDataSource( cTempfile, 0, .F.,,.t.,,,,,,,Range(FirstColumn,2ndRow :LastColumn,LastRow) )

h/e beats me how to do this.

Regards,

Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform