ieframe.dll Print

jdpjamesp

ProgressTalk.com Moderator
Staff member
Progress 10.1C on XP:
I've got ieframe.dll on a window (Microsoft Webbrowser ocx) and wish to print from a button push on the Progress window. If the ocx is selected and I hit CTRL+P then I get the print dialog as per standard IE functionality. What function do I need to call to get this to happen on button push? Does anyone know? Can't find it in documentation but surely it must be possible?
 
Ok so further research suggests I need to use chWebBrowser:WebBrowser:ExecWB and the parameter OLECMDID_PRINT. So I've added this code:
Code:
  RUN chWebBrowser:WebBrowser:ExecWB(
    "OLECMDID_PRINT", 
    "OLECMDEXECOPT_PROMPTUSER", 
    ,).
and get this error:
---------------------------
Error (Press HELP to view stack trace)
---------------------------
de: 0x72ebb24 (5890)
---------------------------
OK Help
---------------------------
 
Back
Top