I am trying to use ShellExecute to print an HTML file to the default printer without popping the dialog up. I have read about using the "printto" verb, but can't figure out the exact syntax to get it to work.
I have first been trying to get it to work when I hardcode the name of my default printer. Then I need to figure out how to obtain the name of the default printer and send it to it.
Here is my current code:
ShellExecute(NULL, "printto", path, "\"Adobe PDF\"", NULL, SW_HIDE);
But it still pops up the dialog. Anyone been able to get this to work?