Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Writing Code
Crystal Reports Forum
:
Crystal Reports for Visual Studio 2005 and Newer
:
Writing Code
Topic: Datable insert into dataset
Oldest Post First
Newest Post First
Author
Message
voxxo
Newbie
Joined: 03 Jun 2009
Online Status: Offline
Posts: 4
Topic: Datable insert into dataset
Posted: 03 Jun 2009 at 5:03pm
How can datatable to be insert into the Crystal Report?
Now I am using SqlDataAdapter, this "adpt.Fill(dataSet, "UploadMsg");" is important so it know the name of the dataset:
SqlDataAdapter adpt = new SqlDataAdapter();
SqlCommand cmd = new SqlCommand(uploadSql, conn);
adpt.SelectCommand = cmd;
// Add parameters and set values.
cmd.Parameters.Add("@dntAccountCode", SqlDbType.NVarChar, 13).Value = dntAccountCode;
adpt.Fill(dataSet, "UploadMsg");
customerReport.SetDataSource(dataSet);
I created a dynamic datatable, but don't know how to put them into the cystal report dataset.
Could not find any clue about this problem.
IP Logged
voxxo
Newbie
Joined: 03 Jun 2009
Online Status: Offline
Posts: 4
Posted: 03 Jun 2009 at 7:12pm
Get it.... uploadDt.TableName = "UploadMsg"; dataSet.Tables.Add(uploadDt)
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
This page was generated in 0.031 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.