CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    109

    Printing Class Library : Bottom Margin

    There is a great printing class here:

    http://www.codeguru.com/cpp/w-p/prin...cle.php/c2955/

    I have used it along time. One problem I have, which is really
    driving me crazy, is that I have a standard 8.5 x 11 sheet of paper
    and cant print text past 10.5". I tried adjusting the SetBottomMargin()
    function to:

    pPage->SetBottomMargin(-1)
    pPage->SetBottomMargin(0);
    pPage->SetBottomMargin(11);

    but none of them work. The text just doesnt print if it is too low
    on the page.

    How can print text that is close to the edge of the paper using this
    class or not using this class?

    Please, any response any one can give me will be greatly appreciated.

    Sincerely,
    Danielle Brina (an overworked graduate student)

  2. #2
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    Re: Printing Class Library : Bottom Margin

    but none of them work. The text just doesnt print if it is too low
    on the page.
    Habe you tested with other applications?
    I mean, it might as well be the printer's fault. I have seen many printers that have limitations when it comes to margins.

    Regards

  3. #3
    Join Date
    May 2002
    Posts
    109

    Re: Printing Class Library : Bottom Margin

    It doesnt print preview either. That makes me conclude that it
    is something on the code side and not the printer.

    How can I print preview text that is toward the bottom of the
    page?

  4. #4
    Join Date
    Jan 2008
    Posts
    1

    Re: Printing Class Library : Bottom Margin

    It's most likely that the device context created from the printer driver takes the printer's physical margins as constraints to your output.

    Try going to your printer (in printers) - and setting different margins and then try printing again (that's if your printer allows setting margins).

    If you notice a change in the print out - then this is the case.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured