Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
AnswerRe: showing text in the pdf in the user defined format Pin
Peace ON22-Jul-10 19:22
Peace ON22-Jul-10 19:22 
QuestionHow to correct X Axis scale label in .Net Chart Control Pin
Daniel Tong22-Jul-10 8:24
Daniel Tong22-Jul-10 8:24 
QuestionWebBrowser control automation question Pin
Etienne_12322-Jul-10 6:57
Etienne_12322-Jul-10 6:57 
AnswerRe: WebBrowser control automation question Pin
Etienne_12322-Jul-10 7:07
Etienne_12322-Jul-10 7:07 
QuestionMy TextBox lacks discipline and Forms.Focus Pin
GrenMeera22-Jul-10 5:48
GrenMeera22-Jul-10 5:48 
AnswerRe: My TextBox lacks discipline and Forms.Focus Pin
Peace ON22-Jul-10 19:45
Peace ON22-Jul-10 19:45 
GeneralRe: My TextBox lacks discipline and Forms.Focus Pin
GrenMeera23-Jul-10 3:08
GrenMeera23-Jul-10 3:08 
QuestionPassing a Varible to a TextBox in ReportViewer Pin
cgillespie22-Jul-10 3:56
cgillespie22-Jul-10 3:56 
I am having a problem and been looking for days on passing a variable to a textbox in reportviewer.

Currently I have one date string and eventually will have six that I want to pass to textboxes in my .rdlc report. I am pulling information from a database to place in the report and have constructed a dataset. The dataset does not allow me to pull the dates I need since they are future dates, i.e. timecards/dairycards and the dates are picked from a calendar control, The dates are stored as variables and placed in an array for the report.

I keep getting the following error message when I run the report:

LocalProcessingException was unhandled.

Microsoft.Reporting.WinForms.LocalProcessingException was unhandled

Message="An error occurred during local report processing."

Source="Microsoft.ReportViewer.WinForms"

Below is my code for the btnRun_Click event:


private void btnRun_Click(object sender, EventArgs e)

{
            reportViewer1.ProcessingMode = ProcessingMode.Local;

            LocalReport localReport = reportViewer1.LocalReport;

            reportViewer1.LocalReport.ReportPath = "Report1.rdlc";

            string param0 = GlobalClass.GlobalVar;

            ReportParameter inputdata = new ReportParameter("DateOne", param0);

            <code>this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] {inputdata});</code>
             

            // TODO: This line of code loads data into the 'AttendanceDataSet.EMPLOYEES' table. You can move, or remove it, as needed.

            this.EMPLOYEESTableAdapter.Fill(this.AttendanceDataSet.EMPLOYEES);

this.reportViewer1.RefreshReport();

}



I have highlighted the line of code that the exception is thrown at.

I do have on my report the textbox expression set as:

=Parameters!inputdata.Value

I have looked everywhere I can think to find a solution. Any advice would be helpful.

Thanks in advance
QuestionDynamic Dictionary usage problem in C# Pin
glitteringsound22-Jul-10 3:22
glitteringsound22-Jul-10 3:22 
QuestionMDIChild form in FULLSCREEN mode Pin
frommi22-Jul-10 0:05
frommi22-Jul-10 0:05 
AnswerRe: MDIChild form in FULLSCREEN mode Pin
Peace ON22-Jul-10 0:16
Peace ON22-Jul-10 0:16 
GeneralRe: MDIChild form in FULLSCREEN mode Pin
frommi22-Jul-10 0:25
frommi22-Jul-10 0:25 
GeneralRe: MDIChild form in FULLSCREEN mode Pin
Peace ON22-Jul-10 2:04
Peace ON22-Jul-10 2:04 
GeneralRe: MDIChild form in FULLSCREEN mode Pin
Ravi Bhavnani22-Jul-10 4:19
professionalRavi Bhavnani22-Jul-10 4:19 
GeneralRe: MDIChild form in FULLSCREEN mode Pin
Matt U.22-Jul-10 11:57
Matt U.22-Jul-10 11:57 
AnswerRe: MDIChild form in FULLSCREEN mode Pin
Niyamat22-Jul-10 7:47
Niyamat22-Jul-10 7:47 
Questionhow to auto Refresh a control in windows application Pin
Krishna Varadharajan21-Jul-10 23:20
Krishna Varadharajan21-Jul-10 23:20 
AnswerRe: how to auto Refresh a control in windows application Pin
Peace ON22-Jul-10 0:09
Peace ON22-Jul-10 0:09 
GeneralRe: how to auto Refresh a control in windows application Pin
Krishna Varadharajan22-Jul-10 20:10
Krishna Varadharajan22-Jul-10 20:10 
Questionreplacing html entity [modified] Pin
varsh1221-Jul-10 22:43
varsh1221-Jul-10 22:43 
AnswerRe: replacing html entity Pin
Rajesh Sajjanar22-Jul-10 2:25
Rajesh Sajjanar22-Jul-10 2:25 
GeneralRe: replacing html entity Pin
varsh1222-Jul-10 2:35
varsh1222-Jul-10 2:35 
AnswerRe: replacing html entity Pin
Peace ON22-Jul-10 2:34
Peace ON22-Jul-10 2:34 
QuestionSocket port listen Pin
anishkannan21-Jul-10 21:48
anishkannan21-Jul-10 21:48 
AnswerRe: Socket port listen Pin
jschell22-Jul-10 8:22
jschell22-Jul-10 8:22 

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.