Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Printing a form

I have an MDI child form that can be wider that the available area on the MDI parent form.

I need to print the MDI child form, but by using PrintForm, only the visible area is printed.

Does anyone know if I can print the MDI child form contents without having to scroll the MDI parent form, or how I can automatically scroll the MDI parent form to print the MDI child form using multiple PrintForm commands?
0
hairybarbarian
Asked:
hairybarbarian
1 Solution
 
mdouganCommented:
Are you issuing the PrintForm from a reference to the MDIParent or from the MDI Child?

If you say MDIForm1.PrintForm then you will only get the visible contents of the MDI parent form (assuming that it's name is MDIForm1)

But, if you say frmChild.Printform, then you should get then entire child form to print whether it is completely visible or not.  If not, then try setting the child form's AutoRedraw property to True.
0
 
DanRollinsCommented:
Hi hairybarbarian,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept mdougan's comment(s) as an answer.

hairybarbarian, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
kodiakbearCommented:
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now