title: Infopath cannot open file : Not enough storage is available to complete this operation
body: <p>I have been trying to Programmatially open a Infopath (2013) from from a SharePoint list (2013) in order to call the print to PDF functionality of the infopath client application.</p>
  
  <p>When trying to open the Infopath file I am receiving the following error:
  InfoPath cannot open the following file: {sharepoint filename}.xml. Not enough storage is available to complete this operation.</p>
  
  <p>My C# code looks something like this: </p>
  
  <pre><code>string fileName = string.Format(@"{0}/{1}", application.Web.Url, application.Url);
  Microsoft.Office.Interop.InfoPath.Application infoPathApp = new Microsoft.Office.Interop.InfoPath.Application();
  XDocument InfXDoc = infoPathApp.XDocuments.Open(fileName, (int)XdDocumentVersionMode.xdCanOpenInReadOnlyMode);
  </code></pre>
  
  <p>Any ideas what would be causing this error?</p>
  
  <p>thanks!</p>