Hey, folks. In UniData, I'm attempting to use SETPTR to change several options. However, this command:
SETPTR 0,220,44,2,2,1,"FONTSIZE=9","ORIENTATION=LANDSCAPE","FONT=COURIER"
results in only the FONT=COURIER setting being accepted. All other variations of that command result in execution error. Any help would naturally be appreciated.
Rich
------------------------------
Richard Lucibella
Director
Rocket Forum Shared Account
------------------------------
Richard,
Unix or Windows?
For UNIX = see
| "spooler_options" |
UNIX lp or lpr spooler option. Any parameter that you use with your spooler, you can use with SETPTR. Enclose each option in quotation marks. For example: "-o noeject". |
You can test the options themselves at a UNIX command prompt using lp for example. If it works there then it should work in UniData. Windows is different:
| "spooler_options"] |
Options that are valid with the Windows spooler. See separate table for list of supported options. Enclose these options in quotation marks. |
and here's an example - note that the options are in a single quoted string and not multiple quoted strings.:
:SETPTR
0,,,,,1,AT
LETTER,"TopMargin=1,BottomMargin=1,Font=Courier,FontSize=12"
Unit 0
Mode 1
Options are:
Destination LETTER
Lp options : TopMargin=1,BottomMargin=1,Font=Courier,FontSize=12
OK to set parameters as displayed?(enter y/n)y
Regards
JJ
------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------
Richard,
Unix or Windows?
For UNIX = see
| "spooler_options" |
UNIX lp or lpr spooler option. Any parameter that you use with your spooler, you can use with SETPTR. Enclose each option in quotation marks. For example: "-o noeject". |
You can test the options themselves at a UNIX command prompt using lp for example. If it works there then it should work in UniData. Windows is different:
| "spooler_options"] |
Options that are valid with the Windows spooler. See separate table for list of supported options. Enclose these options in quotation marks. |
and here's an example - note that the options are in a single quoted string and not multiple quoted strings.:
:SETPTR
0,,,,,1,AT
LETTER,"TopMargin=1,BottomMargin=1,Font=Courier,FontSize=12"
Unit 0
Mode 1
Options are:
Destination LETTER
Lp options : TopMargin=1,BottomMargin=1,Font=Courier,FontSize=12
OK to set parameters as displayed?(enter y/n)y
Regards
JJ
------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------
That's the ticket, John. Thanks so much.
I'm on Windows. I had tried the single quote/ multiple commands but never thought to comma separate them.
Thanks again-
Rich
------------------------------
Richard Lucibella
Director
Rocket Forum Shared Account
------------------------------