Solved

ActiveX Viewer in vb.net 2005

Posted on 2006-06-23
5
674 Views
Last Modified: 2008-03-06
I'm converting a crystal viewer from vb6 to vb.net and I'm having some problems deploying it that maybe someone can help me with.

I get an error: System.windows.forms.axhost+invalidactivexstateexception when it hits CRViewer1.ViewReport()

Code:

        CrxReport = CrxApplication.OpenReport(strFileLocation, 1)

        CRViewer1.ReportSource = CrxReport

        CRViewer1.ViewReport()

Deployed using ClickOnce to a network share
0
Comment
Question by:ast2550
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 16973727
What Crystal files are you including?  Did you change the viewer to the .Net viewer?

What version of Crystal?

mlmcc
0
 
LVL 7

Author Comment

by:ast2550
ID: 16984013
Crystal 8.0 RDC

AxInterop.CRVIEWERLib.dll
Interop.CRAXDRT.dll
Interop.CRVIEWERLib.dll

I have it working on at least one client, now.  I removed some of the unused references.  I haven't been able to try it on the initial failing workstations, yet though.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 16989670
I am not sure if CR8 is supported on the .Net platform.

mlmcc
0
 
LVL 7

Author Comment

by:ast2550
ID: 17000990
I switched over to the .net viewer.  

Thanks for the advice.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 17006698
Glad i could help

mlmcc
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question