MS Word automation from ASP.NET - open and print in specifc user context

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaksyonenko
    New Member
    • Apr 2008
    • 1

    MS Word automation from ASP.NET - open and print in specifc user context

    My website needs to allow a user to upload a word document, and then print it to a virtual printer for the purposes of converting it to TIFF format.
    Everything works fine on local system, but I am getting a security exception when I try this on the server. Obviously, the anonymous web user does not have sufficient permissions to do this.
    As I see it, I have 2 options available to me - either I elevate the permissions level for the anonymous user (obviously not a good thing), or I access my document and/or printer object in a different user context.
    So far I have been unable to find how I can open or print a word document from inside ASP.NET in "Run As..." mode. Can anyone provide any assistance with this..?
    I was playing with the idea of creating a separate command-line executable and invoking it from my web app by using the Process object, where I can specify the "Run As..." credentials, but that just feels so wrong! Isn't there a more elegant way..?
Working...