locked
Why Same Data EveryTime???? Please Help RRS feed

  • Question

  • User36198180 posted

    Hello Friends,

    i am having a problem while using Crystal Report. 

    i have created one Report.aspx page. When it loads, it display a text box where user enter receipt number and  click show button. the receipt is generated successfully.

    The problem arises every time when user without unloading the page, enter new receipt number. The report show the same receipt for all other receipt numbers. The code is as follows

    ReportDocument doc = new ReportDocument();

    doc.Load(Server.MapPath("~/Reports/rptReceipt.rpt"));

    doc.SetParameterValue(0, tReceiptNo.Text);

    crvReceipt.ReportSource = doc;

    crvReceipt.RefershReport();

    Friday, January 10, 2014 12:08 PM

All replies

  • User-578610739 posted

    Hi,

    Please check that, are report "Save  with data"(menu: file-> save with data)  option ?

    if no, then open report and just f5 , in there check it ask every time reciept no. or not.

    Saturday, January 11, 2014 12:17 AM