Solved

ActiveX Viewer in vb.net 2005

Posted on 2006-06-23
5
667 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
  • 3
  • 2
5 Comments
 
LVL 100

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 100

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 100

Expert Comment

by:mlmcc
ID: 17006698
Glad i could help

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add a total 6 35
cross tab crystal reports - filter a row 7 48
Select Cross-tab total 2 55
Crystal report highlighting 5 29
Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now