Skip to content

Page Breaks: Is it possible to have only 1 page break for the whole work sheet? #791

@ZhaoHongtao0

Description

@ZhaoHongtao0

Hello Friends,

We are now using this excellent tool to export excel file in our project. Thank you guys for this great tool.

We are facing a problem here: the exported excel file will have default page break settings, for example, it will divided into 4 pages automatically once exported.
But we want it have only 1 page, not 4. So I tried to work with class [ZCL_EXCEL_WORKSHEET_PAGEBREAKS], which can get from method [GET_PAGEBREAKS] of class [ZCL_EXCEL_WORKSHEET]. Unfortunately, seems this method can only insert new page breaks to the existing page breaks, it cannot merge all pages into 1, or delete existing breaks then create a new one.
I also tried to add a new method to class [ZCL_EXCEL_WORKSHEET_PAGEBREAKS], which will delete all page breaks in table [MT_PAGEBREAKS], and insert only 1 page break into it. Still, not working....

Really appreciated if you experts can help me out here, Thank you so much in advance.

Hongtao Zhao

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions