Header-Footer not available on the first page when exported to excel

Hello Aspose team,

We are trying to export an excel file by combining multiple excel files. While doing so we are using the following function

workbook1.combine(workbook2)

But, upon using the above mentioned function, the header and footer are not available on the first page. However, header footer can be seen from the second page onward. We are using aspose cell version 20.5.

Sample Code:

void "test census header"() {
    Workbook workbook1 = new Workbook()
    Workbook workbook2 = new Workbook("src/test/groovy/resources/input_template_pa_censusReport.xlsx")
    workbook1.combine(workbook2)
    workbook1.save("src/test/groovy/resources/output_template_pa_censusReport.xlsx")
    
    expect:
    true
}

Would you please look into this issue?

The input and output files is attached here resources.zip (59.3 KB)

Thanks,
Astha

@aasthapa,

Please notice, we were able to reproduce the issue while combining the workbooks as you mentioned using your template file. We have logged a ticket with an id “CELLSJAVA-43425” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@aasthapa,
This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

Thank you aspose team for your quick response.

@dhirajbadu,

You are welcome.

@dhirajbadu
Please try the latest fix aspose-cells-21.3.6-java.zip

The issues you have found earlier (filed as CELLSJAVA-43425) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi