React-to-print: Printing multiple pages

Created on 11 Feb 2020  路  3Comments  路  Source: gregnb/react-to-print

I tried printing multiple pages in react, but it was only printing first page, facing this issue for quite sometime now and i don't see how do i resolve it? is it npm issue? if not can you guys help me in this?

CodeSandbox
Here, it only prints whats visible and does not prints what's on scroll
https://codesandbox.io/s/react-to-print-slu5d

Thanks

Most helpful comment

It print only the first page because your component which you want to print have overflow: scroll :

You should print only the child of the div which have the scroll to get its full content
Just like this : https://codesandbox.io/s/react-to-print-bfybw

Thanks. It works for me

All 3 comments

It print only the first page because your component which you want to print have overflow: scroll :

You should print only the child of the div which have the scroll to get its full content
Just like this : https://codesandbox.io/s/react-to-print-bfybw

@ishan7 does @metzgegu's solution work for you?

It print only the first page because your component which you want to print have overflow: scroll :

You should print only the child of the div which have the scroll to get its full content
Just like this : https://codesandbox.io/s/react-to-print-bfybw

Thanks. It works for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FernandoLuizNemeChibli picture FernandoLuizNemeChibli  路  5Comments

MikeSha picture MikeSha  路  4Comments

Dastnbek picture Dastnbek  路  4Comments

404sand808s picture 404sand808s  路  7Comments

AJTJ picture AJTJ  路  4Comments