title: Saving DOCX Documents to a server
body: <p>I put you in situation in C# I'm realizing a program that modifies DOCX documents and creates new documents both DOCX and PDF. In local I do it perfectly but when I want DOCX to read it from the server or save it on the server does not do it to me, the maximum is that it opens the folder in which it is stored on the server but with the document does nothing . Comment that the program I am developing for MAC OSX and the server is Windows Server.
  Someone can tell me the code I can use.</p>
  
  <p>To read usage:</p>
  
  <p><strong>Process.Start ("smb // servername / folder / doc.docx");</strong></p>
  
  <p>Also tried by giving you username and password:</p>
  
  <p><strong>Process.Start (serverpaths, user, password, "");</strong></p>
  
  <p>To save to the server and create document:
  PDF use the iTextSharp library:</p>
  
  <p><strong>PdfWriter writer = PdfWriter.GetInstance (doc, new FileStream (path, FileMode.Create);</strong></p>