Is there an ETA for when this will be available?
I can start converting my VWG projects then
Thanks
Ewan
Hi Ewan and Dino,
The AspNetWrapper extension is ready and will be uploaded with source code in the extensions page on Tuesday. I will also upload a small sample Wisej application that defines a AspNetReportViewer wrapped control and uses it connecting with a test db we have using AdventureWorks.
The AspNetWrapper generic base class allows you to wrap most if not all AspNet controls quite easily:
public class AspNetReportViewer : AspNetWrapper<ReportViewer> { // Add properties and events specific to the control protected override void OnInit(EventArgs e) { var viewer = this.WrappedControl; // <- it's already typed. // Initialize the viewer. } }
Best,
Luca
You might find this useful.
This code limits what export formats you can use for a report. EG If you export a matrix report to csv format it deconstructs the matrix! (Bug with reporting services)
Stick the code in the OnInit section of the AspNetExtension.
//Restrict report export options
FieldInfo info;
foreach (RenderingExtension extension in viewer.ServerReport.ListRenderingExtensions())
{
info = extension.GetType().GetField(“m_isVisible”, BindingFlags.Instance | BindingFlags.NonPublic);
if (extension.Name == “EXCELOPENXML” || extension.Name == “PDF”)
{
info.SetValue(extension, true);
}
else
{
info.SetValue(extension, false);
}
}
NB there are some hidden options if you enable EXCEL you get Excel 2003 output format, to see them all set everything to true.
Hope this helps
Ewan
Hello all,
excellent work on the product so far.
The biggest drawback on moving from VWG is ReportViewer control, any feedback when could this be available, or is there a way to make it work using ASP Wrapper control ?
Thank you,
DiNo
Hi Ewan,
I don’t have an ETA yet. I will keep you updated as soon as there is any advance on that front.
Best
Luca