Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionC# Window form application not working another computer Pin
coolsuhail8-Oct-14 3:39
coolsuhail8-Oct-14 3:39 
AnswerRe: C# Window form application not working another computer Pin
Dominic Burford8-Oct-14 4:00
professionalDominic Burford8-Oct-14 4:00 
GeneralRe: C# Window form application not working another computer Pin
coolsuhail10-Oct-14 1:47
coolsuhail10-Oct-14 1:47 
AnswerRe: C# Window form application not working another computer Pin
Richard MacCutchan8-Oct-14 4:17
mveRichard MacCutchan8-Oct-14 4:17 
GeneralRe: C# Window form application not working another computer Pin
Pete O'Hanlon8-Oct-14 4:35
mvePete O'Hanlon8-Oct-14 4:35 
GeneralRe: C# Window form application not working another computer Pin
Richard MacCutchan8-Oct-14 4:45
mveRichard MacCutchan8-Oct-14 4:45 
AnswerRe: C# Window form application not working another computer Pin
Swinkaran8-Oct-14 12:53
professionalSwinkaran8-Oct-14 12:53 
QuestionProblem with ReportViewer Pin
Kris_C#8-Oct-14 1:46
Kris_C#8-Oct-14 1:46 
Hello,

I have problem to put variables to reportviewer.
First I put variables to parametrs and then to reportviewer.
Code looks like that:
C#
jodb baza_win = new jodb(.....data.....to.....connection......SQL);
List<DaneRaportu> lista = baza_win.pobierz_rap_view(......query......SQL)
reportViewer1.ProcessingMode = ProcessingMode.Local;
LocalReport localReport = reportViewer1.LocalReport;

reportViewer1.LocalReport.DataSources.Clear(); //clear report
reportViewer1.LocalReport.ReportEmbeddedResource = "Raporting.Report_Promo.rdlc"; // bind reportviewer with .rdlc

Microsoft.Reporting.WinForms.ReportDataSource dataset = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", lista); // set the datasource
reportViewer1.LocalReport.DataSources.Add(dataset);
dataset.Value = lista;

            string data_rap = "Dataprobna";   //variables that I won't put in reportviewer
            ReportParameter nowydataod = new ReportParameter("dataodview", data_rap);  //dataodview this is name of parameter in design report
            this.reportViewer1.LocalReport.SetParameters(nowydataod);


Next in report I put parameter to textbox. Expression looks like that: Parameters!dataodview.Value

When I start program I get this communication:
An error occurred during local report processing
In details:
Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report '' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\User\AppData\Local\Temp\expression_host_1f2d7bdeb7b24b8a9d99ff74d15a1b60.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

The strange thing is that when I start program in Start Debugging everything is ok but when I start program in Start Without Debugging I have bug.

Maybe someone knows what happened?
QuestionTo make dataGridView Table cell into Button Pin
avisharma@sharma8-Oct-14 0:01
avisharma@sharma8-Oct-14 0:01 
AnswerRe: To make dataGridView Table cell into Button Pin
Eddy Vluggen8-Oct-14 0:30
professionalEddy Vluggen8-Oct-14 0:30 
GeneralRe: To make dataGridView Table cell into Button Pin
avisharma@sharma8-Oct-14 0:43
avisharma@sharma8-Oct-14 0:43 
GeneralRe: To make dataGridView Table cell into Button Pin
avisharma@sharma8-Oct-14 0:52
avisharma@sharma8-Oct-14 0:52 
GeneralRe: To make dataGridView Table cell into Button Pin
Eddy Vluggen8-Oct-14 1:05
professionalEddy Vluggen8-Oct-14 1:05 
Questiondelegates and marshalling Pin
Member 111363017-Oct-14 11:30
Member 111363017-Oct-14 11:30 
AnswerRe: delegates and marshalling Pin
BillWoodruff7-Oct-14 19:55
professionalBillWoodruff7-Oct-14 19:55 
Questioni am tired guides for how to select new record in gridex janus for add in database Pin
fatemehsoleimani7-Oct-14 4:59
fatemehsoleimani7-Oct-14 4:59 
AnswerRe: how to select new record in gridex janus for add in database Pin
fatemehsoleimani7-Oct-14 11:18
fatemehsoleimani7-Oct-14 11:18 
GeneralRe: how to select new record in gridex janus for add in database Pin
fatemehsoleimani9-Oct-14 3:51
fatemehsoleimani9-Oct-14 3:51 
QuestionSaving the button click event state in database Pin
AMRITESH ASTHANA6-Oct-14 20:58
AMRITESH ASTHANA6-Oct-14 20:58 
AnswerRe: Saving the button click event state in database Pin
Mycroft Holmes6-Oct-14 21:20
professionalMycroft Holmes6-Oct-14 21:20 
GeneralRe: Saving the button click event state in database Pin
AMRITESH ASTHANA6-Oct-14 23:04
AMRITESH ASTHANA6-Oct-14 23:04 
GeneralRe: Saving the button click event state in database Pin
Pete O'Hanlon6-Oct-14 23:16
mvePete O'Hanlon6-Oct-14 23:16 
GeneralRe: Saving the button click event state in database Pin
Mycroft Holmes6-Oct-14 23:17
professionalMycroft Holmes6-Oct-14 23:17 
QuestionAbout Creating Forum with asp.net c# Pin
Member 105764386-Oct-14 4:20
Member 105764386-Oct-14 4:20 
AnswerRe: About Creating Forum with asp.net c# Pin
ZurdoDev6-Oct-14 5:07
professionalZurdoDev6-Oct-14 5:07 

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.