Print Page | Close Window

crystal reports and runtime dataset

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=10
Printed Date: 03 May 2024 at 1:12am


Topic: crystal reports and runtime dataset
Posted By: farid_nasiri
Subject: crystal reports and runtime dataset
Date Posted: 14 Nov 2006 at 11:08pm
Can I create a dataset at runtime and bind that dataset to a crystal report?
Can someone show me code or point me to a link that describes how to do
this?

Thanks!



Replies:
Posted By: rumbafum
Date Posted: 15 Nov 2006 at 10:36am
it's possible.. This is an example in c# with use of a report document:
 
DataSet ds = new DataSet();
 
ReportDocument report = new ReportDocument();
report.Load("yourreportfile");
report.SetDataSource(ds);
report.PrintToPrinter(....);



Print Page | Close Window