Error "Permission denied" when printing Web Browser control from button on userform,

  • Thread starter Thread starter Charles Jordan
  • Start date Start date
C

Charles Jordan

Hi all - we are hosting an htm page in a web browser control,
contained in user form, with a print button on the userform which is
supposed to print the htm page. However it fails, with the following
code:-

Private Sub cmdPrint_Click()

Call wbC.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, "", "")

End Sub

There is a run-time error 70 message, "Permission denied". Has any
one got a solution ??

TIA Charles
 
Back
Top