Foxtrotter
IS-IT--Management
I have been tasked with splitting up a process that currently prints a report to a printer in a polling type fashion where the app continuously looks for these jobs to print. What they would like to happen is for the app to continuously print these reports to named files, then at some point later, in a different process that selects which of these files to print, it would just print that file which is already formatted for the printer which should be very fast. Currently, it is a fairly complicated report and takes several seconds to print which in the environment they are in is too long. These can be processed at night so that during the day, they can be printed in the second process.
I can successfully print to a file using report form to file. The file has all the printer codes etc that it needs. My problem is printing this file back out because I can't use a normal app eg notepad to pull it up and print it because it causes it to print gibberish and instead of 1 page I get about 50. One solution that almost works is that I can print this file using the DOS print command but it is cutting off the bottom of the A4 page and I can't figure out how to control that plus I don't really like the idea of shelling out to a DOS prompt to print the file.
I know the great minds on this forum will have any number of great ideas on how to best do this.
I can successfully print to a file using report form to file. The file has all the printer codes etc that it needs. My problem is printing this file back out because I can't use a normal app eg notepad to pull it up and print it because it causes it to print gibberish and instead of 1 page I get about 50. One solution that almost works is that I can print this file using the DOS print command but it is cutting off the bottom of the A4 page and I can't figure out how to control that plus I don't really like the idea of shelling out to a DOS prompt to print the file.
I know the great minds on this forum will have any number of great ideas on how to best do this.