Solved

Printing pictureBox contents

Posted on 2012-03-12
3
348 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:ayha1999
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 37711558
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
0
 
LVL 7

Author Comment

by:ayha1999
ID: 37714115
Hi sedgwick,

It is possible to remove form borders in the printout?

thanks
0
 
LVL 7

Author Closing Comment

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

Thanks a lot.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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