Printing Active Child Form ( 2008)

Good Morning,

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:

With Me.PrintForm1
           .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")
           End Try
End With

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!!

Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.