tengo el siguiente codigo q funciona en proyecto
system.windows.forms pero no funciona en un proyecto web
porq no carga el dll correspondiente.
////////////////////////////////////////
private void lbImpresion_Click(object sender,
System.EventArgs e)
{
try
{
// Assumes the default printer.
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandle
(this.pd_PrintPage);
pd.Print();
}
catch(Exception ex)
{
}
}
}
private void pd_PrintPage(object sender,
PrintPageEventArgs ev)
{
// Draw a picture.
ev.Graphics.DrawImage(System.Drawing.Image.FromFile
("C:\\MyFile.bmp"), ev.Graphics.VisibleClipBounds);
// Indicate that this is the last page to print.
ev.HasMorePages = false;
}
///////////////////////////////////////////
como podria hacer para que funcione este codigo en mi
proyecto web.
Leer las respuestas