hOW TO PASS A TEXTBOX VALUE FROM A WINDOWS FORM TO A CRYSTAL REPORT SECTION

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagarpattnayak
    New Member
    • Mar 2007
    • 2

    hOW TO PASS A TEXTBOX VALUE FROM A WINDOWS FORM TO A CRYSTAL REPORT SECTION

    Hi All
    Can anybody tell me the procedure to pass the text written in a textbox to a crystal report section. Please send me the complete code. I am new to crtstal report.
    Thanks and Regards
    Sagar
    Sun-Dew Solutions Kolkata
  • aspamit
    New Member
    • Jan 2007
    • 38

    #2
    Originally posted by sagarpattnayak
    Hi All
    Can anybody tell me the procedure to pass the text written in a textbox to a crystal report section. Please send me the complete code. I am new to crtstal report.
    Thanks and Regards
    Sagar
    Sun-Dew Solutions Kolkata

    Can u tell me what u exactly mean.

    Have u tried SetParameterVal ue?

    Comment

    • sagarpattnayak
      New Member
      • Mar 2007
      • 2

      #3
      Originally posted by aspamit
      Can u tell me what u exactly mean.

      Have u tried SetParameterVal ue?
      Yah Some body suggest me that. But I cant do it. Can u help me.

      Comment

      • aspamit
        New Member
        • Jan 2007
        • 38

        #4
        Originally posted by sagarpattnayak
        Yah Some body suggest me that. But I cant do it. Can u help me.

        When U r passing a query to crystal report at that time only set


        int masterId = Convert.ToInt32 (Request.QueryS tring["id"]);
        urReportName.Se tParameterValue ("masterId", masterId);

        (in ur case get value from TextBox rather taking from querystring)

        here u r finished with coding.

        Now in the crystal report,add parameter value.
        The parameter value name should b same as u specified in aspx.

        That's it.
        Let me know if u face any pro.
        Cheers...

        Comment

        Working...