一聚教程网:一个值得你收藏的教程网站

热门教程

winform使用水晶报表的例子

时间:2022-07-02 11:32:25 编辑:袖梨 来源:一聚教程网

///Form文件
namespace SimpleApp
{
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.WinForms;
using System.Data;
public class SimpleForm : System.WinForms.Form
{
    private System.ComponentModel.Container components;
    private System.WinForms.Button btnSelectReport;    
    private SeagateSoftware.WinForms.CrystalReportViewer crystalReportViewer1;
    public SimpleForm()
    {
        //
        // Required for Win Form Designer support
        //
        InitializeComponent();
        EnableViewer(false);
    }
    public override void Dispose()
    {
        base.Dispose();
        components.Dispose();
    }
    private void InitializeComponent()
    {
        this.components = new System.ComponentModel.Container();
        this.crystalReportViewer1 = new SeagateSoftware.WinForms.CrystalReportViewer();

热门栏目