【发布时间】: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