Crystal Report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shanaj
    New Member
    • Jan 2007
    • 51

    #1

    Crystal Report

    I want to retrive datas to crystal report by selecting id from one combo and pwd from another combobox dynamically

    Please Help Me
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    What problem or error are you having with your project?

    Comment

    • markchimes
      New Member
      • Mar 2007
      • 9

      #3
      Hi Shanaji,

      Try this...

      Place this code where you call the report...
      RptParams RollParams = new RptParams(this) ;
      RollParams.Show Dialog();
      if (lSuccess)
      {
      RollsByFormClas s RollsByForm = new RollsByFormClas s(strFormula);
      RollsByForm.Sho w();
      }

      Place this code in your report form...
      if (strFormula != string.Empty)
      crReportDocumen t.DataDefinitio n.RecordSelecti onFormula = strFormula;

      strFormula contains all the parameters you want to pass to the report and completely replaces the scoping phrases in Crystal.

      eg: strFormula = "{Customer.Surn ame} = " + TextBox1.Text.T rim();

      cheers,
      Mark Chimes

      Originally posted by Shanaj
      I want to retrive datas to crystal report by selecting id from one combo and pwd from another combobox dynamically

      Please Help Me

      Comment

      Working...