Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with ??/??? and set printer
Message
From
10/03/2004 05:30:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with ??/??? and set printer
Miscellaneous
Thread ID:
00884757
Message ID:
00884757
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform