Solved

ActiveX Viewer in vb.net 2005

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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