Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ESCAPE with PASSTHROUGH
Message
 
 
À
14/02/2000 11:41:11
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00330602
Message ID:
00332022
Vues:
22
Calvin,

This code runs several times a day every day:
set console off
??? chr(27) + "E"
??? chr(27) + "&f0y3X"
??? XY_Print( 0.1, 2.65, EmpName( empldat.cLastName, empldat.cFirstName, empldat.cSuffix ) )
??? XY_Print( 6.2, 2.65, lcSSN )
??? chr(27) + "&l2H"  && eject page and switch to manual feed

* user reinserts the page so the back can print

??? chr(27) + "E"
??? chr(27) + "&l2H"
??? chr(27) + "&f2y3X"
??? chr(27) + "&f4y3X"
??? XY_Print( 3.5, 1.95, Print_Date( empldat.dBirth ) )
??? XY_Print( 4.9, 1.95, lcSSN )
??? chr(27) + "&l1H"  && switch back to tray feed

set console on
>Maybe I'm barking up the wrong tree. You are having success sending control codes using ??? but whenever I try to do that I get a 'Foxpro User-Defined Job' in the print spooler ( which I have to manually delete before any printing can take place). Sometimes I also get an error 'Error Accessing Print Spooler'. However, it does cause the printer to do the reverse line feed so that is something. What is it that you are doing that makes it work for you???
>
>You requested my code, but to tell you the truth I have tried to do this so many ways that I do not know what to send you as a starting place. I would appreciate some more insight on what you are doing. Thanks.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform