Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?? & ??? issue with printer,which is best
Message
From
12/03/2004 06:59:24
 
 
To
11/03/2004 08:58:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884349
Message ID:
00885535
Views:
17
Hi,

My printer is Epson EU-T432.
Using ??? to sent those ESC/POS command, it is working fine
However, when I use a mixture of ??? and ??/?, it
does not work well as ??? is directly to printer,
but ??/? go to the printer driver, which will
first auto cut the paper and proceed.

I confused why your printer is working fine.
In addition, I was told that both the ??? and
?? don't work well with each other.

However, I might be wrong due to my limited
knowledge on printer.




>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
>>>
Best Regards
Virusim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform