It appears you need to compile the code in the extension and add the resulting DLL into the WiseJ Bin Folder where the other extensions reside.
You then add a reference to the DLL to your project as well as a reference to Microsoft.Reporting.WebForms.
Could we have an example of Report Viewer Wrapped using this new extension?
I have attached my VWG version of wrapped Report Viewer.
Many Thanks
Hi Ewan,
Try the attached sample. It shows how to wrap the ReportViewer and in general the flexibility of this extension.
Best,
Luca
Hi Ewan,
The issue is fixed in the current build, will be online later on today. The problem was that sometimes the thread firing BeginRequest is different from the thread executing the request in AspNet.
Our tests now work perfectly, elimiated also the refresh when resizing problem.
Best,
Luca
Hi Ewan,
the base class AspNetControl is not a UserControl and has the attribute [ToolboxItem(false)].
So derived components to appear in the toolbox must have the attribute [ToolboxItem(true)] and may have to be added to the toolbox.
Hope that helps.
Best regards
Frank
Hi,All.
Late to the party, but I’m starting to convert some VWG apps that use ReportViewer to WiseJ. Most important, also trying to convert a Winforms app that uses C1.Flexgrid…
So would anyone be willing to provide simple but fully working example, or at least a production code sample that would speed up the process for me.
If I can get these working in WiseJ, I will contribute my converted VWG reporting functionality that parses the report RDL file and dynamically creates and fills parameter controls and main report datasets without having to hard code anything.
Basically a generic local mode reporting control that replaces the parameter panel in a server based report.
Thanks
Geoff Sorensen
Hi guys,
Can I ask/suggest to reconsider the order of answers to a support forum thread? With the pushing upwards of the “great answers”, “best answer” etc, it becomes impossible to follow the flow, at least form me, i.e. somebody who was not involved in the conversation from start, so I haven’t seen the answers before. In the present thread, the answer dates are ordered: November 9/9/14/10/18/18/17/15/15/15/11/10 … With the final being somewhere in the middle and the best answer being on top, which, however was not the final.
Best,
Alex
Hi Ewan,
See attached modified sample. The control now has an IsLoading property and fires the event IsLoadingChanged. The code is simple but tricky because the viewer runs inside a frame. I also added a fun animation to test the IsLoadingChanged event.
http://demo.wisej.com/apps/reportviewer.html
The code in the sample shows how to add all sorts of events and properties.
Best,
Luca
Hi Luca
I have added a script to the ScriptManager to capture the isLoading event from the report Viewer client api by making use of the WrappedControl.ID
How do I fire an event back to C# when isLoading is false in such a way that I can raise an event in C# to indicate Rendering is complete?
(See the attachment on my original post to see how it was dome in VWG)
Thanks for your help
Ewan
Hi Luca
If you have a long running report you still get the session timeout message, presumably because you are not interacting with the Iframe just waiting for the report to complete. (Using AysncRendering)
Thanks for your help
Ewan
Hi Luca
Were changes made Wise.Web to support this as I get this error now in the Iframe
See attached
Ewan
Hi Ewan,
I have attached the revised sample application.
The latest AspNetWrapper class already exposes the ScriptManager object. You can use to set any parameter including AsyncPostBackTimeout.
Best,
Luca
Hi Luca
Thank you for sorting this out.
One more suggestion: It work be good to expose some of the script manager properties in the ASP net wrapper such as
AsyncPostBackTimeout
as this needs to be set for long running reports in order for them to not time out.
Thanks for your help
Ewan
Hi Luca
Having tested your example with some of my server reports I have noticed the following:
So it appears that something is preventing report viewer from running independently (I have set AsyncRendering to true).
These issues were not present in the VWG wrapper.
This issue seems to be, having looked into this further that OnInit is not firing reliably.
Thanks for your help
Ewan
Hi Luca
Just one further question how do you add user controls to the design surface or window?
In VWG once the project had been compiled they were listed in the toolbox.
Thanks for your help
Ewan