Hi,
I want to know how to print a hidden form. I have try whit FormPrint, but the form must be visible and Focus.
I also try this :
But the form dont have to time to display completely before the print()... i have try whit Delay but this not work...
Someone can help me ?
Thank
I want to know how to print a hidden form. I have try whit FormPrint, but the form must be visible and Focus.
I also try this :
Code:
Dim form As Form1
form = New Form1(RMmain)
form.Show()
PrintForm.Form = form
PrintForm.PrinterSettings.DefaultPageSettings.Margins = New Margins(5, 5, 5, 5)
PrintForm.PrintAction = Printing.PrintAction.PrintToPrinter
PrintForm.PrinterSettings = Printer
PrintForm.Print()
form.Close()
Someone can help me ?
Thank