【问题标题】:Crystal report in wpf Browser Application (xbap)wpf浏览器应用程序(xbap)中的水晶报表
【发布时间】:2014-01-10 09:56:32
【问题描述】:

我想在 wpf 浏览器应用程序中使用水晶报表。我在参考中添加了以下 dll:

  **SapBusinessObjects.WPf.Viewer
  SapBusinessObjects.WPf.ViewerShared**

xaml 文件是这样的:

     <UserControl x:Class="Report_UC"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
          xmlns:my="clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer"
         mc:Ignorable="d" 
         d:DesignHeight="800" d:DesignWidth="800">
<Grid>
    <my:CrystalReportsViewer Name="report"></my:CrystalReportsViewer>

</Grid>
</UserControl>

我添加此行以使用水晶报表查看器:

     xmlns:my="clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer"

但是当我按 F5 运行应用程序时,它会出现此错误:

     The tag 'CrystalReportsViewer' does not exist in XML namespace 'clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer'

问题出在哪里???我被困在这里直到有一天。天啊 ! 请帮帮我 怎么用水晶报表??????

【问题讨论】:

    标签: wpf crystal-reports xbap


    【解决方案1】:

    试试这个:

    右击项目点击属性。

    将目标框架 .NET Framework 4 Client Profile 更改为 .NET Framework 4

    这很可能是有效的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多