Skip to main content

In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

I believe that Courier 12 point will print as 8 lpi and 10 cpi.

PC_PRINTER routines in Net Express support only a font name and size as these routines work with the Windows print manager and are not tied to any specific printer or PCL code.

There is no way to use embedded PCL in the PC_PRINTER calls as this is stripped out by the Windows spooler.

We have enhanced the PC_PRINT_FILE routine in Visual COBOL to allow the setting of a flag to print using RAW output where the PCL will not be stripped but this is not available in Net Express.

If you wish to use PCL you will have to call the Windows API to do so.

An example of how to do this can be found here:

Thanks


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

unfortunately Courier has the same result as Lucida Console. With Font-Size both print at 6 LPI  and not 8 LPI.  

Thanks for the help.

Rolf


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

unfortunately Courier has the same result as Lucida Console. With Font-Size both print at 6 LPI  and not 8 LPI.  

Thanks for the help.

Rolf


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

unfortunately Courier has the same result as Lucida Console. With Font-Size both print at 6 LPI  and not 8 LPI.  

Thanks for the help.

Rolf


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

Rolf

I used to produce reports with embedded PCL embedded into the reports to control font, etc. When we moved to Netexpress we also realised we couldn't use it in that way. So what we did was simply replace the printer output name from LPT1: to a physical disk name then at the end of each report we would call a new print routine which used win API call to print the report. Works well and is still in use today.

Email me OT if you'd like a copy.

Ian


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

Hi Ian

we did similar during many years outputting to LPT1 of a file.  But if I use PC_PRINT_FILE to print the file with the embedded PCL, the program stripes them avay. So I suppose I have to use win API as you suggest. I appreciate if you send me a copy of your example.  My mail is Rolf@Cedrosa.mx

thank you

Rolf


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

You might want to look at PC_PRINT_FILE with bit 5 because will send the file to spooler rather via Windows printing APIs (which does not support PCL).

bit 5 Directs raw output through the Windows spooler - only bit 0 can be used with this bit


In a program (Netexpress 5.1) that writes directly to a printer via LPT1 I change the fontsize via PCL5 strings  to a heigh of 8 LPI  and a pitch of 10 CPI.

How can I have the same height and pitch  using PC_Printer routines? As far as I see it is only posible to select the Font-Size, one value.  Using Lucida Console with Font-Size 12  is 10 CPI and 6 LPI .    Font-Size 10 reduces both:  12 CPI and 7.2 LPI

 Is there a way to select heigh and pitch separately using PC_Printer routines for the printing itself, draw boxes, etc. . 

Or is there any fixed Font with that combination of height and pitch?

How can I send PCL strings to the printer using PC_Printer

Can I mix the  PRINTRAW  system using  Windows SDK  Printing and Spooling functions to print a document  mixed with the PC_PRINT  or must I selecto one or the other method?

Thanks for any help.

Hi Stephen,

The bit 5 support is only in Visual COBOL, correct?

This question relates to Net Express.