Solved

Printing pictureBox contents

Posted on 2012-03-12
3
340 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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 …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

23 Experts available now in Live!

Get 1:1 Help Now