Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print To File

Status
Not open for further replies.

Scoty

Programmer
Oct 25, 2000
278
US
Ok,
I've gone completely insane trying to figure this out. Please help.. I have a program that prints several reports overnight. My problem is the reports are large and the printer is unreliable. So I can't print directly to the printer as it may jam or spill papers all over the floor or some such nonsence. So what I have done is changed the printer over from lpt1 to file. The system them prompts for a filename. I thought I had it licked. I built a small program that pops up and appactivates the "print to file" dialog. This runs great as long as I stare at it. If I lock my machine it does not work. Is there any api which would let me take control of the "print to file" dialog box so I dont have to appactivate and sendkeys.
Any help would be greatly appreciated
Thanks
Scoty ::) Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
 
you don't say what/how/software is doing these reports. some reporting software have a flag you can set so the user dialog box won't come up GL (I've gone thru this kind of contortions myself) Tim

Remember the KISS principle:
Keep It Simple, Stupid!
 
Tim,
Thanks for your reply. The Reports are coming out of Access97. The small "appactivate" programs are in vb6. I will (sooner or later) convert everything over to vb6 with dsn dataservers. I am running on an WindowsNT 4.0 box. If you need any other info please let me know
Thanks
Scoty ::) Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top