Ciao,
tempo fa ho creato una classe di stampa per una winapp (prendendo come spunto l'articolo che ho visto qui su dotnethell: http://www.dotnethell.it/articles/PrintWindowsForms.aspx),
il fatto è che devo fare la migrazione su una applicazione web.. ma in questa classe uso come parametro per la funzione di stampa un oggetto "System.Drawing.Printing.PrintPageEventArgs".. ho provato in tutti i modi ma NON SO COME INIZIALIZARLO dato che vuole come parametro per il costruttore:
Dim graphics As Graphics ' The Graphics used to paint the item
Dim marginBounds As Rectangle ' The area between the margins
Dim pageBounds As Rectangle ' The total area of the paper
Dim pageSettings As PageSettings ' The PageSettings for the page
Dim instance As New PrintPageEventArgs(graphics, _
marginBounds, pageBounds, pageSettings)
Qualcuno sa quali siano le proprietà da assegnare a questi oggetti?
GRAZIE