for_rendering_print_area_and_page_breaks method
Leave feedback
On this page
Initializes an instance of the SpreadsheetOptions class for rendering print areas and page breaks.
For details, see the documentation at https://docs.groupdocs.com/viewer/net/split-worksheet-into-pages/#render-worksheet-by-page-breaks-and-print-area.
def for_rendering_print_area_and_page_breaks(cls):
...
Returns: New instance of the SpreadsheetOptions class for rendering pages based on page breaks that are included into the print area. The behavior is similar to printing in Excel.
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PdfViewOptions, SpreadsheetOptions
def render_print_area_and_page_breaks():
with Viewer("products.xlsx") as viewer:
view_options = PdfViewOptions("print_area_and_page_breaks.pdf")
view_options.spreadsheet_options = SpreadsheetOptions.for_rendering_print_area_and_page_breaks()
viewer.view(view_options)
if __name__ == "__main__":
render_print_area_and_page_breaks()
- class
SpreadsheetOptions
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.