wpf 根据dataTable 自动创建报表显示数据,主要运用DynamicDataDisplay

本文介绍了如何在WPF应用中利用DynamicDataDisplay库动态地根据DataTable内容生成报表展示数据,详细阐述了引用库和前台代码实现的步骤。
摘要由CSDN通过智能技术生成

在项目运行之前添加对DynamicDataDisplay.dll的引用

1 前台代码

<Window x:Class="WpfDataToReport"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
    Title="WpfDataToReport" Height="400" Width="600"   WindowState="Maximized"   WindowStartupLocation="CenterScreen"   Loaded="Window_Loaded">


    <Grid>
        <d3:ChartPlotter Name="plotter"  >
            <d3:ChartPlotter.HorizontalAxis>
                <d3:HorizontalDateTimeAxis Name="dateAxis" />
            </d3:ChartPlotter.HorizontalAxis>
            <d3:ChartPlotter.VerticalAxis>
                <d3:VerticalIntegerAxis Name="countAxis" />
            </d3
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值