469,588 Members | 2,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

C# Printing Problem

Hi,
I got a printing problem for my C# program. I need to pull out records from database and format them and then print them out.
I used PrintDocument class and PrintPageEventHandler function to handle multiple page printing. When I tried printing the records in testing environment which has an HP LaserJet 2420dn printer, it worked fine. However, when I put the program into production environment which has an EPSON FX-2190, the results were shown Landscape, but I did set DefaultPageSettings.Landscape = false in my code.
We had an old program written in VB.NET which worked fine. But the way it did was calling Excel to generate a file and then print the file out. Since we don't want to get Excel involved, the new program should directly print out records after pulling them out from database and formatting.
Anyone has idea?


PS: I'm using .NET 1.1 framework.
Dec 19 '06 #1
1 1734
Problem resolved. It's just the printer's setting...
Dec 21 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Programatix | last post: by
reply views Thread by Programatix | last post: by
5 posts views Thread by Stefania Scott | last post: by
5 posts views Thread by C-Services Holland b.v. | last post: by
2 posts views Thread by Teemu | last post: by
2 posts views Thread by Sukh | last post: by
18 posts views Thread by Brett | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.