Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 26th, 2006, 09:05 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I pass new dataset to crystalreports?

I have a problem the new dataset to crystal report viewer in run time.
but I can not figure out what to do because each time I run with new dataset, crystal reports load the old report with old dataset.

What should I do to solve this problem?

My problematic code are;
        Dim Ds as dataset
        Dim tErr as DataTable
        Dim myConn As New OleDbConnection(ConnectionString)
        Dim myAdapter As OleDbDataAdapter = New OleDbDataAdapter("Select * From DataTable", myConn)

        myConn.Open()
        myAdapter.Fill(Ds)
        myConn.Close()

        tErr = Ds.Tables.Item(0)

        Dim myReport = New CrystalReport1

        myReport.SetDataSource(tErr)
        myReport.load()

        CrystalReportViewer1.ReportSource = myReport

I can not figure out what is missing/wrong in above code..
Please help









Similar Threads
Thread Thread Starter Forum Replies Last Post
crystalreports imjayakumar Crystal Reports 1 March 24th, 2007 04:48 AM
Pass variable to main form dataset spacky001 ASP.NET 1.0 and 1.1 Basics 2 September 13th, 2006 10:10 PM
how to pass the data from dataset to CR? zouky Crystal Reports 0 November 8th, 2004 02:49 AM
How to pass bulk data(dataset) between webpages jaisonkmathews ADO.NET 10 October 3rd, 2004 02:08 PM
How to pass bulk data(dataset) between webpages jaisonkmathews General .NET 4 September 17th, 2004 09:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.