Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8107231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:41:57+00:00 2026-06-06T00:41:57+00:00

I have a worksheet that spans multiple pages, both vertically and horizontally. It has

  • 0

I have a worksheet that spans multiple pages, both vertically and horizontally. It has certain rows and columns that are set to repeat on each page. I would like to know where these page breaks are going to be; I essentially want to get the information from Page Break Preview into my C# code so that I can fix things like cells that are merged across pages, and adding a signature box that is one page wide.

I tried using the Worksheet.HPageBreaks property, but the HPageBreaks.Count property is always null, even when I know that the worksheet has multiple pages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:41:59+00:00Added an answer on June 6, 2026 at 12:41 am

    To the best of my own knowledge, Excel does not store that data internally, but rather calculates it closer to real time based on PageSettings, PrinterSettings, manually stored “PageBreak” markers, and cell sizes and content.

    The best solution I could suggest would be attempting to calculate these things yourself.

    I also freely admit that I could be completely wrong about this, but from my own experiences, this is likely the case. I will update as//if//when my own research finds something new.

    Update: Link

    This is barely relevant, but on the same topic. Perhaps it contains some examples or data that you can manipulate for your own ends.

    http://social.msdn.microsoft.com/Forums/sv/exceldev/thread/0d1fd9f2-9111-42c4-ad36-3082f4311202

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel worksheet that has 30k+ rows. I'd like to cut the
I have a Microsoft Excel worksheet that has hundreds of rows of items. The
I have an Excel worksheet that has the following macro. I'd like to loop
I have a VBA macro that copies rows from one worksheet into another based
I currently have a C# Workbook-level Office 2007 Addin that has a Worksheet added
I have a worksheet with around 3,000 rows. One of these columns contains ethnicity
I have a Excel worksheet that has a button. When I call the usedRange()
I have created a Userform that lets the user pick a worksheet from a
I have an Excel Workbook that has several worksheets in it. The tables in
I have a worksheet that returns a value from a different sheet in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.