Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printer margins (VBA, Word 97)

    I made a template with formfields in textboxes in the upper and lower right hand corner of the first page of a document. This printed fine on our HP laser printers. But now there are also several inkjet printers in use and they need a larger bottom margin, because only the upper 10% of the textbox at the bottom of the page is visible. Is it possible to determine the minimal bottom margin of the activ printer, using VBA (Word 97)? I cannot find any margin-prperties of the ActivPrinter object.

    Thanks,
    Jan

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printer margins (VBA, Word 97)

    This kind of information is well hidden in the manufacturer's driver files, I believe. There was a discussion earlier this year about extracting information using Windows API calls (API call - printer properties Duplexing +more). That should provides some help, but I don't recall whether it actually worked out in the end.

  3. #3
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printer margins (VBA, Word 97)

    Thanks Jefferson.
    I'll give the API path a try.

    Jan

Posting Permissions

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