setting up PrtDevMode

  • Thread starter Thread starter jay
  • Start date Start date
A: You can't change PrtDevMode except in design view. You can open
the report in a hidden window so the user doesn't see it, but you
can't avoid using design view in some form.

However, if you're using A2002, you can use the Printer Object rather
than PrtDevMode to set printer settings, and you don't have to use
design view. The printer object is also VASTLY easier to work with.
I'm not sure if this object is available in A2K: it's definitely not
available in A97.

HTH

Chuck Cain
 
Chuck / Jay:

1.) The printer object only came into existance beginning with Access 2002
and later.
2.) You actually DO need to go into design view to change values in the
Printer objects properties to have them consistenly applied to the report.
Trying to change the Printer objects settings either in the on open event or
when already in preview can have un-predicatable results.
3.) Depending on what you are trying to set with in the printer's properties
(e.g. custom paper sizes exposed by a printer that are greater than 256 in
value) are not supported by the printer object and you still must use the
prtDevMode property of the report to manage those changes.
 
Back
Top