locked
Response.writefile in Crystal Report -vb.net RRS feed

  • Question

  • User-1578974752 posted

    In my crystal report ,below code is not working showing error. I could open other reports with out any issue.The size of the report page is

     is 4.5*3.0

     Appreciate the Help

    Line: 6
    Error: Unable to get property 'PRM_ParserErrorDetails' of undefined or null reference

    "scriptTagAttributes 'scriptTagAttributes' is undefined"

    The report is saving to the below folder .but can not open.  

    Response.AppendHeader("Content-Disposition", ("attachment; filename=" + Path.GetFileName(String.Format("C:\inetpub\wwwroot\ABC\ABC\Reports\ABC\LabelDO({0}).pdf", Convert.ToString(search.Text), POno))))


      Response.WriteFile(String.Format("C:\inetpub\wwwroot\ABC\ABC\Reports\ABC\LabelDO({0}).pdf", Convert.ToString(search.Text), POno))

    Tuesday, April 2, 2019 2:36 AM

Answers

  • User-1578974752 posted

    Thanks Wei Zhang

    The issue was because , I placed the Button inside the update panel. Now I could open the report.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 2, 2019 5:20 AM

All replies

  • User-1174608757 posted

    Hi shsu,

    shsu

    Path.GetFileName(String.Format("C:\inetpub\wwwroot\ABC\ABC\Reports\ABC\LabelDO({0}).pdf", Convert.ToString(search.Text), POno))))

     

    According to your error message , it seems that you want change one  Crystal Report to pdf , so I hope that you could share details code about your application which you operate on your crystal report. Else could you please share which line has showed the  error about "scriptTagAttributes  is undefined". It will help us to solve your problem.

    Best Regards

    Wei 

    Tuesday, April 2, 2019 5:15 AM
  • User-1578974752 posted

    Thanks Wei Zhang

    The issue was because , I placed the Button inside the update panel. Now I could open the report.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 2, 2019 5:20 AM