question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Large table creation - how to detect page break within tables ?

See original GitHub issue

Hello!

I’m currently creating a huge table (up to 100,000 rows) in a Word document. Therefore, the performance is actually terrible. I used the caching method in issue #174 . However, it is still slow - it is pretty fast at first, however when the table gets bigger and bigger, it is still really slow in time (I have merged cells in the table too).

So I wanted to try the plan B mentioned in that issue. Bad news is, I cannot find out a way to detect page breaks within a single table.

My goal is that once I could detect the page breaks, I will split the table into small pieces - one table per page. And I’m hoping that will solve the performance problem.

The reason I can’t just split the tables in to random sized tables is that I need to add table headers for each table. Most importantly, I need to insert some certain values in the tables.

Can anyone can tell me how to detect page breaks within tables? Thanks in advance!

PS: If there is another method that is better than splitting tables, PLEASE tell me! Many thanks!!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
rickywucommented, Sep 13, 2022

Do you have solutions? I also need detect page break of table

0reactions
ndahncommented, Sep 17, 2022

I would be interested too, but assume that it’s not possible (yet). Is there a way to access the rendered file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control Page Breaks in Tables - Suzanne S. Barnhill
First, check that you don't have all the rows in your table set to “Keep with next.” Although this is far and away...
Read more >
4 ways to control page breaks within tables and table styles ...
If I create a new table style, I observe that rows break across the page. So it seems like the default for .AllowBreakAcrossPage...
Read more >
Tables in Word - Using page breaks within table - Super User
In the Paragraph dialog box, position to the tab of "Line and Page Breaks"; Check "Page break before"; Click OK. Now the row...
Read more >
How to deal with page breaks when printing a large HTML table
My problem is the way the table is printed over multiple page. It will sometimes cut a row in half, making it unreadable...
Read more >
Big tables with big items: pagebreaks within items? - TeX
Well, ideally the table would only be broken between the rows. However, when one item exceeds the space available on a page, a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found