ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Permission to print from batch job printing Excel spreadsheet (https://www.excelbanter.com/excel-programming/395194-permission-print-batch-job-printing-excel-spreadsheet.html)

Tom Y[_3_]

Permission to print from batch job printing Excel spreadsheet
 
I have a program which creates an Excel spreadsheet, then uses the following
to print to a printer:

oXL.Application.ActivePrinter = "\\ServerName\PrinterName on Ne01:"
oXL.ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"\\ServerName\PrinterName on Ne01:", Collate:=True

This program is run in batch. As long as "Administrator" is the processer
of the batch it works fine. However, since "Administrator" is not generally
a user to have running programs all the time, I have set up antoher user with
administrator rights. When processing under this user the command gets a
"Mode" error. Anyone know what specific permissions are needed for a batch
job to print an excel spreadsheet? Thanks in advance.

--
Tom at Famous Daves


All times are GMT +1. The time now is 08:53 AM.

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