Hello,
I hope to get support from this forum. I’m trying to use Devexpress Report in my App. I supply the Report with Objects created from the database. They work fine but when I change the datasource for the report at runtime, the report does not change/render the new report. It only renders the first report! I need help. It seems it does not refresh the reportviewer.
Secondly, when I run the application, it opens up two tabs in the browser instead of one! I also need help in this aspect.
Thank you
Adrian
Dear friends, once again I’m back seeking for your support. Alaa, thank you for your support but it seems my labor is in vain. It seems the reportviewer only loads the report under the asPxWebDocumentViewerWrapper1_LoadComplete!
I’ve tried to call the Update method in the ASPxWebDocumentViewerWrapper Class under the under the OpenReport Method but the behavior of unending loops still occurs.
I’ve reattached the sample project with a database file in the bin folder. Its a VistaDb File and the connection string can be changed in the WebConfig file. I hope you shall be able to reference several required DevExpress Libraries as I cannot attach them here because of the file size limitations.
I’m eagerly waiting for your support.
Thank you
Dear Nagabo,
I believe that there’s a mistake in my answers.
ASP.NET wrapped controls cannot be used directly in Wisej events, everything that uses an ASP.NET control has to be done inside the control’s event:load, preload, etc…
So you can either:
A- Put your code inside the wrapped ASP.NET life cycle events
B- Use a JavaScript based control.
Sadly, we can’t change how those type of controls work.
For more info you can go to this link here: https://docs.microsoft.com/en-us/previous-versions/aspnet/ms178472(v=vs.100)
HTH,
Alaa
Dear Alaa,
Thank you for your support.
Thanks
Hi Ngabo,
The sample you provided won’t work for us because it’s missing the DB file.
You can try adding a asPxWebDocumentViewerWrapper1.Update() or asPxWebDocumentViewerWrapper1.Refresh() to update or refresh your Report Viewer.
And for the “two tabs” issue, I couldn’t reproduce it, perhaps you’re using Application.Navigate() somewhere within your app?
HTH,
Alaa
Please login first to submit.