CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Printer Object

  1. #1
    Join Date
    Oct 1999
    Location
    Maryland
    Posts
    1

    Printer Object

    Hello,

    I've created an application that is printing to a sheet of labels. I'm having some wierd quirky problems with the print object. I have included an if statement that checks for the currrent y position and based on a certain value is supposed to call printer.EndDoc

    and resets the left margin and top margin to the top of the page. However, it does not always work. Any suggestions on how to best check for the bottom of a page and then advance to a new sheet of paper/labels.

    Thanks in advance!

    Jon Ceanfaglione
    CIS, Inc.


  2. #2
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: Printer Object

    Hi,

    You can check the printer.height property. If you can calculate the height of each label you set the page height accordingly. Then You will not require to sense the Y coordinate.

    Printer.EndDoc is mainly controlled by papersize.



    Santulan

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