hi all
have a .rdlc report like an invoice.
how can i add the values in my textboxes by the Name property of the Text Box.
like txtSubTotal.Text + txtTax.Text + txtShipping.Text. ?
all those fields are populated with calculations that run on the dataset and all have values. I just cant seem to write the proper syntax to add by control names, rather than field names.
well youshould use this syntax
ReportItems!txtSubTotal.Value + ReportItems!txtTax.Value + ReportItems!txtShipping.Value
NB: this wouldn't work whih agregiate functions unless used in a header or footer
Hope this help
|||Yes I couldn't for the LIFE OF ME find any information on the
ReportItems! < identifier. AFter much searching i found it buried in a MSDN doc somewhere called "The 5 Elements of a Microsoft Report"
Anyways got it working fine now.
thanks,
mcm
|||hi
Please tell me how to add Runtime value into Report.rdlc. I have two date(for start & end date) Controls on web page. I want to display those date on Report.rdlc using c#.
thanking you in advance
|||here is a code fragment that could help you :
List<
ReportParameter>
par=
new
List<
ReportParameter>
();
ReportParameter p=
new
ReportParameter
("
saleid
"
,
"
43660
"
);
par.
Add
(p);
this
.
reportViewer1.
ServerReport.
SetParameters
(par);
this
.
reportViewer1.
RefreshReport
();
Hope this helps
No comments:
Post a Comment