Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Error when exporting reports using MAPI

$
0
0

We created a .NET class that wraps CR 2010 .NET Crystal Reports functions and made it COM visible. This class is used to create a COM object in a js script which in turn used to export reports to a PDF file with the destination MAPI.

It exports reports just fine without any errors however if prior to instantiation the exporting class we instantiate a class that has nothing to do with the Crystal Reports functions, our exporting object throws u201CExternal component has thrown an exception.u201D error when exporting. It appears that it has something to do with the SideBySide feature. I was wondering if somebody knows what causes this and if there is a way to fix this problem.

Thanks for your help!

<br>

<br>

Below are 2 procmon.exe outputs, the first when exporting works and the second when it doesnu2019t

<br>

<br>

/////////////////////////////////////////////

<br>

1) Procmon.exe output when exporting works fine

<br>

<br>

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\CommonFilesDir     SUCCESS     Type: REG_SZ, Length: 72, Data: C:\Program Files (x86)\Common Files

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>7:16:30.7403615 AM     test.exe     4396     FASTIO_QUERY_INFORMATION     C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     FILE LOCKED WITH ONLY READERS     SyncType: SyncTypeCreateSection, PageProtection:

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     SyncType: SyncTypeOther

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Image Base: 0x79260000, Image Size: 0x1073000

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryNameInformationFile, Name: \Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest     NAME NOT FOUND     Length: 20

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>

<br>

<br>//////////////////////////////////////////////////////////////////////

<br>2) Procmon.exe output when exporting doesnu2019t work, notice that it tries to open MSO.dll at the same location as in the output above but fails, it tries then to open it at several other locations and fails

<br>

<br>

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\CommonFilesDir     SUCCESS     Type: REG_SZ, Length: 72, Data: C:\Program Files (x86)\Common Files

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     FILE LOCKED WITH ONLY READERS     SyncType: SyncTypeCreateSection, PageProtection:

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     SyncType: SyncTypeOther

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Users\Paul\projects\temp\test\Debug\MSO.dll     FAST IO DISALLOWED     

<br>C:\Users\Paul\projects\temp\test\Debug\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Program Files (x86)\Microsoft Office\Office12\MSO.dll     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Microsoft Office\Office12\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\SysWOW64\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\SysWOW64\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\system\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\system\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>