Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: FW: ExecWB Method


Message #1 by Graeme Melville <graemem@f...> on Wed, 23 May 2001 16:20:17 +0200
    See if by doing a document.close() before printing has any different
results.  Just a guess.

- Chuck

----- Original Message -----
From: "Graeme Melville" <graemem@f...>
To: "professional vb" <pro_vb@p...>
Sent: Wednesday, May 23, 2001 10:20 AM
Subject: [pro_vb] FW: ExecWB Method


> I am having a slight problem with the WebBrowser control.
>
> I load a Html document using the Navigate2 method, I then alter the contents
> of a Table Cell on the html page using the
> Object.Document.All("ID").InnerText = "Whatever" function.
> I then try to print the document by calling the Object.ExecWB
> OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, "", "" function.
> This results in the document being printed but not the new Table Cell
> contents that I altered earlier. The specific cell is blank.
> It almost seems that the changes I made to the document after load have not
> "committed" yet by the time I call the print function.
>
> Has anyone encountered this before, and if so how did you get around it.
> Any input will be appreciated.
>
> Regards
>
> Graeme Melville
>
> Focus Solutions (Pty) Ltd
>
>


  Return to Index