• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Printers > 5.4. Programmatically Change Printer Options

5.4. Programmatically Change Printer Options

Problem

You’ve tried using SendKeys to change printing options in the File Setup Page dialog, but this really isn’t satisfactory. Sometimes it works and sometimes it doesn’t, depending on the circumstances and the printer driver that’s loaded. Is there some way to modify printer options without using SendKeys?

Solution

Windows makes many of the printer driver settings available to applications, including the number of copies, page orientation, and page size. Starting with Access 2002, it’s easy to retrieve and modify these values, using the Printer property of forms and reports. This solution focuses on the print settings features of the Printer object and demonstrates how to read and write values in the Printer object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint