4,816
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using System.IO;
private void PrintCrystalReports()
{
ReportDocument rd1 = new ReportDocument();
rd1.Load(System.Environment.CurrentDirectory + @"\1.rpt");
rd1.PrintToPrinter(1, false, 0, 0);
rd1.Dispose();
}