Printing different font sizes
#1405
14 Jan 08 02:55 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
We use Ashell on Linux(Red Hat) and print from the server directly to the printer(s).
I'm not sure if we can use GDI Printing or any other way to have different size of fonts on the same report (without installing anything on the client PCs).
|
|
|
Re: Printing different font sizes
#1406
14 Jan 08 03:51 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
A-Shell GDI printing requires some form of A-Shell Windows, both to process the //GDI printing directives and in order to communicate with the Windows printing system. In the case of A-Shell/UNIX application servers, your two choices for bringing A-Shell/Windows into the picture would be:
1) Use ATE for the terminal emulator. In that case, just use the AUXLOC: printing pseudo-device, which routes the output through the emulator.
2) Install a copy of ASHLPD on any PC in the network, allowing that PC to act as a "Network GDI Print Server". Like with any other kind of network printer, local print requests get transferred over the network to the printer or print server, where they are processed. In this case, print server is essentially a copy of A-Shell/Windows that receives the print files from the network and prints them through the A-Shell/Windows GDI printing system, to any printer visible from that PC. (It could end up being the same physical printer that you were printing to directly from LINUX.)
Note that the same ASHLPD print server could also handle PDFX output.
Beyond that, you can always resort to printer ESC codes (such as PCL) or other print formatting languages (such as PostScript), which would allow you to select fonts and use other printing graphics capabilities, independent of A-Shell.
|
|
|
Re: Printing different font sizes
#1407
15 Jan 08 11:45 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
Seeing your query above, Steven Shatz has contributed to the SOSLIB a ++include module that he developed for simplifying the generation of PCL output, which you may find useful. I've posted it temporarily as PCLUTL.BSI v1.6 in case you'd like to take a look at it. Thanks to Steven for the contribution.
|
|
|
Re: Printing different font sizes
#1408
15 Jan 08 03:04 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
|
|
|
Re: Printing different font sizes
#1409
15 Jan 08 04:24 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
I'm just the facilitator in this case; Steven Shatz did the work. Here's a sample program illustrating the BSI which he sent along... TSTPCL.BAS v1.1
|
|
|
Re: Printing different font sizes
#1410
16 Jan 08 05:01 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Thank you Jack. I used PCLUTL.BSI to create sample file bellow. When I printed that file to HP Laser printer using EZTYP it came out as you see it here (it did not process control characters). Is there something I'm missing? ^[(s8u1p12.00v0s3b16901T 12 The quick brown fox jumped over the lazy dog! $12,345,678.90
^[(s8u1p01.00v0s0b04197T 1 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p02.00v0s0b04197T 2 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p03.00v0s0b04197T 3 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p04.00v0s0b04197T 4 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p05.00v0s0b04197T 5 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p06.00v0s0b04197T 6 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p07.00v0s0b04197T 7 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p08.00v0s0b04197T 8 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p09.00v0s0b04197T 9 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p10.00v0s0b04197T 10 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p11.00v0s0b04197T 11 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p12.00v0s0b04197T 12 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p13.00v0s0b04197T 13 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p14.00v0s0b04197T 14 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p15.00v0s0b04197T 15 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p16.00v0s0b04197T 16 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p17.00v0s0b04197T 17 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p18.00v0s0b04197T 18 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p19.00v0s0b04197T 19 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
^[(s8u1p20.00v0s0b04197T 20 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890
|
|
|
Re: Printing different font sizes
#1411
16 Jan 08 05:19 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
If the above display is what you see on the screen (in EZTYP), then it is because EZTYP is a text-only display utility, and doesn't know anything about PCL, ESC codes etc. (You would need some kind of PCL viewer, which would probably run on the PC side, for that.)
On the other hand, if that is how it appears on the printer, then the problem would appear to be one of the following:
1. The printer doesn't really understand PCL codes (or those particular PCL codes). (Seems unlikely for an HP Laser, unless it is one of the newer, low cost, Windows-only laser printers, in which case you would have to send it rasterized GDI-style output.)
2. The file is getting corrupted (filtered) on the way to the printer, probably because of the printing "driver" or filter associated with that print queue. If you set the printer up from the Linux console, then you would need to set the model to "raw" (or perhaps "text only"), rather than "HP Laser". Otherwise, the print filter may be trying to convert it to PCL, not realizing that it is already raw PCL.
Note that in the Windows world, this would be a matter of selecting the PASSTHROUGH option in the printer init file.
|
|
|
Re: Printing different font sizes
#1412
16 Jan 08 06:49 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Thank you Jack. I did exactly what you said and created printer to be "Text Only". It worked nicely with PCL as well as PostScript . I tested on HP and XEROX printers and worked on both. This is great. Thank you again for fantastic support.
|
|
|
|
|