引用DLL : FastReport.dll
FastReport.Report sender = new FastReport.Report(); try { sender.Load("fastreport 编写的打印模板frx"); FastReport.Utils.Config.ReportSettings.ShowProgress = false; //设置不可预览模式 sender.PrintSettings.ShowDialog = false; // sender.Show(); sender.Print(); } catch (Exception ex) { return false; } finally { sender.Dispose(); }