View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Charles Jordan Charles Jordan is offline
external usenet poster
 
Posts: 56
Default Error "Permission denied" when printing Web Browser control from button on userform,

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