I'm using this code to print form, but I want the printpreviewdialog
to start in maximized state, how can I do this ??
I fined this code on another post here in the site :
DirectCast(PrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized
but I'm not using the control PrintPreviewDialog1
so please help.
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.PrinterSettings.DefaultPageSettings.Margins = New Printing.Margins(0, 0, 0, 0)
PrintForm1.Print()