Print table on 2 pages

Posted by: trung.danghong on 13 February 2020, 12:47 am EST

    • Post Options:
    • Link

    Posted 13 February 2020, 12:47 am EST - Updated 3 October 2022, 10:30 am EST

    when print table to pdf I have issue that 1 row is lay on 2 page as attach file

    . I also use setRowPageBreak but it still print 1 row on 2 page.

    Please give me a suggestion. Thanks

  • Posted 14 February 2020, 4:40 am EST

    Hi,

    We are sorry but we are unable to replicate the issue at our end. Could you please have a look at the following sample that we used for testing and let us know if we are missing something to replicate the issue:

    https://codesandbox.io/s/spread-js-starter-b3bgn

    Also, let us know the exact spread version and browser you are using so that we may test on a similar environment.

    Regards

    Sharad

  • Posted 14 February 2020, 5:16 am EST

    Hi Sharad,

    I have address my problem. This is because I use

    printInfo.bestFitRows(true)

    To wrap text. So I have wrap text by sheet

    designSh.autoFitRow(1)

    And this problem not occur

  • Posted 24 February 2020, 1:03 am EST

    We are glad to hear that your issue has been resolved. Thank you for sharing the solution.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels