Hi Vijay,
Hope you had a nice holiday! There are a few things we could try with the CVI Operator Interface. The first option we have is using the Query Status WB function. This will return the status when opening the web browser. If the status returns a 0, then web browser has not successfully loaded the page yet. Once the page is opened and loaded properly, it will return a non-zero number. You could check this status before you try to print the page.
Another option would involve using the CA_VariantSetShort function. This will allow us to notify the Exec WB function when the page is ready to print. Place the variant from the CA_VariantSetShort into the "PVA in" parameter of the Exec WB function. Here is an example:
CA_VariantSetShort (&printOption, 3);
IE_IWebBrowser2ExecWB (ieHandle, NULL, IEConst_OLECMDID_PRINT, IEConst_OLECMDEXECOPT_PROMPTUSER, printOption, NULL);
Also, when you receive these errors, is there an error number? I hope this helps. Thanks!
Matt S
National Instruments
Applications Engineer