Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?? & ??? issue with printer,which is best
Message
From
10/03/2004 05:34:21
 
 
To
09/03/2004 20:59:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884349
Message ID:
00884759
Views:
16
Hi,

Using the ?? and ??? together in my case is not working,
hence will senting it to a temporarily file and sent
to ??? work.

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

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

Hello World
yHello World



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)

* 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform