Solved

VB .net with Crystal Report 9

Posted on 2004-04-16
16
2,571 Views
Last Modified: 2013-11-25
Hello,
   
      please help, I'm trying to bind crystal report in my vb.net application, so when I go to the window forms and select Crystal Report viewer control it default name is AxCRViewer1 instead of CrystalReportViewer1 and somehow the reportsource property is disable therefore I cannot bind my report. One more thing, in the add new item window I do not see crystal report icon in the templates section. Would anyone know what is going on. I am really appreciate any help here.

Thank you,
Manj
0
Comment
Question by:Majusri
[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
16 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 10842986
Sounds like you're building a web form instead of a windows form...
0
 
LVL 10

Expert Comment

by:EBatista
ID: 10843157
in the property windows what kind of control is it?
its class name has to be:
CrystalDecisions.Windows.Forms.CrystalReportViewer
0
 

Author Comment

by:Majusri
ID: 10843189
not really, I'm just trying to do a simple report with vb.net window form. I have an existing report and create a form in vb.net with a Crystal Report Viewer Control on the form. I noticed that the default name is AxCRViewer1 instead on CrystalReportViewer1 and the reportsource in the property is disable. So I added this code in the form load AxCRViewer1.reportSource = "Report1.rpt" it then compile but it have a runtime error. I'm just don't know what is wrong, The Crystal Report templates is also not exist in the Add new Item dialog box
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:Majusri
ID: 10843206
this is the error
An unhandled exception of type 'System.InvalidCastException' occurred in axinterop.crviewerlib.dll

Additional information: No such interface supported
0
 

Author Comment

by:Majusri
ID: 10843234
the control name in the property window is AxCRViewer1 AxCRViewerLib.AxCRViewer
the window forms control is called Crystal Report Viewer Control
0
 
LVL 42

Expert Comment

by:frodoman
ID: 10843308
I think when you added to control to your toolbox, you added the ActiveX (COM) control instead of the .Net Framework Component control.  Try adding the .Net control and see if that solves your problem.
0
 

Author Comment

by:Majusri
ID: 10843362
You are right, the control are coming from COMPONENT Control and it is Active X(COM), over the .Net control I cannot find Crystal Report viewer control at all. How can I get it?
0
 
LVL 42

Expert Comment

by:frodoman
ID: 10843528
Do you have to full version of Visual Studio are is this a demo / beta version?  On the full version it should be there already - you may have to reinstall and make sure you didn't deselect this option...

0
 

Author Comment

by:Majusri
ID: 10843561
hmm I have the VB.net full version and I didn't deselect any option at all
0
 

Author Comment

by:Majusri
ID: 10843700
only the active X Crystal Report is included, is there a way that I can download from somewhere
0
 

Author Comment

by:Majusri
ID: 10843820
by the way, this is Visual Basic .net standard 2003
0
 
LVL 6

Expert Comment

by:KarunSK
ID: 10844059
Go to Help -> About MS VB .Net ...

In the list of Installed Products, you should see an entry "Crystal Reports for Visual Studio .NET". If this entry is not there, then CR components were not installed. You may have to run the installation program again and make sure that those components are installed.
0
 
LVL 42

Expert Comment

by:frodoman
ID: 10844085
Try the installation again - maybe something was corrupted or didn't register correctly?  You should have the .Net component...
0
 

Author Comment

by:Majusri
ID: 10844559
I did go to Help -> About MS VB.Net but there is no where have the list of Installed Product but just Visual Basic.net installed. I did the installation again but no luck, .Net Component does not have Crystal Report Viewer. I'm not sure maybe Visual Basic .net 2003 is limited with Crystal Report Viewer control.
0
 
LVL 42

Accepted Solution

by:
frodoman earned 100 total points
ID: 10844644
Actually I just checked it out and VB.Net standard does NOT include the components that you need - you would have to upgrade to Visual Studio standard edition or better to get these components ( http://msdn.microsoft.com/vbasic/howtobuy/upgrade.aspX )

AFAIK you can't (legally) download these components anywhere.
0
 

Expert Comment

by:timDerringer
ID: 11056013
I am getting the same error and I am using the Enterprise Developer edition. Is the same thing true for this version? I also have Crystal 9 Developer addition.

Thanks,
-Tim
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

695 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