Hi Everyone,
I am using the API of a particular printer driver, to pre-specify settings
specific to that printer driver. After which the API has methods to create a
printer driver context, which is to be sent to print command of the document
I want to print. In this case, it is the html file which I open in the
browser control which I want to print using these settings. How do I send
this printer driver context generated by this printer driver API, to the
browser control? Any idea?
Here is the relevant area of the code (ePrint1 is an instance of the Printer
Driver API class) -
-------------
int iPDC = ePrint1.PrnCreateSaveDC();
ePrint1.PrnStartDoc(iPDC, "tiff file");
ePrint1.PrnStartPage(iPDC);
object o = null;
axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRI NT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER , ref o, ref o);
ePrint1.PrnEndPage(iPDC);
ePrint1.PrnEndDoc(iPDC);
ePrint1.PrnDeleteDC(iPDC);
-----------------------
TIA
Vani