Forum  General Visual ...  Announce It! ( ...  ReportViewer control - Temporary workaround for VWG SDK 6.2.3
Previous Previous
 
Next Next
New Post 5/11/2009 6:30 PM
  rdhatch
635 posts
1st Level Poster




Re: ReportViewer control - Temporary workaround for VWG SDK 6.2.3 
Modified By rdhatch  on 5/12/2009 7:54:35 AM)

Subreport Success!  I've been struggling with Subreports for the past 4-5 hours.  Finally, I have subreports working & automatically sharing the DataSet with the Parent report.

The biggest problem I had was the LocalReport.SubreportProcessing() Event would not fire.  So, when I added a DataSource to my subreport... I would always get an error.  Even though I verified the Parameter was being passed correctly & the subreport would run fine on its own.  I tried attaching listeners in every way I could to the SubreportProccesing event... and for the life of me, it wouldn't fire.  When all else fails, start cursing Microsoft, right?  I was to that point! 

Fortunately, I tried something different & it worked.  Here's the solution to get LocalReport.SubreportProcessing() to fire correctly for your subreports.  The listener needed to be attached MUCH later in the callstack.

AddHandler myReportViewer.HostedControlPreRender, AddressOf AspControlEventHandler

Private Sub AspControlEventHandler(ByVal sender As Object, ByVal e As Hosts.AspControlEventArgs)
     AddHandler myReportViewer.LocalReport.SubreportProcessing, AddressOf Me.LocalReport_SubreportProcessing
End Sub

Private Sub LocalReport_SubreportProcessing(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
    'Set Subreport DataSources here...
End Sub

Hope this helps!

Ryan


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 5/13/2009 3:52 PM
  palli
11189 posts
1st Level Poster




Re: ReportViewer control - Temporary workaround for VWG SDK 6.2.3 

Hi Ryan,

Thanks a lot for your valuable information on this subject.

I will keep this in a safe place and reference it when I finally get a chance to really use my own wrapper

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 8/19/2009 5:22 AM
  Ewans
464 posts
2nd Level Poster




Re: ReportViewer control - Temporary workaround for VWG SDK 6.2.3 

Hi

This no longer works in version 6.3.9. You get a java script error if you click on a report drill through or sort or attempt to rerun the report with different parameters by selecting within the report viewer control.

Not being able to run reports is a major issue for me

Regards

Ewan

 
New Post 8/21/2009 8:50 AM
  palli
11189 posts
1st Level Poster




Re: ReportViewer control - Temporary workaround for VWG SDK 6.2.3 

Hi Ewan,

Please consider if you can supply us with sample application containing report(s) that demonstrate the issue at hand.

Also, waiting for a response from you on the other thread for a confirmation if you tested this with the new 6.3.9 PatchTheme or not?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  ReportViewer control - Temporary workaround for VWG SDK 6.2.3
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS