C# print problem -- page orientation

Discussion in 'C#' started by benfly08, Jan 1, 2007.

  1. benfly08

    benfly08 New Member

    Joined:
    Jan 1, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I'm having a print problem for my C# windows form program.

    In my small program, I need to pull out data from my database and format them as invoice format. These parts were done quit well. When it went to printing, something weird happen.

    I used PrintDocument class to do printing. And I set the DefaultPageSettings.Landscape = false. In my testing environment, the document could be printed probably under the printer HP LaserJet 2420dn; however, when I put it into the production environment, the output became Landscape!! My production environment has an EPSON FX2190 printer attached to a PC where my program located using Paralled port. I'd been stuck into this problem for two days and got no clue for resolving it.

    Anyone has any idea?
     
  2. Essial

    Essial New Member

    Joined:
    Sep 12, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice