crystalreportviewer and AJAX 1.0

Last post 06-26-2008 6:34 PM by vicpal25. 3 replies.

Sort Posts:

  • crystalreportviewer and AJAX 1.0

    03-22-2007, 11:15 AM
    • Loading...
    • NickDanger
    • Joined on 03-01-2007, 2:13 PM
    • Posts 1
      New to the forum (and programming in general) so I may have missed a post on this elsewhere.

     I have an asp.net 2.0 page with a CrystalReportViewer and several CrystalReportSource sources. I have set the sources to several reports that have different selection parameters. I then used a RadioButtonList to change the reportsourceID for the viewer.

    Everything works fine until I wrap the button list and the viewer in an updatepanel. The export, print, and calender buttons no longer work in the viewer. 

    If I wrap the updatepanel around just the viewer, the calendar buttons work but the export and print buttons still don't work. 

    Is there a work around for this or does AJAX not support the CrystalReportViewer?

     
    Better to remain silent and be thought a fool than to speak out and remove all doubt.
    ~Abraham Lincoln~
  • Re: crystalreportviewer and AJAX 1.0

    03-23-2007, 10:13 AM
    • Loading...
    • mdenn
    • Joined on 04-13-2006, 4:28 PM
    • Posts 453
    It may not work with the UpdatePanel.  I know that the ReportViewer that we used for SQL reports didn't work unless there was a full postback instead of an asynchronous postback.  You may want to set a trigger for the updatepanel using a PostBackTrigger and see if that helps.  You won't be able to get the Ajax functionality if you set it to do a full post back though.  I head that the ReportViewer should be supported eventually...
  • Re: crystalreportviewer and AJAX 1.0

    06-26-2008, 5:41 PM
    • Loading...
    • tjdowns2002
    • Joined on 06-26-2008, 9:25 PM
    • Posts 1

     The CrystalReportViewer control will not print or export in an AJAX update panel because of the javascript it uses to generate the prompts.  I also ran into this issue and to work around it I added the report viewer to a seperate form and put an iFrame in the update panel and set it to runat the server.  On the async postback that affects the update panel the iFrame is in set the src attribute to the report page.  You can use javascript or store the report data in cache if you want to display something while it's generating.  Hope this helps anyone else that has had this issue.

  • Re: crystalreportviewer and AJAX 1.0

    06-26-2008, 6:34 PM
    • Loading...
    • vicpal25
    • Joined on 03-08-2006, 11:33 PM
    • Posts 376

     I had the same issue using the ReportViewer control nested inside the UpdatePanel. Try this, it worked for me:

     http://forums.asp.net/t/1044194.aspx

     

    Victor A. Palma
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter