Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about TextBox control Pin
Stanciu Vlad3-Dec-05 2:25
Stanciu Vlad3-Dec-05 2:25 
GeneralRe: Question about TextBox control Pin
Rob Philpott3-Dec-05 3:29
Rob Philpott3-Dec-05 3:29 
QuestionThreading problem Pin
mav.northwind2-Dec-05 9:50
mav.northwind2-Dec-05 9:50 
AnswerRe: Threading problem Pin
Jared Parsons2-Dec-05 11:37
Jared Parsons2-Dec-05 11:37 
GeneralRe: Threading problem Pin
mav.northwind2-Dec-05 12:03
mav.northwind2-Dec-05 12:03 
GeneralRe: Threading problem Pin
S. Senthil Kumar2-Dec-05 21:13
S. Senthil Kumar2-Dec-05 21:13 
GeneralRe: Threading problem Pin
mav.northwind2-Dec-05 21:52
mav.northwind2-Dec-05 21:52 
QuestionCrystal Report ParameterFields Pin
Bedevian2-Dec-05 9:28
Bedevian2-Dec-05 9:28 
i wrote a sales report, which works fine with my application if i include start date and end date in the database, {gndsale.dob} in {date.startdate} to {date.enddate}.

but if i change the report to pass Parameter Fields, {gndsale.dob} in {?Start Date} to {?End Date}
when i load the report first time it's okay i can see the correct parameters on the Page header and in Details, but if i load report 2nd time with different parameters , the page header is updated but the details not, some how i need to refresh crystalReportViewer1 after i pass parameters. ???

check this code

ReportDocument1.Load(RptPath.ToString());
crystalReportViewer1.RefreshReport();
crystalReportViewer1.ReportSource = reportDocument1;
paramFields = new ParameterFields ();
ParameterField crParamFld = new ParameterField();
ParameterDiscreteValue CrparamValue = new ParameterDiscreteValue();
paramFields = crystalReportViewer1.ParameterFieldInfo;
crParamFld = paramFields[0];
CrparamValue.Value = PassDT_Start;
crParamFld.CurrentValues.Add(CrparamValue);
ParameterField crParamFld_2 = new ParameterField();
ParameterDiscreteValue CrparamValue_2 = new ParameterDiscreteValue();
crParamFld_2 = paramFields[1];
CrparamValue_2.Value = PassDT_End;
crParamFld_2.CurrentValues.Add(CrparamValue_2);
crystalReportViewer1.ParameterFieldInfo = paramFields;
crystalReportViewer1.ReportSource = reportDocument1;

Or this code

reportDocument1.SetParameterValue("Start Date",PassDT_Start );
reportDocument1.SetParameterValue("End Date",PassDT_End );
crystalReportViewer1.RefreshReport();
crystalReportViewer1.ReportSource = reportDocument1;







QuestionMDI child forms states Pin
Ammar Ben Hadj Amor2-Dec-05 8:14
professionalAmmar Ben Hadj Amor2-Dec-05 8:14 
AnswerRe: MDI child forms states Pin
Dave Kreskowiak2-Dec-05 10:47
mveDave Kreskowiak2-Dec-05 10:47 
QuestionFile.Copy Error - Please Help Pin
Joshua Lunsford2-Dec-05 8:02
Joshua Lunsford2-Dec-05 8:02 
AnswerRe: File.Copy Error - Please Help Pin
Joshua Lunsford2-Dec-05 9:19
Joshua Lunsford2-Dec-05 9:19 
AnswerRe: File.Copy Error - Please Help Pin
mav.northwind2-Dec-05 10:12
mav.northwind2-Dec-05 10:12 
GeneralRe: File.Copy Error - Please Help Pin
Joshua Lunsford2-Dec-05 10:15
Joshua Lunsford2-Dec-05 10:15 
GeneralRe: File.Copy Error - Please Help Pin
Joshua Lunsford2-Dec-05 10:51
Joshua Lunsford2-Dec-05 10:51 
GeneralRe: File.Copy Error - Please Help Pin
Dave Kreskowiak2-Dec-05 14:16
mveDave Kreskowiak2-Dec-05 14:16 
AnswerRe: File.Copy Error - Please Help Pin
RobertoTjMx7-Dec-05 12:32
RobertoTjMx7-Dec-05 12:32 
QuestionHow to keep a datatable? Pin
Julianne_juju2-Dec-05 7:40
Julianne_juju2-Dec-05 7:40 
AnswerRe: How to keep a datatable? Pin
enjoycrack2-Dec-05 7:51
enjoycrack2-Dec-05 7:51 
AnswerRe: How to keep a datatable? Pin
Rob Graham2-Dec-05 10:09
Rob Graham2-Dec-05 10:09 
AnswerRe: How to keep a datatable? Pin
MudkiSekhon3-Dec-05 1:53
MudkiSekhon3-Dec-05 1:53 
QuestionNumber of Rows in a DataSet Table Pin
budidharma2-Dec-05 6:30
budidharma2-Dec-05 6:30 
AnswerRe: Number of Rows in a DataSet Table Pin
KaptinKrunch2-Dec-05 6:33
KaptinKrunch2-Dec-05 6:33 
GeneralRe: Number of Rows in a DataSet Table Pin
Jared Parsons2-Dec-05 7:09
Jared Parsons2-Dec-05 7:09 
GeneralRe: Number of Rows in a DataSet Table Pin
Drew McGhie2-Dec-05 8:27
Drew McGhie2-Dec-05 8:27 

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.