Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: StreamReader timeout? Pin
Dave Kreskowiak2-Jan-06 16:52
mveDave Kreskowiak2-Jan-06 16:52 
GeneralRe: StreamReader timeout? Pin
Ravi Bhavnani2-Jan-06 16:56
professionalRavi Bhavnani2-Jan-06 16:56 
QuestionExecute shell command in c# Pin
jbu202-Jan-06 7:01
jbu202-Jan-06 7:01 
AnswerRe: Execute shell command in c# Pin
Ravi Bhavnani2-Jan-06 9:40
professionalRavi Bhavnani2-Jan-06 9:40 
QuestionCustomizing A Setup Project Pin
TofuBug242-Jan-06 6:15
TofuBug242-Jan-06 6:15 
AnswerRe: Customizing A Setup Project Pin
S. Akif Kamal2-Jan-06 19:46
S. Akif Kamal2-Jan-06 19:46 
GeneralRe: Customizing A Setup Project Pin
TofuBug244-Jan-06 21:30
TofuBug244-Jan-06 21:30 
QuestionProblems with crystal report in vs2005? Pin
Joseph Robert2-Jan-06 5:45
Joseph Robert2-Jan-06 5:45 
Hi, happy new year!
For me it is not starting very well, with VS2005 at least.
I have been using crystal report form vb6 up to now, not because I like it, in fact I don't, too many bugs. But now with VS2005 I believe it is worse!!
I wrote a class in VS2003 that can be called to preview and generate reports. When I had to move to VS2005 (big sigh!!) in december last, I tried to re-used that class. I converted it fine, until I write a report using parameters.
The class I used in the previous version of VS were working fine up to now.
With this actual version of Crystal report It seems to me that the parameters are not transferred to crystal report.
Below is one of the overloaded proc that I use. When compiled it generates no errors but when the report is loaded crystal keeps on prompting for the parameters. Could any one figure out what is wrong.
Thanks to help.


public void ReportON (string ReportName,string ParameterName1,string ParameterName2,
string ParameterValue1,Single ParameterValue2)
{
string repToload=null;
try
{
this.Cursor=Cursors.WaitCursor;
repToload = ReportLoc + ReportName;
reportDocument1.Load (repToload,CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);
}
catch
{
MessageBox.Show ("Report template missing." + "\n"
+ "You need to run setup again to repair the installation.","Report Viewer",MessageBoxButtons.OK,MessageBoxIcon.Error);
this.Cursor=Cursors.Default;
return;

}
SQLcnx.ConnectionString = DBconnect.connection;

#region reset login info (overiding of crystal local server login)
CrystalDecisions.CrystalReports.Engine.Table CurrentTable;
CrystalDecisions.Shared.TableLogOnInfo CurrentLogin;

reportDocument1.Load (repToload,CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);

CurrentTable = reportDocument1.Database.Tables[0];

CurrentLogin = CurrentTable.LogOnInfo;
CurrentLogin.ConnectionInfo.ServerName = DBconnect.ServerName;
CurrentLogin.ConnectionInfo.UserID = Registry.CurrentUser.OpenSubKey("GreenWorm\\PRMS\\Data").GetValue("accName").ToString();
CurrentLogin.ConnectionInfo.Password = Registry.CurrentUser.OpenSubKey("GreenWorm\\PRMS\\Data").GetValue("passWord").ToString();
CurrentLogin.ConnectionInfo.DatabaseName = "PRMSdb";

CurrentTable.ApplyLogOnInfo(CurrentLogin);

#endregion

reportDocument1.SetParameterValue (ParameterName1,ParameterValue1);
reportDocument1.SetParameterValue (ParameterName2,ParameterValue2);

SQLdataAdapter.Fill(repDataset);
reportDocument1.SetDataSource (repDataset);
crystalReportViewer1.ReportSource = reportDocument1;

this.Show();

this.Cursor=Cursors.Default;
}


Joseph Robert
QuestionFinding the changed subkey under a particular registrykey Pin
rakesh_nits2-Jan-06 4:04
rakesh_nits2-Jan-06 4:04 
QuestionSecurity Exception Pin
zt.Prog2-Jan-06 2:09
zt.Prog2-Jan-06 2:09 
AnswerRe: Security Exception Pin
Colin Angus Mackay2-Jan-06 4:14
Colin Angus Mackay2-Jan-06 4:14 
QuestionEmail Notification Pin
MalikRizwan2-Jan-06 1:10
MalikRizwan2-Jan-06 1:10 
AnswerRe: Email Notification Pin
PrakashBhaskar2-Jan-06 1:23
PrakashBhaskar2-Jan-06 1:23 
GeneralRe: Email Notification Pin
MalikRizwan2-Jan-06 1:36
MalikRizwan2-Jan-06 1:36 
GeneralRe: Email Notification Pin
PrakashBhaskar2-Jan-06 1:41
PrakashBhaskar2-Jan-06 1:41 
GeneralRe: Email Notification Pin
MalikRizwan2-Jan-06 1:46
MalikRizwan2-Jan-06 1:46 
GeneralRe: Email Notification Pin
PrakashBhaskar2-Jan-06 1:53
PrakashBhaskar2-Jan-06 1:53 
GeneralRe: Email Notification Pin
MalikRizwan2-Jan-06 2:03
MalikRizwan2-Jan-06 2:03 
AnswerRe: Email Notification Pin
S. Senthil Kumar2-Jan-06 4:19
S. Senthil Kumar2-Jan-06 4:19 
QuestionReading Config File in .Net 2.0 Pin
rnvrnv2-Jan-06 1:06
rnvrnv2-Jan-06 1:06 
AnswerRe: Reading Config File in .Net 2.0 Pin
Guffa2-Jan-06 1:17
Guffa2-Jan-06 1:17 
GeneralRe: Reading Config File in .Net 2.0 Pin
rnvrnv2-Jan-06 1:24
rnvrnv2-Jan-06 1:24 
AnswerRe: Reading Config File in .Net 2.0 Pin
Guffa2-Jan-06 2:51
Guffa2-Jan-06 2:51 
GeneralRe: Reading Config File in .Net 2.0 Pin
rnvrnv2-Jan-06 4:38
rnvrnv2-Jan-06 4:38 
GeneralRe: Reading Config File in .Net 2.0 Pin
Guffa2-Jan-06 4:55
Guffa2-Jan-06 4:55 

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.