解决方案 »

  1.   

    你设置的目标是fPrintDocument,最后却调用了report.Print(),而不是fPrintDocument.Print。
    就像给了张三钱包和清单,却让李四出去购物。
      

  2.   

    不对呀,fPrintDocument是window系统的打印设置,而report是要打印的内容。就比如说我给一个word文档打印,文档里不用说明要打印几张,只要在打印设置里选择打印的副本的张数就可以了呀,难道不是这样的吗?
      

  3.   

    XtraReport是一个第三方组件吧?
      

  4.   

    XtraReport是一个第三方组件,
    是dev的组件。
      

  5.   

    用Dev的ReportPrintTool类,例子:
    https://documentation.devexpress.com/#XtraReports/CustomDocument7066
      

  6.   

    @gomoku 没有设置打印张数的属性呀