I'm looking for a solution to do the following:
I have an ActiveX control, and the only thing this control does is to print a given html page (by url). To do this job, I'm using the WebBrowser control, with code like
IE.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
Now the problem is that I would like (or, better to say, the clients would like;)) to select the exact printer tray to use.
What I see as a solution would be to find the default printer, and set its (imaginary) DefaultTray property to X, then to call the IE print function.
What do you think?