Hello,
Thanks for your response. The spire.xls.converter namespace exists in the Spire.Common.dll, but the method has been marked as obsoleted, so this is not recommended to use.
Is the page-orientation of the worksheet you need to convert landscape? If not, you could first set the worksheet orientation as landscape like as below. If the way can't still work for you, please attach the document you were trying for our investigation further.
- Code: Select all
worksheet.PageSetup.Orientation = PageOrientationType.Landscape
Sincerely,
Gary
E-iceblue support team