Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Malimerge call from VFP
Message
De
02/07/2010 08:46:12
 
 
À
01/07/2010 14:06:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01471034
Message ID:
01471282
Vues:
46
>>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform