Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a Word Document
Message
De
17/11/2000 15:52:42
 
 
À
17/11/2000 15:36:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00443225
Message ID:
00443245
Vues:
23
To start you up:
>
>
>oWord = createobject("word.application")
>oWord.Visible = .T. && optional
>oDoc = oWord.Document.Add()
>oDoc.Range.Text = "This is a test"
>oDoc.Printout()
>
>
>There is much more to this of course. Printout() has tons of parameters that allow you to control printing.
>
>HTH

Thanks for your REALLY quick response. I've got a couple of questions.

oDoc = oWord.Document.Add() resulted in a "Member DOCUMENT does not evaluate to an object" error. Am I supposed to supply some kind of parameter to it??? I tried a sring with the name of the file to print but got the same message.


Assume that I want to print "Mydoc.doc" how would I do that.


Finally, so I don't have to keep bothering you and the other respondents, is there any documentation on the methods and properties of oWord.Application??? I've spent most of my life with 2.6 and my brief forays into VFP have merely been extensions of that rather than true upgrades.

Thanks again.............Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform