VB.NET and Crystal Reports

Posted on 2006-06-08
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 ?
Question by:SynapcoCanada

    Expert Comment

    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


    Author Comment

    associated .vb file?
    LVL 11

    Accepted Solution

    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.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    no14 challenge 14 46
    Problem to setup 18 67
    Batch file output 20 71
    VBA color chart bars 12 51
    This article will show, step by step, how to integrate R code into a R Sweave document
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    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…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now