Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionSendKeys.Send Acting strangely Pin
goldsoft6-Sep-15 8:54
goldsoft6-Sep-15 8:54 
QuestionMessage Closed Pin
5-Sep-15 19:12
Sultan Uz Zaman5-Sep-15 19:12 
QuestionRe: Using WFP application for webcam. I do not want to show the image control on window. Using a function from pages to capture the image on certain occassion and save it. Pin
Paul Conrad6-Sep-15 7:38
professionalPaul Conrad6-Sep-15 7:38 
AnswerRe: Using WFP application for webcam. I do not want to show the image control on window. Using a function from pages to capture the image on certain occassion and save it. Pin
Sultan Uz Zaman6-Sep-15 16:11
Sultan Uz Zaman6-Sep-15 16:11 
GeneralRe: Using WFP application for webcam. I do not want to show the image control on window. Using a function from pages to capture the image on certain occassion and save it. Pin
Pete O'Hanlon6-Sep-15 23:21
mvePete O'Hanlon6-Sep-15 23:21 
GeneralRe: Using WFP application for webcam. I do not want to show the image control on window. Using a function from pages to capture the image on certain occassion and save it. Pin
Paul Conrad7-Sep-15 6:19
professionalPaul Conrad7-Sep-15 6:19 
QuestionHow can i get complex matrix svd(singlar value decompostion) lib? Pin
smallkubi5-Sep-15 17:45
smallkubi5-Sep-15 17:45 
QuestionSubreport in SSRS is getting error when calling throuch C# windows application Pin
hishamkmr4-Sep-15 22:19
hishamkmr4-Sep-15 22:19 
Hi

I am calling a SSRS report from C#. A main report and a subreport in it.

The main report is working correctly but the subreprot is showing The subreport 'Name' could not be found at location

I put the main report and subreport in the bin folder.

Please find the code used by me as below


C#
sqlcomm = new SqlCommand("mainreport query", conn);           
 SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlcomm);            
dataAdapter.Fill(dataset);            
this.reportViewer1.ProcessingMode = ProcessingMode.Local;            
this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\sale_dept.rdl";           
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", dataset.Tables[0]));   
         this.reportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(addsubreport); 
this.reportViewer1.LocalReport.Refresh(); 
this.reportViewer1.RefreshReport();
private void addsubreport(object sender, SubreportProcessingEventArgs e)       
 {            
SqlConnection conn = new SqlConnection(source);  
DataSet dataset = new DataSet();
conn.Open(); 
SqlCommand sqlcomm = new SqlCommand("subreport query", conn); 
 SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlcomm); 
dataAdapter.Fill(dataset); 
e.DataSources.Add(new ReportDataSource("discount", dataset.Tables[0])); 
}




When i done debug with breakpoint it found that the eventhandler is not getting fired.

The control is not going to the 'addsubreport' event handler. I am stucked here Frown | :( please help
QuestionUse cutter for cut an image(.svg) with a definition layout image by winform (C#) Pin
phinq19104-Sep-15 16:32
professionalphinq19104-Sep-15 16:32 
AnswerRe: Use cutter for cut an image(.svg) with a definition layout image by winform (C#) Pin
OriginalGriff4-Sep-15 21:48
mveOriginalGriff4-Sep-15 21:48 
GeneralRe: Use cutter for cut an image(.svg) with a definition layout image by winform (C#) Pin
phinq19105-Sep-15 7:41
professionalphinq19105-Sep-15 7:41 
GeneralRe: Use cutter for cut an image(.svg) with a definition layout image by winform (C#) Pin
Dave Kreskowiak5-Sep-15 10:52
mveDave Kreskowiak5-Sep-15 10:52 
Questioncant send key stroke only to Word Through my program that use KeyboardHook Pin
goldsoft4-Sep-15 4:30
goldsoft4-Sep-15 4:30 
AnswerRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
Eddy Vluggen4-Sep-15 4:45
professionalEddy Vluggen4-Sep-15 4:45 
GeneralRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
goldsoft5-Sep-15 0:10
goldsoft5-Sep-15 0:10 
AnswerRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
Dave Kreskowiak4-Sep-15 5:21
mveDave Kreskowiak4-Sep-15 5:21 
GeneralRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
goldsoft4-Sep-15 6:16
goldsoft4-Sep-15 6:16 
GeneralRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
Eddy Vluggen4-Sep-15 7:00
professionalEddy Vluggen4-Sep-15 7:00 
GeneralRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
goldsoft4-Sep-15 21:35
goldsoft4-Sep-15 21:35 
GeneralRe: cant send key stroke only to Word Through my program that use KeyboardHook Pin
Eddy Vluggen5-Sep-15 0:45
professionalEddy Vluggen5-Sep-15 0:45 
QuestionC# Active Directory Pin
Vuyo884-Sep-15 0:47
Vuyo884-Sep-15 0:47 
AnswerRe: C# Active Directory Pin
Pete O'Hanlon4-Sep-15 0:58
mvePete O'Hanlon4-Sep-15 0:58 
AnswerRe: C# Active Directory Pin
Ravi Bhavnani4-Sep-15 7:25
professionalRavi Bhavnani4-Sep-15 7:25 
QuestionReceives a question mark when trying to see active window open in my program Pin
goldsoft3-Sep-15 21:59
goldsoft3-Sep-15 21:59 
AnswerRe: Receives a question mark when trying to see active window open in my program Pin
Eddy Vluggen3-Sep-15 23:15
professionalEddy Vluggen3-Sep-15 23:15 

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.