Click here to Skip to main content
15,897,360 members
Home / Discussions / C#
   

C#

 
QuestionRefresh Crystal Report DataSet Problem? Pin
Old Gun27-May-05 4:56
Old Gun27-May-05 4:56 
I use ado.net as data source for crystal report,I wanted to dynamic changed DataSet to display filter data ,I use follow code ,but It can't work,Plz help me, Thanke u.

.............
try
{
if (comboBox1.Text == "All")
strSQL = "select * from authors";
else
strSQL = "select * from authors where state ='" + comboBox1.Text + "'";

cmd = new OleDbCommand("SELECT * FROM authors",cn);
adpter = new OleDbDataAdapter(cmd);
dataset = new DataSet("authors");
adpter.Fill(dataset,"authors");

oRpt.SetDataSource(dataset);
crView.ReportSource = oRpt;
}
catch(Exception err)
{
MessageBox.Show(err.Message);
}
.........

AnswerRe: Refresh Crystal Report DataSet Problem? Pin
Grylion5427-May-05 10:35
Grylion5427-May-05 10:35 
GeneralRe: Refresh Crystal Report DataSet Problem? Pin
Old Gun27-May-05 15:32
Old Gun27-May-05 15:32 
GeneralHEEEEEEEEEELLLLP please Pin
albCode27-May-05 4:27
albCode27-May-05 4:27 
GeneralRe: HEEEEEEEEEELLLLP please Pin
Reinier Beeckman27-May-05 4:37
Reinier Beeckman27-May-05 4:37 
GeneralRe: HEEEEEEEEEELLLLP please Pin
MoustafaS27-May-05 5:39
MoustafaS27-May-05 5:39 
GeneralScroll Bar hogging focus Pin
rocky_pulley27-May-05 4:09
rocky_pulley27-May-05 4:09 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 4:35
John Fisher27-May-05 4:35 
GeneralRe: Scroll Bar hogging focus Pin
rocky_pulley27-May-05 5:02
rocky_pulley27-May-05 5:02 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 6:13
John Fisher27-May-05 6:13 
GeneralRe: Scroll Bar hogging focus Pin
rocky_pulley27-May-05 7:52
rocky_pulley27-May-05 7:52 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 10:45
John Fisher27-May-05 10:45 
GeneralWindows.Forms.DataGrid Pin
Reinier Beeckman27-May-05 3:42
Reinier Beeckman27-May-05 3:42 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 4:17
Alomgir Miah27-May-05 4:17 
GeneralRe: Windows.Forms.DataGrid Pin
Reinier Beeckman27-May-05 4:31
Reinier Beeckman27-May-05 4:31 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 7:53
Alomgir Miah27-May-05 7:53 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 8:25
Alomgir Miah27-May-05 8:25 
Generalmscorlib.xml Pin
zuschauer198027-May-05 1:39
zuschauer198027-May-05 1:39 
GeneralTool to convert from Ms Access Database to MYSQL Database Pin
rockxuyenmandem27-May-05 1:27
rockxuyenmandem27-May-05 1:27 
GeneralRe: Tool to convert from Ms Access Database to MYSQL Database Pin
Member 157708727-May-05 2:39
Member 157708727-May-05 2:39 
QuestionConfig file in dll project? Pin
davebarkshire27-May-05 1:08
davebarkshire27-May-05 1:08 
AnswerRe: Config file in dll project? Pin
DavidNohejl27-May-05 2:31
DavidNohejl27-May-05 2:31 
AnswerRe: Config file in dll project? Pin
Dave Kreskowiak27-May-05 2:33
mveDave Kreskowiak27-May-05 2:33 
GeneralSmall UI prob Pin
Niklas Ulvinge27-May-05 0:56
Niklas Ulvinge27-May-05 0:56 
GeneralRe: Small UI prob Pin
John Fisher27-May-05 4:37
John Fisher27-May-05 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.