Connecting Tech Pros Worldwide Help | Site Map

Stampa unione Word 2003

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 11:35 AM
Agos
Guest
 
Posts: n/a
Default Stampa unione Word 2003

Quello che segue è la parte della routine che utilizza la stampa unione per
creare un nuovo documento:
---------------------
Set docWord = AppWord.Documents.Open("c:\Assicurazioni\Modello20 03.doc")
AppWord.ActiveDocument.MailMerge.Execute 'aggiorna i campi
AppWord.ActiveDocument.SaveAs SalvaConNome 'salva con nome
docWord.Close SaveChanges:=wdDoNotSaveChanges,
OriginalFormat:=wdWordDocument 'Chiude il documento di stampa unione
---------------------
Il problema è che con la versione Word 2000 funzionava regolarmente, mentre
con la versione 2003 mi dà errore su:
AppWord.ActiveDocument.MailMerge.Destination = wdSendToNewDocument
L'errore è il seguente:
"Errore di run-time 5852 - L'oggetto non è disponibile"

Ho provato a richiamare direttamente il documento di stampa unione (con il
programma aperto) ed ho costatato che prima di effettuare l'aggiornamento
dei campi appare un messaggio che chiede se unire o meno i dati provenienti
dal comando SQL cui il doc è collegato (in pratica una query). Se è questo
il problema, come facio ad evitare tale richiesta? Se no, quale altro
potrebbe essere?






 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.