Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

VB.NET and Crystal Reports

Posted on 2006-06-08
3
Medium Priority
?
452 Views
Last Modified: 2010-04-17
I added a new item to my VB.NET project (Crystal Report). It is called membersReport.rpt and I can see it in the Solution Explorer window. I have the following code in one of my forms

Dim myReport As New membersReport

The problem is that membersReport is not valid.

Any ideas on what I am forgetting ?
0
Comment
Question by:SynapcoCanada
3 Comments
 

Expert Comment

by:aimfan
ID: 16864809
Try this:
1)move .rpt file and acociated .vb file out of the project folder
2) remove the rpt file from the solution
3) readd the rpt file back to the sulotion

.vb file will be generated automaticly.

then you should be able to creat new report object

cheers
0
 

Author Comment

by:SynapcoCanada
ID: 16864883
associated .vb file?
0
 
LVL 11

Accepted Solution

by:
Rajesh Dalmia earned 500 total points
ID: 16974996
Open your Form in design mode. Add a 'Report Document' component in your form, from ToolBox->Components TAB. When you will double click the 'Report Document' component in Components tab, it will show you all the report names from your proejct. Select the report that you want to add. Once added you can see the name of the report at the botton of your vb form. After that you can use the report name in your form.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Screencast - Getting to Know the Pipeline

564 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