Skip to main content

Hi, 

When I run and load a cobol program that generated a PDF file from an Excel file, which used to run without any problem, now the attached message appears.

This message is due to the version of Office I use and is a NetExpress error.
Any hint on how to solve it?

The Cobol statement that gives the error is as follows 

invoke theSheet "PrintOut" using desde hasta NCOPIAS activeprinter readonly printofile collate

invoke theSheet "finalize" returning theSheet

Hi, 

When I run and load a cobol program that generated a PDF file from an Excel file, which used to run without any problem, now the attached message appears.

This message is due to the version of Office I use and is a NetExpress error.
Any hint on how to solve it?

The Cobol statement that gives the error is as follows 

invoke theSheet "PrintOut" using desde hasta NCOPIAS activeprinter readonly printofile collate

invoke theSheet "finalize" returning theSheet

According to the docs for this, it doesn't look like you have the correct number of parameters. Sheets.PrintOut method (Excel) | Microsoft Learn

What version of Office are you using now and under what version did it work?


According to the docs for this, it doesn't look like you have the correct number of parameters. Sheets.PrintOut method (Excel) | Microsoft Learn

What version of Office are you using now and under what version did it work?

Operate now on Office 2010.

checking the PrintOut method parameters indicated in the link, I have adapted the invoke line, and now the error message does not appear.

 Thank you.