0

I'd like to know if it's possible to create and use a printer in Azure Worker Roles.

I do know that I can install printers with basic batch commands. So I could define a batch script that would run as a startup task.

something like:

rundll32 printui.dll,PrintUIEntry /if /b "printer" /f %windir%\inf\ntprint.inf /r "file:" /m "printername")


Question: Can I use a printer to print to file, maybe to local storage? I do need the function to print to file or atleast to have a printer installed, because I have to get the PCL output from different installed printers.

Sadly I can not test it by myself. I do not have a CC to join the 90 days trial.

2
  • 1
    This sounds like not a good idea. What are you trying to do?
    – Craig
    Nov 2, 2012 at 3:28
  • I'm using the pcl output to support different bluetooth printer to print directly from android/ios apps without having external apps (like pdfreader, etc) installed . Azure VMs would to the job flawlessly but I'd like to try out worker roles instead. Nov 2, 2012 at 10:29

1 Answer 1

2

If you think it is possible on Azure VM it is definitely possible on Web/Worker roles.

What you need is a StartUp Task executed with elevated privileges (executionContext='elevated'). This startup task can be anything that does not require UI to run.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .