Printing Active Child Form ( 2008)

Posted on 2011-05-03
Last Modified: 2012-05-11
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!!

Question by:transstates
    1 Comment
    LVL 10

    Accepted Solution


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now