Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?? & ??? issue with printer,which is best
Message
From
10/03/2004 20:35:46
 
 
To
10/03/2004 16:32:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884349
Message ID:
00885068
Views:
13
Hi,

Thank for your advise and response.
At least I know that I am not alone on
this issues. It is a pain testing out printer.

Regarding the ??? and ?,
Isn't ? like ?? except it end with linefeed & carriage return ?
whileas ??? is directed to printer only.
I trying to use ?/?? as it can specify each font to use
whileas ??? is depend on the printer fonts. I need to
print language like Chinese characters beside English characters.

Below are my sample code, it just linefeed and cut paper before
printing the two sentence below and stop.



Any way to stop the linefeed and cut my paper before printing
the text ?

I am using Epson ESC/POS command below with my ??? command.
Next, how do you detect paper out or offline status
with your application ?

Thank in advance.


SET CONSOLE OFF
SET PRINTER on

* set emphasize on
??? CHR(27)+CHR(69)+CHR(1)
? 'Hello world'

set emphasize off
??? CHR(27)+CHR(69)+CHR(0)
? 'Hello world'EJECT

SET CONSOLE ON
SET PRINTER off
SET PRINTER to


>Hi Virusim,
>
>We ran into the same problem. When we use ?, here is an example of how we do it. All printer codes are sent using ??? and text using ?:
>
>
>*--Select the printer for this form and set device to printer
>IF !printset("CONTRACT")
>   RETURN
>ENDIF
>
>set console off
>set printer on
>
>*--Specific printer commands like those used below are stored in a table
>*--for each printer type the variables that contain those escape commands
>*--like av_cpi12 below are pulled from the table in the printset() call
>*--above for this report.
>??? av_cpi12
>??? av_boldon
>? 'REMAINING PROVISIONS OF YOUR PREMIUM SERVICE AGREEMENT'
>??? av_boldoff
>??? av_cndsprt
>
>eject
>
>*--Set the printer back to 6lpi and 10cpi - resetopt values are stored
>*--in a table for each printer type
>??? resetopt
>
>set console on
>set print off
>
>*--Set device to screen, etc.
>DO prntrset
>
Best Regards
Virusim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform