Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Printing pictureBox contents

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
ayha1999
Asked:
ayha1999
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
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
 
ayha1999Author Commented:
Hi sedgwick,

It is possible to remove form borders in the printout?

thanks
0
 
ayha1999Author 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.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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