Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
QuestionWMI Pin
moein.serpico10-Sep-09 23:57
moein.serpico10-Sep-09 23:57 
AnswerRe: WMI Pin
dan!sh 11-Sep-09 0:19
professional dan!sh 11-Sep-09 0:19 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:29
moein.serpico11-Sep-09 0:29 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:34
Henry Minute11-Sep-09 0:34 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:38
moein.serpico11-Sep-09 0:38 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:47
Henry Minute11-Sep-09 0:47 
GeneralRe: WMI Pin
moein.serpico11-Sep-09 1:52
moein.serpico11-Sep-09 1:52 
GeneralRe: WMI Pin
stancrm11-Sep-09 0:36
stancrm11-Sep-09 0:36 
GeneralRe: WMI Pin
Dave Kreskowiak11-Sep-09 4:19
mveDave Kreskowiak11-Sep-09 4:19 
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 

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.