I have an MDI form that display a child form. What I want to do is print the child form without the the boarder of the mdi form and in the cneter of the page? I've tried so many different ways and none have worked for me. Any ideas at all?
The lastest code I tried was this:
.PrinterSettings.DefaultPageSettings.Landscape = True
.Form = Me.ActiveMdiChild
.PrintAction = System.Drawing.Printing.PrintAction.PrintToPreview
PrintForm1.PrintAction = Printing.PrintAction.PrintToPrinter
Catch ex As Exception
MsgBox("A window must be displayed to print")
This code will show both the mdi form and the active child. In some cases the child form is cut off. I can't seem to center it on the page.
Thanks in advance all!!