日期:2014-05-19  浏览次数:20841 次

DevExpress.XtraPrinting.Preview 中的PrintBarManager的问题。
PrintBarManager里面有个Document   Map的按钮,点击它就会出来文档的分类试图,现在做一个报表,但是做出来,这个按钮确不在,是在不知道怎么整了,希望高手指教,谢了。

------解决方案--------------------
還不行?設置報表里控件的BookMark、BookMarkp屬性了嗎?我這邊測試可以顯示啊。

顯示報表代碼:
DevExpress.Utils.WaitDialogForm wg = new DevExpress.Utils.WaitDialogForm( " ");
XReport report = new XReport(textEdit1.Text.Trim());

FrmPrint frmPrint = new FrmPrint(report.PrintingSystem);
wg.Close();

report.CreateDocument();
frmPrint.ShowDialog();
frmPrint的構造函數:
DevExpress.XtraPrinting.PrintingSystem printingSystem;
public FrmPrint(DevExpress.XtraPrinting.PrintingSystem printingSystem)
{
// Required for Windows Form Designer support
InitializeComponent();
this.printingSystem = printingSystem;
printControl1.PrintingSystem = this.printingSystem;
// TODO: Add any constructor code after InitializeComponent call
//printControl1.PrintingSystem.PreviewFormEx.PrintControl.ExecCommand(DevExpress.XtraPrinting.PrintingSystemCommand.DocumentMap, new object[] { true });
}