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 January 11th, 2007, 08:43 AM
Registered User
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to print from windows forms??

Hi,

I have a windows form that has 8 fields. How do i go about printing those 8 fields such that it is in order?? 7 of these fields are textboxes and 1 of it is a rich textbox. I tried using the print document control but it doesnt work. I tried using crystal reports as an option, but my understanding of crytsal reports are pretty vague. I was hoping if anyone here could help me with this.

Scenario is such:

After a user searches for a particular entry from the database, user would like to print that result. This result as i have mentioned before contains 7 textboxes and 1 rich textbox. I would like a user to print the result upon hitting the print button.

Any help using crystal reports to filter and print would also be appreciated.

Thanks.

 
Old January 11th, 2007, 09:45 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Printing in C# is fairly simple once you get your head wrapped around it.

This is a very good article and it is what I used as a reference when I was dealing with this problem. Hope it helps.

http://www.devarticles.com/c/a/C-Sha...Using-C-sharp/

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
Print 2 Forms using 1 Button matto336 Access VBA 4 September 26th, 2007 07:36 AM
Print Forms on Saperate Pages itHighway HTML Code Clinic 1 November 21st, 2005 08:04 AM
need to print windows form GAF .NET Framework 1.x 0 November 17th, 2005 10:23 AM
view/print report from 2 different forms chacquard Access VBA 3 January 5th, 2005 10:00 PM
Print Dialogue for Forms per tab/page jaip2p Access VBA 1 November 20th, 2003 12:33 PM





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