Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ??/??? and set printer
Message
De
10/03/2004 05:30:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with ??/??? and set printer
Divers
Thread ID:
00884757
Message ID:
00884757
Vues:
55
Hi,

My application is using the Epson ESC/POS command
for printing to the printer. I can't use the OPOS as
the printer is not supported under it.

?? is sent to the printer driver whileas ??? will bypass the
printer driver to the printer directly.

I want to use ?? as I can specify the fonts to use
as I need to cater for multilanguage printing.

However, when I run the following code,
my ?? command is not working. Any ideal why ?
It output the following below and any way to
stop the paper cut and use the ??/? and ???
together ?.

Hello World <==== function code is not printed

<===== paper cut, why when I didn't init any paper cut

Hello World
yHello World <== function code is printed out, ???



Code sample
==========

SET CONSOLE OFF
SET PRINTER TO default
SET DEVICE TO printer
SET PRINTER ON

* set right justification through the printer driver
SET PRINTER FONT "control",10
lCmd = CHR(121)
?? (lcmd)

* printout should be right justification
SET PRINTER FONT "ARIAL",10
lcmd = "Hello world"+CHR(13)+CHR(10)
?? (lcmd) <=== this part is okay

* set bold on using ESC/POS directly to the printer
lcmd = CHR(27)+CHR(69)+CHR(1)
??? (lcmd)
??? "Hello world" + CHR(13)+CHR(10)

* set right justification through the printer driver
SET PRINTER FONT "control",10
lCmd = CHR(121)
?? (lcmd) <=== this is printing y instead of taking a printer command

SET PRINTER FONT "ARIAL",10
lcmd = "Hello world"+CHR(13)+CHR(10)
?? (lcmd)


SET PRINTER TO
SET PRINTER off
SET CONSOLE On
SET DEVICE TO screen
Best Regards
Virusim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform