The dxdbgrid control has the print function.

Source: Internet
Author: User

 

Put a tdxcomponentprinter on the form, double-click a dialog box, and click Add. In the pop-up dialog box, select the dxgrid you want to print. After OK, A dxcomponentprinter1link1 is displayed in the first dialog box.

CodeWrite directly in
Dxcomponentprinter1link1. Preview;
You can.
One tdxcomponentprinter control is enough. Multiple dxgrids can be connected.
///////////////////////////////////
See Help for yourself if you are not familiar with it.

Third-party control devexpress printing system v2.5
Www.51delphi.com has the following

Pull a tdxcomponentprinter dxcomponentprinter1 and put it in form,
Add a reportlink dxcomponentprinter1link1, and then
Dxcomponentprinter1link1-> component = dxdbgrid1;
Dxcomponentprinter1link1-> rebuildreport ();
Dxcomponentprinter1-> Preview (1, dxcomponentprinter1link1 );
Dxcomponentprinter1link1-> component = NULL;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.