Click here to Skip to main content
14,543,676 members
   

C#

 
Questionuser name and password Pin
Mads1158-Jun-09 20:02
MemberMads1158-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
MemberMads1158-Jun-09 20:18 
GeneralRe: user name and password Pin
saanj8-Jun-09 20:25
Membersaanj8-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
Membersaanj8-Jun-09 20:15 
QuestionMulti thread, one dialog form [modified] Pin
yunusdemiray8-Jun-09 20:02
Memberyunusdemiray8-Jun-09 20:02 
QuestionCrystal Report Problem with multiple DataTables (It is urgent) Pin
sharad Pyakurel8-Jun-09 17:15
Membersharad 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
Memberbrandonwong1238-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
mveChristian 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
Memberbrandonwong1238-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
MemberN 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
Memberbrandonwong1238-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
mveChristian 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
Memberbrandonwong1238-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
mveChristian 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
Memberbrandonwong1239-Jun-09 6:24 
QuestionGet DataGridView ComboBox Column value?? Pin
jasper0188-Jun-09 15:07
Memberjasper0188-Jun-09 15:07 
AnswerRe: Get DataGridView ComboBox Column value?? Pin
jayveebishie23-Oct-10 4:46
Memberjayveebishie23-Oct-10 4:46 
QuestionSet an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 14:44
MemberJasmine Pomelo8-Jun-09 14:44 
GeneralRe: Set an arrays items to new strings Pin
jasper0188-Jun-09 15:16
Memberjasper0188-Jun-09 15:16 
GeneralRe: Set an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 15:31
MemberJasmine Pomelo8-Jun-09 15:31 
Question'is' operator Pin
Member 10339078-Jun-09 11:27
MemberMember 10339078-Jun-09 11:27 
AnswerRe: 'is' operator Pin
Christian Graus8-Jun-09 11:33
mveChristian Graus8-Jun-09 11:33 
GeneralRe: 'is' operator Pin
Member 10339078-Jun-09 11:40
MemberMember 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.