T
Theresa Smallwood
I have an application that generates Excel spreadsheets. I am trying to
determine how many pagebreaks there are in the spreadsheet using the code
_wksht.HPagebreaks.Count. The problem is, this does not always seem to be
accurate. There are no vertical page breaks in my spreadsheet. There are
also no manual page breaks in the spreadsheet. In fact, I call
ResetAllPageBreaks() before getting the count.
One example has three pages (thus, 2 page breaks), but the HPagebreaks.Count
returns 1. Is there any reason for this? Is there something in my
spreadsheet I should look for so that an accurate page break count is
returned? Any help would be greatly appreciated! Thanks!
Theresa Smallwood
determine how many pagebreaks there are in the spreadsheet using the code
_wksht.HPagebreaks.Count. The problem is, this does not always seem to be
accurate. There are no vertical page breaks in my spreadsheet. There are
also no manual page breaks in the spreadsheet. In fact, I call
ResetAllPageBreaks() before getting the count.
One example has three pages (thus, 2 page breaks), but the HPagebreaks.Count
returns 1. Is there any reason for this? Is there something in my
spreadsheet I should look for so that an accurate page break count is
returned? Any help would be greatly appreciated! Thanks!
Theresa Smallwood