Connecting Tech Pros Worldwide Forums | Help | Site Map

C# Printing Problem

Newbie
 
Join Date: Dec 2006
Location: Toronto, Canada
Posts: 19
#1: Dec 19 '06
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.



Newbie
 
Join Date: Dec 2006
Location: Toronto, Canada
Posts: 19
#2: Dec 21 '06

re: C# Printing Problem


Problem resolved. It's just the printer's setting...
Reply