Printer Name Ignored When Using Task Manager 追蹤
I need some advices on how to get Bartender to send job to the correct printer via Task Manager.
Bartender is printing to Window's default printer when using TaskManager.TaskQueue.QueueTask.
LabelFormat.PrintSetup.PrinterName works when using the Engine alone and getting the Engine
to print but it look as though this setting is ignored when using Task Manager.
Basically what I did:
1. Create and start Task Manager
2. Create and start Engine (so that I can set the SubStrings)
3. Load the LabelFormat using Engine.Documents.Open
4. Set the printer using LabelFormat.PrintSetup.PrinterName
5. Set the number of copies
6. Set the SubStrings
7. Add to queue via TaskManager.TaskQueue.QueueTask
It printed fine except where I set the printer's name to 'XXX' and Window's default is 'YYY'
Bartender would print to 'YYY'