We help IT Professionals succeed at work.

Printing pictureBox contents

ayha1999
ayha1999 asked
on
Hi,

How I a print a form which is larger than the screen or or is only partially displayed by placing it on a pictureBox control using c# 2010?

Please help.

ayha
Comment
Watch Question

Full stack Software Engineer
CERTIFIED EXPERT
Commented:
you can simulate maximizing the form so it will be stretched to the screen actual size then print the form.

to maximize the form:
this.WindowState = FormWindowState.Maximized;

to print the form:
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/eb80fbbe-6b89-4c3d-9ede-88a2b105c714

Author

Commented:
Hi sedgwick,

It is possible to remove form borders in the printout?

thanks

Author

Commented:
I worked. A small issue is that it prints directly to printer without giving Print preivew. If any workaround please post.

Thanks a lot.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.