Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation and Word Macros
Message
De
05/05/1999 18:06:27
Charlie Davies
McIntire School of Commerce
Virginie, États-Unis
 
 
À
05/05/1999 11:45:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00214085
Message ID:
00215544
Vues:
25
Unfortunately, I won't be able to get that drink from you since I won't be heading to DevCon.
As for your problem, the only thing I can think of is that when you instantiate Word, FoxPro is losing its reference at some point during the process and you're experiencing some type of memory leak. I'll ask around and see if anyone in my office has more experience with this.



>>it's actually very simple to export your VFP table to a delimited text file. you'll have to create this text file ahead of time and attach it to the word document as the document's merge source. when you have everything set up and you're ready to call up word in your program, just recreate the text file
><snip>
>
>THANK YOU! Looks like I'm gonna be buying you a drink at Devcon.
>
>That did it... kinda. I'm getting the speed that I want (close to 30ppm). But now I'm having a problem with VFP crashing. It gets about 20 pieces in and GPFs.
>
>Here's my new process...
>
>1) Open the document
>2) Make the document a non-mailmerge document (using MainDocumentType = wdNotAMergeDocument)
>3) Create the TXT file. Number of rows in table depends on if it's a letter or a sheet of labels.
>4) Open the datasource for the word doc (using mailmerge.opendatasource('filename.txt')
>5) Merge and print the page
>6) Go back to 2
>
>Anything you can think of that would cause a crash in this process? It doesn't crash at a consistent point in the run.
>
>Is it possible that VFP is getting "ahead" of Word? *Grasping at straws here.*
>
>paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform