【问题标题】:XtraReport DocumentViewer set report document programmaticallyXtraReport DocumentViewer 以编程方式设置报告文档
【发布时间】:2015-05-11 02:37:59
【问题描述】:

我正在使用 DevXpress 14。 我只想使用一个包含 DocumentVier 的表单名称“FrmViewer”来加载我想要的任何报告。 这是代码,数据源不为空(已调试),但消息是“文档不包含页面”。我想我错过了 documentViewer 开始打印的一些方法

public FrmViewer(PhieuNhap pn)
        {
            InitializeComponent();
            RptPhieuNhap rpt = new RptPhieuNhap();
            rpt.DataSource = pn.ChiTietPhieuNhap;
            rpt.nhacungcap.Value = pn.NhaCungCap.TenCC;
            rpt.sophieu.Value = pn.SoPhieu;    
            documentViewer1.PrintingSystem = rpt.PrintingSystem;

        }

【问题讨论】:

    标签: winforms xtrareport


    【解决方案1】:

    您很可能需要调用 rpt.CreateDocument();

    更多详情请看这里: https://www.devexpress.com/Support/Center/Question/Details/Q528191

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-15
      • 1970-01-01
      • 2018-06-23
      • 2018-04-14
      • 2011-05-02
      • 2013-02-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多