Is there a macro that I can call within my macro to force the printing of the Powermill setup sheets, once the print preview popup appears.
I believe that once the popup appears, it's out of the hands of Powermill and becomes a Windows 7 control issue.
Thanks,
Glen
Since we do not use the out-of-the-box setup sheets, but excel files, I am not sure, but if You send some sample filenames for different projects' setup sheets' full path, we could find some kind of solution.
ie. C:\myprojects\Pmill_project1\setup_sheets\setup1.html
C:\myprojects\Pmill_project1\setup_sheets\setup2.html
C:\myprojects\Pmill_project2\setup_sheets\setup2.html
I just press "Alt+P" and hit enter. Fastest option as far as I know.
Glenn
Thanks GlennM,
But my question is how do you get those keystrokes to happen during the macro?
I don't want the user to have to keep kitting keys, I just want the macro to print the setup sheets out in the order as prescribed in the macro, without user intervention, beyond the starting of the macro.
Thanks,
Glen
That is a windows command and have no clue if you can trigger this with a powermill macro.
Glenn
I am too searching for a way to do this and i may have found something
Note : I haven't tested this yet
Found a little (free) software that monitors a specific directory on the computer and when a file appears in it, sends it directly to the printer without any user confirmation (as long as it is a "printable" file type).
So the process would be to generate the setupsheets as usual in a specific folder and they would get printed on the default windows printer.
It removes some additional complexity of OLE action command in PowerMILL macros
The software is called PrintFile
Sam
As i have excatly the same request; I'm Wondering if you have found a solution to print a SteupSheet whitout displaying the Print Preview ?
PRINT SETUPSHEETS NCPROGRAM ;
// How to close of hide the PRINT PREVIEW ??
YES
TEXTINFO ACCEPT
Generic solution for Pop-up windows: use AutoIt V3 https://www.autoitscript.com/site/autoit/
Sample macro for using:
// All exe in macro folder
// Start Query and Print preview automation
OLE FILEACTION "open" "PmillQueryAuto.exe"
//
// Toggle Powermill Query automation
OLE FILEACTION "open" "TogglePmillQuery.exe"
//
// Toggle Print Preview automation
OLE FILEACTION "open" "TogglePmillPrintPreview.exe"
//
// Close Query and Print preview automation
OLE FILEACTION "open" "ClosePmillQueryAuto.exe"
Source codes and exes attached.
The PmillQueryAuto needs to be edited: I use hungarian language Win10, Print Preview Window text is "Nyomtatási kép"
Yes, I just mad, html viewer right button, preview, orient, reduce, print