Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2004, 07:56 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to print a Window Form in C#

[1] Is there a distant substitute for the VB6 Form.Print() function in C#.NET?
[2] PROBLEM:
I need to print the active form. (Entire form not just the Client area).
Constraints: Incase the Form contains Tabpages. Then the all screen shots with each tab page as active should be taken. It is recommended to capture the unselected tab pages without visually moving to it from the selected tab page. (Using the Print Screen Functionality requires visual change so NOT A SOLUTION)

So What could be the solution to this problem (without using GDI32, User32 dlls)

SAM


Prabhat Samuel
 
Old July 1st, 2004, 03:27 PM
Authorized User
 
Join Date: Jul 2004
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Do you mean print to the printer or the screen?

The screen in .Show() and .Hide(), but printing to the printer is much more complicated than just a function call.

www.CoderForRent.com
Get A Computer Job!
 
Old July 3rd, 2004, 03:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Im not sure what I mean by print but where r some Print samples usualy at
<.NET INSTALLED DRIVE>:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\winforms\samples\printing
Hope u find them & make them usefull.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
window.print() ??? RinoDM Javascript 4 June 18th, 2008 04:53 PM
How to print PDF from a child window disto Javascript How-To 3 September 20th, 2007 05:04 AM
How centre a form for printin using Print Form VBProg VB.NET 2002/2003 Basics 0 October 23rd, 2006 03:12 PM
Print html page using window.open manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 0 April 1st, 2006 03:20 AM
print form damnnono_86 Access 2 November 16th, 2003 09:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.