----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: vanimurarka Message 1 in Discussion 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_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, ref o, ref o); ePrint1.PrnEndPage(iPDC); ePrint1.PrnEndDoc(iPDC); ePrint1.PrnDeleteDC(iPDC); TIA Vani ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
