Skip to main content

Printing Specific Style and Fonts in VC 9

  • August 21, 2024
  • 9 replies
  • 1 view

Alexander Castro

Is it possible to write COBOL code that will print text (not on the screen but to an actual printer) in a specific font. For example, is it possible to write code that will print to my printer the line “Test 1” in sans-serif or in any other font that I choose? I am able to print bold text on my printer with the WRITE statement, but I simply do not know how to print text in a specific font with a COBOL command. I am using Visual COBOL v9 on a Windows 10 pro. Thanks in advance.

9 replies

Chris Glazier
Forum|alt.badge.img+2

Is it possible to write COBOL code that will print text (not on the screen but to an actual printer) in a specific font. For example, is it possible to write code that will print to my printer the line “Test 1” in sans-serif or in any other font that I choose? I am able to print bold text on my printer with the WRITE statement, but I simply do not know how to print text in a specific font with a COBOL command. I am using Visual COBOL v9 on a Windows 10 pro. Thanks in advance.

Hi Alex,

There is a whole set of PC_PRINTER... library routines that you probably want to look at:

Printer Routines (microfocus.com)


Claude Greiner
  • Participating Frequently
  • August 21, 2024

Is it possible to write COBOL code that will print text (not on the screen but to an actual printer) in a specific font. For example, is it possible to write code that will print to my printer the line “Test 1” in sans-serif or in any other font that I choose? I am able to print bold text on my printer with the WRITE statement, but I simply do not know how to print text in a specific font with a COBOL command. I am using Visual COBOL v9 on a Windows 10 pro. Thanks in advance.

for graphical prints i use the software List&label from combit (see www.combit.net), but only available for windows, not for linux

very easy, many possibilities, chars, barcode, all what you need!

i used it for netexpress5.x and for vc from 3 to 10!


  • August 23, 2024

Is it possible to write COBOL code that will print text (not on the screen but to an actual printer) in a specific font. For example, is it possible to write code that will print to my printer the line “Test 1” in sans-serif or in any other font that I choose? I am able to print bold text on my printer with the WRITE statement, but I simply do not know how to print text in a specific font with a COBOL command. I am using Visual COBOL v9 on a Windows 10 pro. Thanks in advance.

Personally, I have replaced the tedious WRITE instructions and PC_PRINTER routines, to generate reports from MF COBOL applications, with the RPV Reports 2024 software (www.rpvsoftware.com/rpv2024.php
In little more than 5 minutes, I get any data report from cobol files.


Claude Greiner
  • Participating Frequently
  • August 23, 2024

Personally, I have replaced the tedious WRITE instructions and PC_PRINTER routines, to generate reports from MF COBOL applications, with the RPV Reports 2024 software (www.rpvsoftware.com/rpv2024.php
In little more than 5 minutes, I get any data report from cobol files.

It seems to be a similar product as the top number 1 product List&Label from combit.net

can you share a demo project to be able to Anderstand how it is included in a cobol program!
do you use Isam files ore a sql database for your data!

I will try to download a demo version of rpv!
it can be important to know the tools that give facility for programmers for printing and graphical interface/windows!


  • August 24, 2024

It seems to be a similar product as the top number 1 product List&Label from combit.net

can you share a demo project to be able to Anderstand how it is included in a cobol program!
do you use Isam files ore a sql database for your data!

I will try to download a demo version of rpv!
it can be important to know the tools that give facility for programmers for printing and graphical interface/windows!

Hello to all
I attach a PDF, of a listing of a MF Cobol program with DialogSystem that shows how I manage the printing of data from a data file, with the RPV Reports software (it is marked in yellow).

I also include the RPV RPX template needed to generate the report. In the template, which is a plain text, everything of the report is controlled, font, sizes, headers, detail, and so on. 

Regards

community.microfocus.com/.../tkW0110.pdf

community.microfocus.com/.../tkw0110RPX.pdf


Claude Greiner
  • Participating Frequently
  • August 24, 2024

Hello to all
I attach a PDF, of a listing of a MF Cobol program with DialogSystem that shows how I manage the printing of data from a data file, with the RPV Reports software (it is marked in yellow).

I also include the RPV RPX template needed to generate the report. In the template, which is a plain text, everything of the report is controlled, font, sizes, headers, detail, and so on. 

Regards

community.microfocus.com/.../tkW0110.pdf

community.microfocus.com/.../tkw0110RPX.pdf

Ok, i had take a Look! Can you Share a Little Demo project only for Demonstrate the Interface to your Report Tool?
what Compiler are you using on wich os? The best with source Code to be able to Compile and run this!


  • August 27, 2024

Ok, i had take a Look! Can you Share a Little Demo project only for Demonstrate the Interface to your Report Tool?
what Compiler are you using on wich os? The best with source Code to be able to Compile and run this!

what Compiler are you using on wich os? Visual Cobol 9.0 and Net Express 5.1. 


Claude Greiner
  • Participating Frequently
  • August 27, 2024

what Compiler are you using on wich os? Visual Cobol 9.0 and Net Express 5.1. 

yes, i use both

1. Visual Cobol 10.0

2. Netexpress 5.0 / 5.1

i had all os system for testing my programs, win7, win10, win11

are you interested to become info for List&Label implementation? Send me a pm with your email!

i am also in contact with rpv, my wish is to developp a central module that can be call with entry point from each other cobol program and so separate screens/windows, data access and application as rpv! There cobol excample are very old and only text oriented, the cobol compiler was a old rmcobol

i have never hear from rpv and want to investigate a little time for evaluation? 

Thanks for help


  • August 28, 2024

yes, i use both

1. Visual Cobol 10.0

2. Netexpress 5.0 / 5.1

i had all os system for testing my programs, win7, win10, win11

are you interested to become info for List&Label implementation? Send me a pm with your email!

i am also in contact with rpv, my wish is to developp a central module that can be call with entry point from each other cobol program and so separate screens/windows, data access and application as rpv! There cobol excample are very old and only text oriented, the cobol compiler was a old rmcobol

i have never hear from rpv and want to investigate a little time for evaluation? 

Thanks for help

Hello,
I already tried “List&Label”, to generate reports from MF Cobol, but I found it more complicated than RPV to integrate it with COBOL and to generate usage templates, besides being a more expensive product.