La Web del Programador: Comunidad de Programadores
 
    Pregunta:  62829 - IMPRIMIR LISTVIEW CON C#
Autor:  Ezequiel Gonzalez
por favor necesito ayuda, como imprimo un listview con c#

  Respuesta:  Danae Skalari
Font printFont;
Bitmap bitmap;
public void PrintAString(Bitmap data)
{
PrintDocument pd = new PrintDocument();
printFont = new Font("Arial", 12);
pd.PrintPage += new PrintPageEventHandler(PrintPage);
pd.DefaultPageSettings.Landscape = true;
pd.Print();
}

private void PrintPage(object sender, PrintPageEventArgs e)
{
bitmap = new Bitmap(this.listView2.Width, this.listView2.Height);
listView2.DrawToBitmap(bitmap, this.listView2.ClientRectangle);
e.Graphics.DrawImage(bitmap, new Point(70, 70));
}

private void imprimirToolStripMenuItem_Click(object sender, EventArgs e)
{
PrintAString(bitmap);
}