Could you please zip and attach your input Excel file and output Excel file by Aspose.Cells. Also, provide a sample Excel file with your desired alignment settings and display intact, you may create your desired Excel file in MS Excel manually. We will check it soon.
We need your desired file to know what you want to achieve. Please note, if something cannot be done in MS Excel manually, Aspose.Cells cannot do it as well as it has to follow MS Excel standards and specifications in performing different tasks and features.
Again, we request you to share at least input and output Excel file:
Could you please zip and attach your input Excel file and output Excel file by Aspose.Cells. Also, provide a sample Excel file with your desired alignment settings and display intact, you may create your desired Excel file in MS Excel manually
From your code, you are setting HorizontalAlignment of Cell A1 to TextAlignmentType.Justify, TextAlignmentType.Distributed. It has nothing to do with header/footer.
Through my test, TextAlignmentType.Justify, TextAlignmentType.Distributed works OK for Cell A1.