PRINT class printer options
Posted: Mon Dec 09, 2024 10:42 pm
Perhaps someone has had a similar need and found a solution. Let me explain.
My client's computer defaults to Printer A. However, he wants his invoices to go to Printer B with its special paper.
Using the PRINT class, we have 3 options. We can send output directly to the default ( printer A ), select an Alternate printer ( ie. B, C, or D ), or View, and there select the default or alternate printer.
Once the print object is changed, if invoices always go to printer B, we can set the cModel to that printer, and it will go there by default.
For most people this works fine. They setup a default for invoices to go to printer B, and it's all automatic.
HOWEVER, my client wants this, but sometimes he wants to select an alternate printer. Unfortunately, if I specify a printer B as the output when creating the class object, it will not allow the dialogs to switch to any other printer.
The need here would be to set the default printer to the alternate ( B ) BEFORE creating the print class, then back after the invoice completes printing. This would trick the class to think B is the default and still allow a different printer to be selected. We just don't have a FWH or Harbour command that allows us to do this. Also, I'm not positive even that would work.
Any ideas would be appreciated.
Tim
My client's computer defaults to Printer A. However, he wants his invoices to go to Printer B with its special paper.
Using the PRINT class, we have 3 options. We can send output directly to the default ( printer A ), select an Alternate printer ( ie. B, C, or D ), or View, and there select the default or alternate printer.
Once the print object is changed, if invoices always go to printer B, we can set the cModel to that printer, and it will go there by default.
For most people this works fine. They setup a default for invoices to go to printer B, and it's all automatic.
HOWEVER, my client wants this, but sometimes he wants to select an alternate printer. Unfortunately, if I specify a printer B as the output when creating the class object, it will not allow the dialogs to switch to any other printer.
The need here would be to set the default printer to the alternate ( B ) BEFORE creating the print class, then back after the invoice completes printing. This would trick the class to think B is the default and still allow a different printer to be selected. We just don't have a FWH or Harbour command that allows us to do this. Also, I'm not positive even that would work.
Any ideas would be appreciated.
Tim