Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?? & ??? issue with printer,which is best
Message
From
11/03/2004 08:58:21
 
 
To
10/03/2004 20:35:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884349
Message ID:
00885188
Views:
19
Use ?? then. This is a snippet of our code and it works on our dot matrix printers in Epson mode:
set console off
set printer on

??? opt
??? av_lpi8
??? av_cndsprt

*---Print Contract

? " -------------------------------------------------------- "
? "| AGREEMENT                                              |"
?? Co_Line1 AT 1
?? In_Line1 AT 90
*--Etc.
>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
>>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform