473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C#.net : Print issue

Hi,
I got to print a Windows form, which span across 2-3 pages.

This form is output of C# program.

How to do this in C#?

The solutions I got till now, were all pointing to taking a
screenprint programmatically and then printing it.

this would not work in my case.

Could you point to me to appropriate solution?

Thanks
Pioneer
Oct 19 '08 #1
1 1223
Pioneer wrote:
Hi,
I got to print a Windows form, which span across 2-3 pages.

This form is output of C# program.

How to do this in C#?

The solutions I got till now, were all pointing to taking a
screenprint programmatically and then printing it.

this would not work in my case.

Could you point to me to appropriate solution?

Thanks
Pioneer
If you want to print the form, you use the DrawToBitmap method to draw
the form on a Bitmap object, which you then can print parts of.

If you want to put the contents of the form onto printed pages, you do
just that. Get the values you want from the form and draw them using the
graphics object that is provided for printing.

--
Göran Andersson
_____
http://www.guffa.com
Oct 19 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Michael Foord | last post by:
Here's a little oddity with 'print' being a reserved word... >>> class thing: pass >>> something = thing() >>> something.print = 3 SyntaxError: invalid syntax >>> print something.__dict__...
2
by: jamesthiele.usenet | last post by:
I recently ran into the issue with 'print' were, as it says on the web page called "Python Gotchas" (http://www.ferg.org/projects/python_gotchas.html): The Python Language Reference Manual says,...
10
by: David C | last post by:
We have a classic ASP intranet web site that has been around for a while. Our customer wants to be able to print an envelope from the contact name and address table. We have other reports that we...
4
by: Fred | last post by:
I'm a newbie to JavaScript so be gentle. You know that funky IE margin issue that causes the right side of the page to get cut off when the user prints the html document?...
7
by: bclegg | last post by:
Hi, I have a Monitoring application that needs to output single line summaries to a local dot matrix printer loaded with line flow. ie. It will have exclusive use of the printer which is connected...
3
by: Jeff Mason | last post by:
Hi, I'm looking for a component or code which will allow me to print an existing PDF file from a VB.NET app. I need the ability to specify the PDF file and the printer name on which it is to...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
18
by: =?Utf-8?B?SGVyYg==?= | last post by:
I'm using a ReportViewer in ASP.NET. From the development environment it works fine. When published and I try to open the page with the ReportViewer I get the error: An internal error occurred...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
1
by: =?Utf-8?B?ZGF2aWR0aGV3ZWI=?= | last post by:
I have a recurring issue with a Print Spooler on a Windows 2000 Server. A print job will get stuck and take a large amount of the CPU time. I stop the print spooler in Services, go into Windows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.