W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2006

Problem in preview window after duplicating DOM

From: Santoshmp <santoshmp@USHUSTECH.COM>
Date: Fri, 12 May 2006 11:50:28 +0530
Message-ID: <79DD1BC58DD7AC418EC0D1D5B169ACB804C7043B@mail.ushustech.com>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:09 UTC