private void btnprint_Click(object sender, EventArgs e)
        {
            //报表路径
            string path = Application.StartupPath + "/FastReport/demo.frx";
            Report report = new FastReport.Report();
            report.Load(path);
    
            //设置参数
            report.SetParameterValue("ywh", "201811140001");
            //设置打印机
            report.PrintSettings.Printer = "Foxit Reader PDF Printer";
            //设置打印页码
            //report.PrintSettings.PageNumbers = "1-3";
            report.PrintSettings.PageNumbers = "1";

            //打印对话框
            report.PrintSettings.ShowDialog = false;

            //打印
            report.Print();

        }

 

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-12-14
  • 2021-05-15
  • 2021-09-22
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-02-28
相关资源
相似解决方案