Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
Questionproblems about how to cancel auto play from an application Pin
smilefishcc10-Sep-09 23:45
smilefishcc10-Sep-09 23:45 
AnswerRe: problems about how to cancel auto play from an application Pin
stancrm10-Sep-09 23:48
stancrm10-Sep-09 23:48 
QuestionRe: problems about how to cancel auto play from an application [modified] Pin
smilefishcc11-Sep-09 0:17
smilefishcc11-Sep-09 0:17 
QuestionNetwork speed limitation Pin
DeOiD10-Sep-09 23:43
DeOiD10-Sep-09 23:43 
QuestionCasting byte arrays to structures in C# [modified] Pin
User 571134810-Sep-09 23:29
User 571134810-Sep-09 23:29 
AnswerRe: Casting byte arrays to structures in C# Pin
Luc Pattyn10-Sep-09 23:38
sitebuilderLuc Pattyn10-Sep-09 23:38 
AnswerRe: Casting byte arrays to structures in C# Pin
PIEBALDconsult11-Sep-09 4:30
mvePIEBALDconsult11-Sep-09 4:30 
QuestionCrystal report subreport error... Pin
The_Collector10-Sep-09 23:21
The_Collector10-Sep-09 23:21 
I'm currently using VS2005 Crystal report... I cant pass the parameter from Main report to its sub report.... it always encounter an error "@pParameter" value expected

I can successfully display a crystal report with parameters but it will fail when it involves subreports.... I don't understand also why I cant display the above parameter but i noticed it runs successfully because it will display the expected output...

hope to here some1 who can share thier ideas..

Thank you

below is the code:

string reportName = Session["ReportName"].ToString();
            string reportDate = Session["ReportDate"].ToString();
            string reportType = Session["ReportType"].ToString();

            rpt.Load(Server.MapPath("~/Reports/" + reportName.ToString()));

            crConnectionInfo.ServerName = Session["MyServer"].ToString();
            crConnectionInfo.DatabaseName = Session["myDatabase"].ToString();
            crConnectionInfo.UserID = "myUser";
            crConnectionInfo.Password = "myPassword";

            crDatabase = rpt.Database;
            crTables = crDatabase.Tables;


CrystalReportViewer1.ReportSource = rpt;

            ParameterDiscreteValue discreteBranch = new ParameterDiscreteValue();
            ParameterFields paramFields = new ParameterFields();
           
            ParameterDiscreteValue paramDiscreteBranch = new ParameterDiscreteValue();
            ParameterField paramFieldBranch = new ParameterField();
            paramFieldBranch.Name = "@pBranchCode";
            paramDiscreteBranch.Value = Session["branchCode"].ToString();
            paramFieldBranch.CurrentValues.Add(paramDiscreteBranch);
            paramFields.Add(paramFieldBranch);

            ParameterDiscreteValue paramDiscreteTranDate = new ParameterDiscreteValue();
            ParameterField paramFieldTranDate = new ParameterField();
            paramFieldTranDate.Name = "@pTransactionDate";
            paramDiscreteTranDate.Value = reportDate;
            paramFieldTranDate.CurrentValues.Add(paramDiscreteTranDate);
            paramFields.Add(paramFieldTranDate);

   CrystalReportViewer1.ParameterFieldInfo = paramFields;
           
            discreteBranch.Value = Session["branchName"].ToString();
            rpt.SetParameterValue("BranchName", discreteBranch);
            discreteBranch.Value = Session["branchaddress"].ToString();
            rpt.SetParameterValue("BranchAddress", discreteBranch);

xxx

AnswerRe: Crystal report subreport error... Pin
CoderForEver13-Sep-09 0:48
CoderForEver13-Sep-09 0:48 
GeneralRe: Crystal report subreport error... Pin
The_Collector13-Sep-09 16:46
The_Collector13-Sep-09 16:46 
Questionproblem in deployment Pin
gtag10-Sep-09 22:10
gtag10-Sep-09 22:10 
AnswerRe: problem in deployment Pin
minnie mouse11-Sep-09 16:59
minnie mouse11-Sep-09 16:59 
QuestionHow to connect to a website and retrieve the page in C#? Pin
sheateng10-Sep-09 22:00
sheateng10-Sep-09 22:00 
AnswerRe: How to connect to a website and retrieve the page in C#? Pin
Md. Marufuzzaman10-Sep-09 22:17
professionalMd. Marufuzzaman10-Sep-09 22:17 
AnswerRe: How to connect to a website and retrieve the page in C#? Pin
vivasaayi11-Sep-09 0:53
vivasaayi11-Sep-09 0:53 
GeneralRe: How to connect to a website and retrieve the page in C#? Pin
sheateng27-Sep-09 21:43
sheateng27-Sep-09 21:43 
GeneralRe: How to connect to a website and retrieve the page in C#? Pin
vivasaayi28-Sep-09 3:52
vivasaayi28-Sep-09 3:52 
AnswerRe: How to connect to a website and retrieve the page in C#? [modified] Pin
April Fans21-Sep-09 17:09
April Fans21-Sep-09 17:09 
QuestionExcel interop issue Pin
manustone10-Sep-09 21:33
manustone10-Sep-09 21:33 
QuestionCurrent directory problem in MDI container form Pin
mutpan10-Sep-09 20:58
mutpan10-Sep-09 20:58 
AnswerRe: Current directory problem in MDI container form Pin
Christian Graus10-Sep-09 21:03
protectorChristian Graus10-Sep-09 21:03 
GeneralRe: Current directory problem in MDI container form Pin
Lyon Sun11-Sep-09 1:55
Lyon Sun11-Sep-09 1:55 
AnswerRe: Current directory problem in MDI container form [modified] Pin
April Fans21-Sep-09 17:06
April Fans21-Sep-09 17:06 
Questionaccess font colour paterns in ToolStripCombo box Along with name Pin
santosh_anu10-Sep-09 20:52
santosh_anu10-Sep-09 20:52 
AnswerRe: access font colour paterns in ToolStripCombo box Along with name Pin
Henry Minute11-Sep-09 0:05
Henry Minute11-Sep-09 0:05 

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.