We are using the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace Printer object to print bar code labels in an application converted from VB6. What would be the easiest way to suppress the printing status dialog?
Some background:
This is being done in a VB .NET 2005 Windows forms application. Our users have the Framework 2.0 and cannot easily be given 3.X at this time.
Unlike in the VB6 equivalent, printing results in a brief status dialog appearing, and then disappearing. The dialog has caption of "Printing" and a text reading "Page 1 of document." The dialog box has a Cancel button on it, although a user would have to have quite fast hand-eye coordination to use it before it disappears.
Users work quickly to create customer-identifying bar codes for incoming correspondence. Some are amazingly quick. For this reason, we call print logic asynchronously, which works fine. However, if the user is typing in the next customer number, and the status dialog pops up, this causes an annoying loss of focus in the text box control they are typing into.
Rewriting to not use the compatibility library would be tricky and require a lot of testing. I suppose I could write the information to the database and have the printing done by a background server process, but ideas pointing to a more elegant solution will be greatly appreciated.
Steve Eisenberg Pennsylvania, USA