⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fmpreview.cs

📁 一个通讯录源码,用C#写的.挺不错的,大家可以参考看一下.
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using System.Data.Common;

namespace AddressList.Forms
{
    public partial class fmPreview : fmBaseForm
    {
        private fmPreview()
        {
            InitializeComponent();            
        }

        public fmPreview(string ReportFileName, DataSet dataSet)
        {
            InitializeComponent();
           
            string reportPath = Application.StartupPath + "\\Reports\\" + ReportFileName;
            reportDocument1.Load(reportPath);
            reportDocument1.SetDataSource(dataSet);
         
            cryReportViewer.ReportSource = reportDocument1;
        }

        public void PrintReport()
        {
            cryReportViewer.PrintReport();

        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -