<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: System.Runtime.InteropServices.COMException: The document has not been opened. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaa-p/12062517#M4507526</link>
    <description>&lt;P&gt;Thanks Don, following your suggestions resolved my issue.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 17:01:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-12-10T17:01:20Z</dc:date>
    <item>
      <title>System.Runtime.InteropServices.COMException: The document has not been opened.</title>
      <link>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaq-p/12062515</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I have a couple of .net apps running on a Windows Server 2012 R2. The apps were developed in Visual Studio 2015 and include Crystal Reports, reports. They have been running for years but now when users try to open the reports they get the error shown in the screen shot below.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1754538-untitled.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Here is a snippet of the code that creates a report.&lt;/P&gt;
  &lt;P&gt; ReportName = "Category" &lt;BR /&gt;MakeCrParameter(txtStartDate.Text, "@StartDate", crpt) &lt;BR /&gt;MakeCrParameter(txtEndDate.Text, "@EndDate", crpt)&lt;BR /&gt;Dim FileName As String = ReportName &amp;amp; " " &amp;amp; Now.Month &amp;amp; "-" &amp;amp; Now.Day &amp;amp; "-" &amp;amp; Now.Year &amp;amp; "-" &amp;amp; Now.Second &amp;amp; ".pdf"&lt;BR /&gt;Dim dfdo As New DiskFileDestinationOptions() dfdo.&lt;BR /&gt;DiskFileName = "C:\WebApps\EslCalls\Reports\" &amp;amp; FileName &lt;BR /&gt;With crpt &lt;BR /&gt;.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile&lt;BR /&gt;.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat &lt;BR /&gt;.ExportOptions.DestinationOptions = dfdo .Export() &lt;BR /&gt;.Close() &lt;BR /&gt;.Dispose() &lt;BR /&gt;End With&lt;/P&gt;
  &lt;P&gt;I tried reinstalling the SAP Crystal Reports runtime engine for.NET Framework (64-bit) version 13.0.10.1385 on the server but that didn't remedy the situation.&lt;/P&gt;
  &lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaq-p/12062515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-04T16:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: System.Runtime.InteropServices.COMException: The document has not been opened.</title>
      <link>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaa-p/12062516#M4507525</link>
      <description>&lt;P&gt;Hi Les,&lt;/P&gt;&lt;P&gt;I changed the Tag to CR for VS.&lt;/P&gt;&lt;P&gt;I doubt it's your code or CR runtime, likely cause is a recent MS Windows update is now blocking access to the resources.&lt;/P&gt;&lt;P&gt;SP 10 is very old, you can get the latest from here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads" target="test_blank"&gt;https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It now uses 4.0 framework minimum, read all of the info for SP 21. we changed the C++ builder to VC 2015 so it no use the MS VC 2015 C++ runtime and other newer dependencies since MS no longer supports those old one.&lt;/P&gt;&lt;P&gt;It will require you to rebuild your app with the updated Assemblies as well as deploying the MSI redist package on your WEB server.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 20:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaa-p/12062516#M4507525</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2019-12-05T20:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: System.Runtime.InteropServices.COMException: The document has not been opened.</title>
      <link>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaa-p/12062517#M4507526</link>
      <description>&lt;P&gt;Thanks Don, following your suggestions resolved my issue.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/system-runtime-interopservices-comexception-the-document-has-not-been/qaa-p/12062517#M4507526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-10T17:01:20Z</dc:date>
    </item>
  </channel>
</rss>

