Skip to content

C# Printing Problem

HongBin Huang

Asked Dec 20, 2006, 9:32 AM EST1 answer
Share
LinkedInX
Hi all. I have a weird problem in my C# program for printing. Basically what my program does is pulling out data from database and format them into a invoice format. After that, the program should print all invoice out. Everything goes ok when I tested the program in testing environment, which has an HP LaserJet 2420dn printer. However, when I put the program into production environment which has an EPSON FX-2190 printer, the output became Landscape. I used PrintDocument to print out data, and I did set PrintDocument.DefaultPageSettings.Landscape = false. But it just showed me in Landscape format. I'm using .NET 1.1 framework. Anyone has any idea? Best regards, Ben

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    although i can't speak to your specific problem, i used to support a printing application (using vb script) and a lesson i learned fast was to perform testing on the same printers as the production environment. this is especially true when printing docs that are multiple pages and use graphics. does your app use ms word to create these docs? if so, you may want to check the default settings (normal.dot) on the pc that's performing the printing.
    0