?
Solved

Printing pictureBox contents

Posted on 2012-03-12
3
Medium Priority
?
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

801 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