We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

XLS to DOC converter issue


I am using the ConvertXLS2Doc.cs class to convert an excel file to word. The Excel file has all the cells in the print area formatted with fontname = "Courier New" and fontsize = "10". But when the converter is done, the word doc has some cells that are formatted as "Times New Roman/12".

In the attached doc file, I have highlighted all the cells I am concerned about. It appears that all cells with no text are being assigned the default formatting for fontname and fontsize.

Can you suggest a workaround?

Thanks, John

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Fixed by adding one line in the code :). Please try using the attached converter class.

Best regards.