Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11212

Re: WPF Viewer 13.0.4 to 13.0.5 Differences

$
0
0

Thanks very much for this post. I have a set up that allows me to select the data, filters, and report in one window and send the output to another, leaving both open.  It allows me to repeatedly tweak the selections view the report efficiently.  This process worked great in 13.0.4, but broke in 13.0.5.  I could not even get a start on a fix until I saw this post.

 

My application is in VB.Net, so I thought I would share your solution, as it unfolded for me.

 

After importing System.Reflection:


CRViewer.Visibility = Visibility.Hidden

CRViewer.ViewerCore.ReportSource = CRActions.MyCRep


'From http://scn.sap.com/thread/3299522

'Where 'CRViewer' is the WPF Crystal Reports viewer. I'm effectively re-creating the disposed tool tip.


Dim ViewerMyType AsType = GetType(Viewer.DocumentView)

Dim tooltipField As FieldInfo = ViewerMyType.GetField("m_tooltip", (BindingFlags.Instance OrBindingFlags.NonPublic))


If (Not (tooltipField) Is Nothing) Then

     Dim reportAlbumField As FieldInfo = GetType(Viewer.ViewerCore).GetField("reportAlbum", (BindingFlags.Instance OrBindingFlags.NonPublic))

     If (Not (reportAlbumField) IsNothing) Then

          Dim currentView As Viewer.DocumentView = CType(reportAlbumField.GetValue(CRViewer.ViewerCore), Viewer.ReportAlbum).ReportViews(0)

          If (tooltipField.GetValue(currentView) Is Nothing) Then

                tooltipField.SetValue(currentView, New System.Windows.Controls.ToolTip)

          End If

     End If

End If


CRViewer.Visibility = Windows.Visibility.Visible

 

 

 

 

Again, Thanks!

 

Ralph


Viewing all articles
Browse latest Browse all 11212

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>