Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?? & ??? issue with printer,which is best
Message
From
10/03/2004 16:32:59
 
 
To
10/03/2004 05:34:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884349
Message ID:
00884992
Views:
14
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