?
Solved

ActiveX Viewer in vb.net 2005

Posted on 2006-06-23
5
Medium Priority
?
675 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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. …
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 …
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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