Solved

ActiveX Viewer in vb.net 2005

Posted on 2006-06-23
5
665 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 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

11 Experts available now in Live!

Get 1:1 Help Now