WPF CrystalReports:如何轮换报告?

时间:2017-08-22 11:58:17

标签: c# wpf xaml crystal-reports rotation

我有一个带有水晶报告wpf控件的wpf应用程序

<sap:CrystalReportsViewer
   Name="crystalReportsViewer"
   Width="auto"
   Height="auto"
   HorizontalAlignment="Center"
   VerticalAlignment="Center"
   ShowPrevPageButton="False"
   ShowStatusbar="False"
   ShowToolbar="False"
   SourceUpdated="crystalReportsViewer_SourceUpdated"
   TargetUpdated="crystalReportsViewer_TargetUpdated"
   ToggleSidePanel="None" />

现在我要旋转报告。据我所知,wpf控件中没有内置函数。

这就是我的解决方案如下所示的原因:

crystalReportsViewer.ViewerCore.LayoutTransform = new RotateTransform(90);

这里的问题是我只能执行一次旋转,第二次旋转失败。这也意味着我无法回到起始位置...任何想法?

0 个答案:

没有答案