Click here to Skip to main content
14,484,189 members
   

C#

 
QuestionTo import .Doc file into rich text box in c# Pin
tanweer1-Sep-09 0:22
Membertanweer1-Sep-09 0:22 
AnswerRe: To import .Doc file into rich text box in c# Pin
Hristo-Bojilov1-Sep-09 0:25
MemberHristo-Bojilov1-Sep-09 0:25 
GeneralRe: To import .Doc file into rich text box in c# Pin
tanweer1-Sep-09 0:31
Membertanweer1-Sep-09 0:31 
GeneralRe: To import .Doc file into rich text box in c# [modified] Pin
Hristo-Bojilov1-Sep-09 0:43
MemberHristo-Bojilov1-Sep-09 0:43 
GeneralRe: To import .Doc file into rich text box in c# Pin
smshepard2-Sep-09 2:55
Membersmshepard2-Sep-09 2:55 
QuestionSlow in displaying Crystal report Pin
sharad Pyakurel31-Aug-09 23:59
Membersharad Pyakurel31-Aug-09 23:59 
AnswerRe: Slow in displaying Crystal report Pin
Jacobb Michael1-Sep-09 0:49
MemberJacobb Michael1-Sep-09 0:49 
GeneralRe: Slow in displaying Crystal report Pin
sharad Pyakurel1-Sep-09 1:21
Membersharad Pyakurel1-Sep-09 1:21 
I have used Oracle10g Database. Yes is retrieved by client side from server. This is windows application.

In my report In crystal report oracle Database is not connected. used Dataset and DataTable. my coding pattern is like this.

private void btnTestReceipt_Click(object sender, EventArgs e)
{
ReportDocument rptdmt=new ReportDocument();
DataTable dtr=GetDatas();
string ReportName = Application.StartupPath + "\\Reports\\rptCashReceiptPP.rpt";

rptdmt.Load(ReportName);
rptdmt.SetDataSource(dtr);
CrystalReportViewer.ReportSource = rptdmt;
}

private DataTable GetDatas()
{
StringBuilder sb=new StringBuilder();
sb.Append("SELECT *from TableName WHERE CONDITION");
DataTable dt=_con.ExecuteDataTable(sb.ToString());

DsDataSet.UserDataTable dtrep=new DsDataSet.UserDataTable(); //This is object of DataTable of Typed Dataset named DsDataset.

foreach(DataRow dr in dt.Rows)
{
dtrep.Rows.Add(dr.ItemArray);
}
dtrep.AcceptChanges();
return dtrep;
}
QuestionIndexers Question Pin
Programm3r31-Aug-09 23:49
MemberProgramm3r31-Aug-09 23:49 
AnswerRe: Indexers Question [modified] Pin
Keith Barrow1-Sep-09 0:01
professionalKeith Barrow1-Sep-09 0:01 
GeneralRe: Indexers Question Pin
Programm3r1-Sep-09 0:13
MemberProgramm3r1-Sep-09 0:13 
Questionhow to export table in my word document to xml Pin
dotgnu31-Aug-09 23:30
Memberdotgnu31-Aug-09 23:30 
AnswerRe: how to export table in my word document to xml Pin
Md. Marufuzzaman1-Sep-09 2:53
professionalMd. Marufuzzaman1-Sep-09 2:53 
QuestionSearch Active Directory Pin
Ferudun Atakan31-Aug-09 23:27
MemberFerudun Atakan31-Aug-09 23:27 
AnswerRe: Search Active Directory Pin
SeMartens31-Aug-09 23:28
MemberSeMartens31-Aug-09 23:28 
AnswerRe: Search Active Directory Pin
Arun Jacob31-Aug-09 23:46
MemberArun Jacob31-Aug-09 23:46 
Questionone click all records update datagridview Pin
cursedsw31-Aug-09 23:21
professionalcursedsw31-Aug-09 23:21 
AnswerRe: one click all records update datagridview Pin
Jacobb Michael31-Aug-09 23:34
MemberJacobb Michael31-Aug-09 23:34 
GeneralRe: one click all records update datagridview Pin
cursedsw31-Aug-09 23:42
professionalcursedsw31-Aug-09 23:42 
GeneralRe: one click all records update datagridview Pin
Jacobb Michael1-Sep-09 0:04
MemberJacobb Michael1-Sep-09 0:04 
GeneralRe: one click all records update datagridview Pin
cursedsw1-Sep-09 0:11
professionalcursedsw1-Sep-09 0:11 
Questionparameter in Event Handler Pin
Saiyed Alam31-Aug-09 23:13
MemberSaiyed Alam31-Aug-09 23:13 
AnswerRe: parameter in Event Handler Pin
Keith Barrow31-Aug-09 23:24
professionalKeith Barrow31-Aug-09 23:24 
GeneralRe: parameter in Event Handler Pin
Saiyed Alam31-Aug-09 23:43
MemberSaiyed Alam31-Aug-09 23:43 
AnswerRe: parameter in Event Handler Pin
Jacobb Michael31-Aug-09 23:26
MemberJacobb Michael31-Aug-09 23:26 

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.