Skip to Content
0
Former Member
Jan 11, 2008 at 09:46 PM

Strange problems with the ActiveX Viewer and Visual Stuido 2008

23 Views

Post Author: Zims

CA Forum: General

I have a strange problem that I would like to share and hopefully someone has a solutions.

We have been using Crystal Reports 10 and the ActiveX viewer for a long time with out problems. Our application consist of both VB6 and C# code. All our Crystal Reports functions are made in VB6. In VB6 we use the ActiveX viewe for previwing the reports.

When we updated our C# code to Visual Studio 2008 we ran in to problem with the ActiveX viewer used by VB6. We now get the following error message "Attempted to read or write protected memory."

We have made several tests and have come to the following conlusions

1. When calling the VB6 code (with the viewer) from a VB6 program everything works fine.2. When calling the VB6 code (with the viewer) from C# (Compiled in Visual Studio 2005) everything works fine.3. When calling the VB6 code (with the viewer) form C# (Compiled in Visual Studio 2008) we get a error when loding the ActiveX Viewer in VB6

This result made us do some more testing and we found out the following

1. The problem only occure when running on Windows Vista computers2. If create a C# project in Visual Studio 2008 and adds the Crystal Reports 10 ActiveX viewer controll we get the same error from the WinForm designer.3. If create a C# project in Visual Studio 2008 and adds the Crystal Reports 12 ActiveX viewer controll we get the same error from the WinForm designer.If other word we are not able to use any Active viewer when the program is eather made by Visua Studio 2008 or called by a Visual Studio 2008 assambly.

Anyone got any tips on what to do? We must use Visual Studio 2008 for our C# project and it is not possible to rewrite our VB6 Crystal Report code to .NET right now, (it will take months).