Avatar of Ennio
Ennio asked on

Dynamic Send DataSET to Report

I have a blank crystal report, and I would like to know how can I send a dataset to the report, and generate the report dynamic.

I have this on my code, but when I open the report I get an error saying the report has no table.

The dataset is getting the data from the DB, and I only have 3 column Name, Date, Time

Private Sub ReportView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim rpt As New CrystalReport1() 'The report you created
        CompanyClassObject = New CompanyClass()
        DataSetCompanyDetails = CompanyClassObject.GetTimeDetailsForCompany(CopmanyID)
            CrystalReportViewer1.ReportSource = rpt
        Catch Excep As Exception
            MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End Try
    End Sub

Open in new window

.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
Mike McCracken

8/22/2022 - Mon

If I genereate the report using the wizard, it works, but the problem is that I want to use the dataset that I create in the code, and not the one used to generate the report, because I need to add some paramenters to generate the dataset, and when I use the one from the wizard it keeps me asking for the values.
Mike McCracken

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck