Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
Questionuser name and password Pin
Mads1158-Jun-09 20:02
Mads1158-Jun-09 20:02 
AnswerRe: user name and password Pin
Abhijit Jana8-Jun-09 20:12
professionalAbhijit Jana8-Jun-09 20:12 
GeneralRe: user name and password Pin
Mads1158-Jun-09 20:18
Mads1158-Jun-09 20:18 
GeneralRe: user name and password Pin
saanj8-Jun-09 20:25
saanj8-Jun-09 20:25 
GeneralRe: user name and password Pin
Abhijit Jana8-Jun-09 20:39
professionalAbhijit Jana8-Jun-09 20:39 
AnswerRe: user name and password Pin
saanj8-Jun-09 20:15
saanj8-Jun-09 20:15 
QuestionMulti thread, one dialog form [modified] Pin
yunusdemiray8-Jun-09 20:02
yunusdemiray8-Jun-09 20:02 
QuestionCrystal Report Problem with multiple DataTables (It is urgent) Pin
sharad Pyakurel8-Jun-09 17:15
sharad Pyakurel8-Jun-09 17:15 
Hi,
I have CrystalActiveXReportViewerLib11_5.dll for my application. I have used a typed Dataset. In this DataSet there are two DataTables DataTable1 and DataTable2. DataTable1 is used for main report and DataTable2 is for SubReport. When i set DataSource for both DataTable i got a problem. For only one dataTable it is ok.
Any help for this problem is appreciated. It is urgent. My code is like this:

DataTable dtt1 = LoadDataTable();
DataTable dtt2 = LoadFriendDataTable();
CRAXDDRT.Application crxApp = new CRAXDDRT.Application();
CRAXDDRT.Report crxReport = new CRAXDDRT.Report();
crxReport = crxApp.OpenReport(Application.StartupPath+"\\rptHouseLandTaxLetter.rpt",null);


crxReport.Database.Tables[1].SetDataSource(dtt1, null);
//crxReport.Database.Tables[2].SetDataSource(dtt2, null); //error occurred here

this.crViewer.ReportSource = crReport;
this.crViewer.ViewReport();

private DataTable LoadDataTable()
{
CrystalReportTest1.DataSet1.DataTable1DataTable dtReport = new DataSet1.DataTable1DataTable();
foreach (DataRow dr in dt.Rows)
{
dtReport.Rows.Add(dr.ItemArray);
}
return dtReport;
}


private DataTable LoadFriendDataTable()
{
CrystalReportTest1.DataSet1.DataTable2DataTable frienddt = new DataSet1.DataTable2DataTable();
foreach (DataRow dr in dt.Rows)
{
frienddt.Rows.Add(dr.ItemArray);
}
return frienddt;
}

modified on Wednesday, June 10, 2009 12:59 AM

QuestionError of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1238-Jun-09 15:26
brandonwong1238-Jun-09 15:26 
AnswerRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
Christian Graus8-Jun-09 15:28
protectorChristian Graus8-Jun-09 15:28 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1238-Jun-09 18:28
brandonwong1238-Jun-09 18:28 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
N a v a n e e t h8-Jun-09 18:39
N a v a n e e t h8-Jun-09 18:39 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1238-Jun-09 19:01
brandonwong1238-Jun-09 19:01 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
Christian Graus8-Jun-09 19:02
protectorChristian Graus8-Jun-09 19:02 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1238-Jun-09 19:10
brandonwong1238-Jun-09 19:10 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
Christian Graus8-Jun-09 19:17
protectorChristian Graus8-Jun-09 19:17 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1239-Jun-09 6:24
brandonwong1239-Jun-09 6:24 
QuestionGet DataGridView ComboBox Column value?? Pin
jasper0188-Jun-09 15:07
jasper0188-Jun-09 15:07 
AnswerRe: Get DataGridView ComboBox Column value?? Pin
jayveebishie23-Oct-10 4:46
jayveebishie23-Oct-10 4:46 
QuestionSet an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 14:44
Jasmine Pomelo8-Jun-09 14:44 
GeneralRe: Set an arrays items to new strings Pin
jasper0188-Jun-09 15:16
jasper0188-Jun-09 15:16 
GeneralRe: Set an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 15:31
Jasmine Pomelo8-Jun-09 15:31 
Question'is' operator Pin
Member 10339078-Jun-09 11:27
Member 10339078-Jun-09 11:27 
AnswerRe: 'is' operator Pin
Christian Graus8-Jun-09 11:33
protectorChristian Graus8-Jun-09 11:33 
GeneralRe: 'is' operator Pin
Member 10339078-Jun-09 11:40
Member 10339078-Jun-09 11:40 

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.