duheng
2025-02-17 204e56b0931a66d52381cda0b8998a000d17a3cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace HStation.ReportFile.SDK
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {
        public XtraForm1()
        {
            InitializeComponent();
            this.Load += Form1_Load;
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            // 创建 XtraReport1 实例
            XtraReport1 report = new XtraReport1();
 
            // 生成报表文档
            report.CreateDocument();
 
            // 将报表文档加载到 DocumentViewer 中
            documentViewer1.DocumentSource = report;
        }
    }
}