How can I programatically retrieve the number of pages a workbook or worksheet will print to from the Excel 2007 Interop (Microsoft.Office.Interop.Excel)?
are you looking for ActiveSheet.PageSetup.Pages.Count?
ActiveSheet.PageSetup.Pages.Count