CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    3

    Set Printable Margin

    is it possible to set the printable margin? SOmething like the Page Setup in microsoft word? So that when I print the "invoice", it would occupy almost the whole of A4 paper.


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Set Printable Margin

    The printable margins of a page will have to be handled by your program and the hardware limitations of your printer.
    Setting CurrentX = 0, then issuing a print command to your printer will cause the printer to print at the left most edge possible for the device. Setting CurentY = 0 will print at the topmost edge allowable by the hardware.

    Printer.CurrentX = 0
    Printer.CurrentY = 0
    Printer.print "Hello There"



    Will print in the upper leftmost position allowed by the printer hardware.

    John G

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