Form上面放一个TdxComponentPrinter,双击有对话框,点击Add,在弹出的对话框中选中你要打印的dxGrid,Ok后,在第一个对话框中会有一个dxComponentPrinter1Link1
代码中直接写
dxComponentPrinter1link1.Preview;
就可以了。
一个TdxComponentPrinter控件就够了,可以联多个dxGrid
///
还有不懂的自己看帮助
第三方控件Devexpress printing system v2.5
www.51delphi.com上面有下的
www.51delphi.com上面有下的
拉一个 TdxComponentPrinter dxComponentPrinter1放到form中,
在其中添一个ReportLink dxComponentPrinter1Link1,再是
dxComponentPrinter1Link1->Component = dxDBGrid1;
dxComponentPrinter1Link1->RebuildReport();
dxComponentPrinter1->Preview(1,dxComponentPrinter1Link1);
dxComponentPrinter1Link1->Component = NULL;
在其中添一个ReportLink dxComponentPrinter1Link1,再是
dxComponentPrinter1Link1->Component = dxDBGrid1;
dxComponentPrinter1Link1->RebuildReport();
dxComponentPrinter1->Preview(1,dxComponentPrinter1Link1);
dxComponentPrinter1Link1->Component = NULL;