Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Modifying a Print Driver
Please bear with me as I try to explain as completely as possible
I am using VFP 6 to print a variety of Word documents (using CREATEOBJECT) and Crystal Reports (Using an Active X control). Everything involved in generating the document and sending it to the printer is working fine.
I am working with an HP 8150 printer with duplexing capability. In the Finishing Tab for the printer there is an additional option to "Flip Pages Up." When unchecked you turn the page horizontally to see the next page. When checked, you turn the page vertically.
I need the ability to programatically have the printer print with the correct setting. Any document could be printed in either format.
I was never able to figure out how to do this. PRTINFO() lets me see the current setting but I didn't find an equivalent function which lets me change it. I tried playing with SYS(1037) but when issuing oDoc.Printout() it appears to use the setting in Word. I can probably figure out how to change the setting within the Word documents, but I'm lost when it comes to changing the setting for the Crystal Report documents.
If anybody can help, then the problems with my workaround will be moot.
My workaround was to create two printer drivers (Booklet and Tumble) and use a Word Dialog to switch back and forth as needed. This worked until I started testing with larger documents and larger sets of documents.
My problem now is that as I finish processing one set of documents they are still spooled when I process the second set. As the second print queue fills up Windows seems to print one document from Booklet, and then one from Tumble, and then one from Booklet, etc.
My thought is to wait until the first print queue is empty before starting to process the second. Unfortunately, I don't know how to do this either. Is there a VFP Function which will tell me the number of jobs in a print queue? Is there some API call which can do that?
My computer is Win 98 and the workstations are Win 95 with plans to move them to NT (probably) or 2000 (possibly)
If you've gotten this far.........THANKS
Any and all suggestions will be most humbly appreciated.
..........Rich
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement