wpf中如何使用Reportview???
发布网友
发布时间:2022-05-06 23:45
我来回答
共1个回答
热心网友
时间:2023-10-08 19:03
<Window x:Class="WpfApplication5.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:rw ="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
Title="MainWindow" Height="350" Width="525">
<Grid>
<wfi:WindowsFormsHost>
<rw:ReportViewer x:Name="reportViewer"/>
</wfi:WindowsFormsHost>
</Grid>
</Window>
百度经验地址:http://jingyan.baidu.com/article/c910274be09165cd361d2d8c.html
完整Demo:http://download.csdn.net/detail/lk13962517093/8474349