Wrox Programmer Forums
|
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 October 17th, 2003, 04:44 AM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO.NET Dataset

Hi! I got few questions to ask regarding the ado.net dataset.

1) Can I have more than 1 table views (sql2000) in 1 dataset?
2) How do I make the connection if I have more than 1 table views in my dataset?

eg. (For 1 table views)

        Dim vNric As String
        Dim objReport As New cr_Test() 'Crystal Report
        Dim myDataSet As New DS_Test() 'Dataset1

        SqlStmt = "SELECT * from vIND_Profile where nric_fin = '" & txtID &"'"
        myCmd = New SqlCommand(SqlStmt, sqlConn)
        mySqlAdapter = New SqlDataAdapter(SqlStmt, sqlConn)
        mySqlAdapter.Fill(myDataSet, "vIND_Profile")

        objReport.SetDataSource(myDataSet)
        Me.CrystalReportViewer1.ReportSource = objReport


------------------------

The above only for 1 table views. How to do the codes if I have more than 1 tables?

Thanks.

Regards,






Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between ADO and ADO.NET rakeshclose2u ADO.NET 2 April 23rd, 2007 03:57 AM
ADO.NET dataset with join divinyl Crystal Reports 4 January 26th, 2006 03:12 AM
ADO AND ADO.NET royalsurej ADO.NET 1 November 8th, 2004 08:28 AM
Returning resultset to ADO.NET dataset gp_mk Oracle 3 December 22nd, 2003 10:44 AM
ADO.NET Dataset Questions winnie1778 ADO.NET 1 October 20th, 2003 12:50 PM





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