Skip to content

'read_excel_as_template()' don't work properly  #81

@MrBeike

Description

@MrBeike

Env:

  • python ==3.7.3
  • openpyxl==3.0.3
  • pandas==1.0.4
  • styleframe==3.0.3

Code:

writer = pd.ExcelWriter(fileName, mode='a', engine='openpyxl')
sf = StyleFrame.read_excel_as_template('template.xlsx', df, use_df_boundaries=True)
sf.to_excel(writer,  sheet_name=sheetName, index=False)

Problems:
in openpyxl append mode

  1. frist sheet: header row height don't adjust with the template.(other rows'height is good, columns'width is good)
  2. other sheet: except header row heigth wrong, all the cells losted vertical alignment.

Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions