2
我想在wpf瀏覽器應用程序中使用水晶報表。我想補充下列DLL中refenrence:wpf瀏覽器應用程序中的水晶報表(xbap)
**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>
我加入這行使用Crystal報表查看器:
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'
問題在哪裏?我一直呆在這裏直到有一天。天啊 ! 幫助我....請 WOT做使用水晶報告??????