ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error "Permission denied" when printing Web Browser control from button on userform, (https://www.excelbanter.com/excel-programming/303557-error-permission-denied-when-printing-web-browser-control-button-userform.html)

Charles Jordan

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


All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com