Counting Pages Programatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I must print many reports automatically. Is there a way to:

1. Count the pages of a report and then decide to:
a. Print it (25 pages or less) or
b. save it to a file?

2. How do you save report to a file programatically?

Thank you!

Ross
 
The Report object has a Pages property that is available in Print Preview
mode. You can use the Docmd.Save and Docmd.PrintOut to save or print the
report based on the Pages value.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I must print many reports automatically. Is there a way to:

1. Count the pages of a report and then decide to:
a. Print it (25 pages or less) or
b. save it to a file?

2. How do you save report to a file programatically?

Thank you!

Ross
 
Back
Top