How to print smaller fonts? (AREV Specific)
At 07 SEP 2005 06:12:19AM Chang Lee Churn wrote:
My AREV version is 2.01. I have 2 different systems using AREV programming language. I though since both of them program uses the same language (same version as well), it should be possible to take it 1 from system and paste it to another. Let's call system A and system B.
I took the following code from system A with (slight modification)
PRINT "^FO410,400^A0R,30,30^FD": TEMP_REC : "^FS
and paste it in system B.
but it can't work.
My plan was actually to shrink the system B's Work Order printout (a CMMS system, Computerised Maintenance Management system) to A4 size.
unfortunately it couldn't work.
the current code to print the one of lines in the form was.:
PRINT "| C/C : ":TEMP_REC"L#30":" |":
so how can i shrink the printout of the fonts? using the PRINT command?
At 07 SEP 2005 06:52AM support@sprezzatura.com wrote:
You need to use the printer specific escape codes to do the shrinking and then ensure that you recompile the program. so something like
pre.code {
background-color: #E5E5E5;border: 1px solid #000000;width: 450px;padding: 5px;font-family: courier, verdana, arial, serif;margin: 0px 10px auto;}
PRINTER ON * Note this is a nonsense escape sequence and should be replaced * with whatever your printer needs PRINT CHAR(27) : "&l14N" : "My text" PRINTER OFFsupport@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 08 SEP 2005 04:45AM Chang Lee Churn wrote:
PRINTER ON
Note this is a nonsense escape sequence and should be replaced
with whatever your printer needsPRINT CHAR(27) : "&l14N" : "My text"PRINTER OFFThanks for the help. But,
the whole
PRINT CHAR(27) : "&l14N" : "My text"
just can't work.
At 08 SEP 2005 06:19AM support@sprezzatura.com wrote:
Please clarify your statement.
Thanks
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 09 SEP 2005 05:16AM Chang Lee Churn wrote:
I apologize for the clarity of my statements
PRINT CHAR(27) : "&l14N" : "My text"I have tried the above code , but it seems whenever the system prints it out on the HP LaserJet 1200 printer, it doesn't seem to have any effect at all. The font size of the printout still remains the same as before.Furthermore, the above code cannot work when I want to print a variable after the "My text" portion, eg.
PRINT CHAR(27) : "&l4N" : "| C/C : ": TEMP_REC"L#30":"
where the "| C/C :" is the "My text" portion, and the TEMP_REC"L#30":" is the variable that I'm going to print.
please advise. thank you.
At 09 SEP 2005 10:54AM Matt Sorrell wrote:
The print string provided by Sprezzatura was merely a sample as how to send PCL commands to the printer. They mentioned specifically that it was a non-operational code.
First, you need to look up the PCL codes that your printer supports, and then determine the necessary codes for the font sizes that you want to print.
With respect to your REC L#30 statement, I don't believe that specific syntax will work when printing using the PCL commands. It would be best if you use the FMT() command. For my sample above, it would be FMT(REC, "L#30").
Hope that helps,
msorrel@greyhound.com
At 11 SEP 2005 10:03PM Chang Lee Churn wrote:
I think I found some HP PCL codes in the following page.
http://www.piclist.com/techref/language/pcl/cmds-lj.htm
I think I'm on the right track now.
I've tried this
PRINT CHAR(27) : "&dD" : "| Equipment Code : "
which means
&dD Font Underline Enable
the printout did not show the font was underlined.
So, how would the syntax look like anyway?
At 12 SEP 2005 03:42AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
The CHAR(27) is the esc (escape) described in the PCL code.
Syntax should be PRINT CHAR(27):"&dD":
World leaders in all things RevSoft
At 12 SEP 2005 02:56PM Richard Hunt wrote:
It is quite possible that the HP laserjet 1200 does not accept PCL code. I believe that I had a similar problem with an HP 1100, not too sure of the model number. I called HP and they said that that model (HP 1100) does not accept PCL code. Maybe this model does not???
At 13 SEP 2005 10:39AM Victor Engel wrote:
Also, your printer must be set up to accept PCL. You should be able to confirm this quickly by going through the printer setup menus.
At 14 SEP 2005 02:16AM Chang Lee Churn wrote:
Thank you all for your help. I was able to use certain PCL6 codes
found in this site
http://www.piclist.com/techref/language/pcl/cmds-lj.htm
you can refer for the URL above for more info on HP PCL6 codes.