Solved

DosBox Cobal program printing issue

Posted on 2016-08-24
3
38 Views
Last Modified: 2016-09-24
I am trying to get full functionality out of an old COBAL program that works with the use of dosbox SVN-Daum. I get an error when I try to print (the program prints to LPT1) Any ideas/help on how to troubleshoot such a problem would be  greatly appreciated. I am currently using a program called DOS Printer V12.02 to try and capture the output, but would rather get the output to go to a file if possible. I have run dosbox from an administrative command prompt and checked the box on dosbox to run with administrative privileges as well.
0
Comment
Question by:aiakonai
3 Comments
 
LVL 10

Accepted Solution

by:
arana earned 500 total points
ID: 41769361
I assume you mean COBOL,  
have you tried using the port capture ?
from cmd window try
> NET USE LPT1 \\YourComputerName\PrinterShareName /PERSISTENT:YES

then dos programs will print to lpt1 as expected

for the print to file option there used to be an utility called PRN2FILE which should do what you need, but I dont know iif it will be compatible with dosbox
here is where you can get the info on prn2file: http://blog.amastaneh.com/2012/02/print-dos-application-with-windows.html
0
 

Author Comment

by:aiakonai
ID: 41775095
Ok, thank you for that information on the printing to file. I don't get to check on this much since I only have internet when I'm in certain places so I may be slow to respond. I was able to use some information to get the program to print to the printer, successfully using the SVN DAUM dos box
by changing the following settings in the config file.

printer=true
printoutput=printer
parallel1=file dev:lpt1

Open in new window


Yes I did mean COBOL sorry about the typo.

I am using port capture as you mentioned on the live environment and a third party program called dos capture for non live testing. The printing did work with the above settings and the port capture, but I am now having a much different problem in that I see no way without some kind of program like dos capture of converting the printed data to "compressed" print format, and the header / content are being printed on separate pages. Thank you for your help on the file printing arana that may be what I end up using if it is capable of combining the two files somehow.
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 41813566
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: arana (https:#a41769361)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

hdhondt
Experts-Exchange Cleanup Volunteer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave document
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now