title: Opening a file on IIS
body: <p>I have a program which creates word, excel and powerpoint files. All my code works fine on client side. As automation of office tools is not possible on server side I used third party API's like Aspose and OfficeWriter to create the documents. I used below mentioned code to open, after creating the file. </p>
  
  <pre><code>string paths = Server.MapPath("~/Data/" + TextBox1.Text + ".docx" );
          Process prc = new Process();
          prc.StartInfo.FileName = paths;
          prc.Start();
  </code></pre>
  
  <p>This code will not open the file from IIS, even Aspose and OfficeWriter are meant to work on server. Then I tried to open .jpg file using this code on IIS. That also does not work. I think prs.start() will not work on IIS. Is there any alternative way to open the file. I dont want to open the file as if we are downloding an attachment. </p>