Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x 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 February 20th, 2007, 02:34 AM
Registered User
 
Join Date: Dec 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to generate a crystal report at run time

Hi to all
I want to generate crystal report at run time through dataset filled by a query. can anyone tell me how can i generate it at runtime.

I hav done following coding but it produces a blank report.

 Dim str As String
        Dim cr As New Card
        Dim da As New SqlDataAdapter
        Dim cmd As New SqlCommand
        Dim ds As New DataSet
        str = "select RID,Name,Dob,Address,Phno,Mob,Email,Courseid from Studentdetails where RID= '" & txtrid.Text & "' "
        cmd = New SqlCommand(str, con)
        da.SelectCommand = cmd
        da.Fill(ds)
        cr.Load()
        cr.SetDataSource(ds)
        CrystalReportViewer1.ReportSource = cr
        CrystalReportViewer1.DataBind()



Now what should i add so that filtered data displayed on report.

Plz answer if anyone can.

Thanks in advence








Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamically generate crystal report s_sanks Crystal Reports 0 March 3rd, 2008 07:19 AM
To generate fixed size frames in Crystal Report XI infotech BOOK: Professional Crystal Reports for VS.NET 1 May 14th, 2007 09:03 AM
change Datasource of a crystal report at run time tiyyob Pro VB 6 1 February 17th, 2007 06:05 AM
Change group at run time in Crystal Report 9.0 by priyank Beginning VB 6 0 January 6th, 2006 06:11 AM
Crystal run-time error wpeck BOOK: Professional Crystal Reports for VS.NET 0 January 22nd, 2004 03:17 PM





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