I print a page from a textfile.mem (editbox), but the printer hangs after printing the page correctly. Here are the details:
I get the HP OfficeJet Printer window appears while I am printing the page. It reads - Document: Visual FoxPro, Printing Page 1... (showing a black progress bar about 95 - 99% of the way across), And a Cancel Print command button below the status message. i pressed the Cancel Print button with no effect.
Then, a short time later I get another Window after I exit the Form while the HP OfficeJet Printer window is still displayed. The next Window reads - Printer Folder, There was an error writing to LPT1: for the printer (HP OfficeJet Printer): This network connection does not exist. With an OK command button below. Which I clicked on and nothing happened.
Here is my code:
My Print Command button (cmdPrint) Click procedure reads -
SET PRINTER TO NAME GETPRINTER()
SET PRINTER ON
...
...
I build the textfile.mem here which is like a full page report.
My Print Command button (cmdPrint) Valid Procedure reads -
After the page is built I close the textfile.mem.
then I...
EJECT PAGE
SET PRINTER OFF
Any idea what I am doing wrong? The page ejects sometimes, but the printer always hangs with the HP OfficeJet Printer Window sitting on the screen at 95%-99% complete. Although the entire page prints out before the hanging occurs.
I am new at PRINTER commands and the documentation is not very thorough from what I can tell. Thanks for helping me out.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site:
www.stephenkramer.comWould you believe Far Side Lite?
More than 270 original cartoons.