Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hello ,Pls help me ,How to retrieve image from database (sqlserver 2005) to imabe button?(Asp.net c#+) Pin
Calin Tatar23-Feb-09 0:39
Calin Tatar23-Feb-09 0:39 
Questionremote access to sql server 2000 Pin
H.R22-Feb-09 22:44
H.R22-Feb-09 22:44 
AnswerRe: remote access to sql server 2000 Pin
Vimalsoft(Pty) Ltd22-Feb-09 22:52
professionalVimalsoft(Pty) Ltd22-Feb-09 22:52 
AnswerRe: remote access to sql server 2000 Pin
yeminkyi22-Feb-09 22:57
yeminkyi22-Feb-09 22:57 
QuestionReporting Pin
yeminkyi22-Feb-09 22:44
yeminkyi22-Feb-09 22:44 
AnswerRe: Reporting Pin
yeminkyi22-Feb-09 22:47
yeminkyi22-Feb-09 22:47 
GeneralRe: Reporting Pin
Calin Tatar22-Feb-09 23:47
Calin Tatar22-Feb-09 23:47 
AnswerRe: Reporting Pin
Rafone23-Feb-09 1:25
Rafone23-Feb-09 1:25 
This code works....

private void toolStripButton1_Click_1(object sender, EventArgs e)
{

this.Cursor = Cursors.WaitCursor;

try
{
// Set Processing Mode

reportViewer1.ProcessingMode = ProcessingMode.Local;

// Set RDL file

reportViewer1.LocalReport.ReportPath = (Application.StartupPath + "\\reports\\trdReport.rdlc");

// Supply a DataTable corresponding to each report data source

reportViewer1.LocalReport.DataSources.Add(
new ReportDataSource("getTrends", LoadData()));

// Add the reportviewer to the form

reportViewer1.Dock = DockStyle.Fill;

// Process and render the report

reportViewer1.RefreshReport();
}
catch (Exception ex)
{
StreamWriter writer = new StreamWriter(logFile, true, System.Text.Encoding.ASCII);
writer.WriteLine(System.DateTime.Now);
writer.WriteLine("[generate report]");
writer.WriteLine("[generate report]");
writer.WriteLine(ex);
writer.WriteLine("\r");
writer.Close();
MessageBox.Show(ex.ToString());
//this.Close();
//System.Environment.Exit(0);
}


this.Cursor = Cursors.Default;

}


private DataTable LoadData()
{
// Load data from XML file
DataSet ds = new DataSet();
string myFilePath = (Application.StartupPath + "\\bin\\" + "trd.xml");
ds.ReadXml(myFilePath);
return ds.Tables[0];

}

tia
rafone

Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
QuestionHow to add reference to some com object in run time ? Pin
Yanshof22-Feb-09 22:42
Yanshof22-Feb-09 22:42 
AnswerRe: How to add reference to some com object in run time ? Pin
ABitSmart22-Feb-09 23:14
ABitSmart22-Feb-09 23:14 
Questiondetect mass storage devices Pin
Jassim Rahma22-Feb-09 21:57
Jassim Rahma22-Feb-09 21:57 
AnswerRe: detect mass storage devices Pin
Christian Graus22-Feb-09 21:58
protectorChristian Graus22-Feb-09 21:58 
GeneralRe: detect mass storage devices Pin
Jassim Rahma22-Feb-09 22:26
Jassim Rahma22-Feb-09 22:26 
QuestionA Question About MSMQ(Microsoft Message Queue) Pin
Jason_Shen22-Feb-09 21:45
Jason_Shen22-Feb-09 21:45 
AnswerRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jason_Shen23-Feb-09 2:25
Jason_Shen23-Feb-09 2:25 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jimmanuel23-Feb-09 3:35
Jimmanuel23-Feb-09 3:35 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jason_Shen23-Feb-09 6:10
Jason_Shen23-Feb-09 6:10 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jimmanuel23-Feb-09 6:58
Jimmanuel23-Feb-09 6:58 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jason_Shen23-Feb-09 15:30
Jason_Shen23-Feb-09 15:30 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jimmanuel23-Feb-09 16:05
Jimmanuel23-Feb-09 16:05 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jason_Shen23-Feb-09 16:26
Jason_Shen23-Feb-09 16:26 
GeneralRe: A Question About MSMQ(Microsoft Message Queue) Pin
Jimmanuel24-Feb-09 1:00
Jimmanuel24-Feb-09 1:00 
QuestionCrystal Pin
Stephen Lintott22-Feb-09 21:30
Stephen Lintott22-Feb-09 21:30 
Questionconnecting remote mysql database using c#.net Pin
dilip51422-Feb-09 20:04
dilip51422-Feb-09 20:04 
AnswerRe: connecting remote mysql database using c#.net Pin
dan!sh 22-Feb-09 20:11
professional dan!sh 22-Feb-09 20:11 

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.