Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Printer Settings in Word
Message
De
06/02/2002 17:27:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Changing Printer Settings in Word
Divers
Thread ID:
00616324
Message ID:
00616324
Vues:
60
Using VFP 6.0 SP 5

I'm creating a Word object and using it to print several documents. The printer is an HP 8150 which has the capability of printing on both sides of the paper. It also has a "Flip Pages Up" option which changes the way the second side of the page looks.

I need to be able to print the same document in either format and I'm looking for some suggestions as to which properties I could manipulate to get the desired effect.

My usual step for something like this is to create a macro inside Word and then examine the macro code. I brought up a document and started macro recording. I then clicked on File, Print, Properties, Flip Pages, OK, OK to print the document in one format. I repeated the process to print the document in the other format and saved the macro.

Here is the macro code.
    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
        wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
        Collate:=True, Background:=True, PrintToFile:=False
    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
        wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
        Collate:=True, Background:=True, PrintToFile:=False
I didn't see anything here which would change the settings. Actually, when I run the macro it prints both jobs in the same format.

I've considered saving two copies of each form and saving the format with them. However, there are over 500 forms and that poses a potential problem for maintaining the current forms and adding new ones. I think a software solution would be much better.

Any ideas anyone can offer will be greatly appreciated.

Thanks..........Rich
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform