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.

Multiple print area

See original GitHub issue

Please allow to set more than one print area to XLS.

See example: https://www.youtube.com/watch?v=RvTic9lT4Lw

I tried to set SetPrintArea with two or three comma delimited references e.g. wb->SetPrintArea(0, "$A$1:$C$5,$E$6:$F$9"), according to: https://stackoverflow.com/a/35478242/13983849 But it didn´t work in NPOI 2.5.5.

This worked well in NPOI 1.2.3

I am reporting it as an issue, because I didn’t got any answer in discusion: https://github.com/nissl-lab/npoi/discussions/730

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
acts432commented, Feb 4, 2022

Yes, I tested all versions listed in VS2019 NuGet Package Manager from the latest 2.5.5 down to the oldest 1.2.3 (specifically 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 2.4.1, 2.3.0, 2.2.1, 2.1.3.1, 2.1.3, 2.0.6, 1.2.5, 1.2.4, 1.2.3)

And the last one 1.2.3 was the only one, where multiple print area worked for me (function SetPrintArea).

0reactions
acts432commented, Feb 15, 2022

No. We need XLS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple Print Areas on a Single Printed Page in Excel
The first step is to select the print areas that you want to print on a single page. To do this, hold down...
Read more >
How to Set the Print Area in Excel Worksheets
To selected multiple areas, hold the Control Key and make the selection using the mouse. A print area specified using the above steps...
Read more >
Excel print area: how to set, change and clear
To select multiple ranges, please remember to hold the Ctrl key. Click OK. More informative way to define print area in Excel. Tips...
Read more >
Saving Multiple Print Ranges in Excel
Saving Multiple Print Ranges in Excel · First, select print area # 1 (cells A1:M50) · Click File | Print Area | Set...
Read more >
Multiple Print Areas on a Single Printed Page (Microsoft Excel)
Set your two ranges as your print area, as you have already done. Choose Print from the File menu. Excel displays the Print...
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