472,127 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 1819
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 leo001 | last post: by

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.