- From: Santoshmp <santoshmp@USHUSTECH.COM>
- Date: Fri, 12 May 2006 11:50:28 +0530
- To: <www-dom@w3.org>
Hi, I have to modify the DOM and show in Print Preview. What is to be done is to get all <object> tag, get a snapshot of the image, add some more information to the image and then replace the <object> tag with an <img> tag referencing the newly created bitmap. The problem is that the print preview window is shown as a modeless window and the window size is the default window size and not full screen as I want it to be. Because of this, you can go back to the browser and select print preview again to bring up another preview window. When comparing the contents of the original and duplicated web pages, the only change is that the <object> tag is replaced with the <img> tag as I want it to be. I'm calling the Exec method of IOleCommandTarget interface to show the preview as - pCmdTarget->Exec(&CGID_MSHTML, IDM_PRINTPREVIEW, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL); Any help is appreciated With Regards, Santosh M. P.
Received on Friday, 12 May 2006 20:33:16 UTC