ListViewLink Class

A link to print the ListView control.

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v20.1.dll

Declaration

Remarks

Use the ListViewLink class to print the ListView control.

To do this, assign an existing ListView object to the ListViewLinkBase.ListView property, and then either call the ListViewLink.ShowPreview (ListViewLink.ShowPreviewDialog) method to preview a document, or the ListViewLink.Print (ListViewLink.PrintDlg) method to send it to a printer.

Examples

This example demonstrates how to create and display a Print Preview for the ListView control, via the ListViewLink.

PrintingLinks-ListView

using System;
using System.Windows.Forms;
using DevExpress.XtraPrintingLinks;
// ...

private void simpleButton1_Click(object sender, EventArgs e) {
    ListViewLink lwLink = new ListViewLink();
    lwLink.ListView = listView1;
    printingSystem1.Links.Add(lwLink);
    lwLink.ShowPreviewDialog();
}
See Also