I have a requirement to preview excel files in browser. I am currently trying to convert excel file to html using the OpenXML SDK and OpenXml Power tool. Using the SmlDataRetriever I could retrieve the XElement data from the excel sheet but I am unable to proceed further. Please find below the format which I receive from SmlDataRetriever
"9.25" defaultRowHeight="15" dyDescent="0.25" />"1"
>| "A1" | ColumnId="A" ColumnNumber="0" Type="s">Make Make | "B1" | ColumnId="B" ColumnNumber="1" Type="s">Miles Miles | "C1" | ColumnId="C" ColumnNumber="2" Type="s">Cost Cost "2"
>| "A2" | ColumnId="A" ColumnNumber="0" Type="s">Ford Ford | "B2" | ColumnId="B" ColumnNumber="1">40000 40000 | "C2" | ColumnId="C" ColumnNumber="2" Style="1">"6" formatCode=""$"#,##0_);[Red]\("$"#,##0\)" applyNumberFormat="1">"11" />"1" />"Calibri" />"Swiss" />"minor" />3500 $3,500 "3"
>| "A3" | ColumnId="A" ColumnNumber="0" Type="s">Chevi Chevi | "B3" | ColumnId="B" ColumnNumber="1">55000 55000 | "C3" | ColumnId="C" ColumnNumber="2" Style="1">"6" formatCode=""$"#,##0_);[Red]\("$"#,##0\)" applyNumberFormat="1">"11" />"1" />"Calibri" />"Swiss" />"minor" />4200 $4,200 "4"
>| "A4" | ColumnId="A" ColumnNumber="0" Type="s">Tata Tata | "B4" | ColumnId="B" ColumnNumber="1">51000 51000 | "C4" | ColumnId="C" ColumnNumber="2" Style="1">"6" formatCode=""$"#,##0_);[Red]\("$"#,##0\)" applyNumberFormat="1">"11" />"1" />"Calibri" />"Swiss" />"minor" />3800 $3,800
Is there any possible ways to convert this into a valid HTML so that it can be previewed. Is there any other methods in which this can be achieved. I cannot use the paid libraries for this work. I could not find any examples in the XSLT transformation of excel XML to HTML. Any help in this area is appreciated. TIA

Jignesh KumarRank #91 · 22.9K reputationPosted Jul 14, 2020, 10:49 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 15, 2020, 10:49 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 17, 2020, 12:59 AM EDT
Sapna GirishRank #1,811 · 819 reputationPosted Jul 15, 2020, 4:08 PM EDT
Ajay Bachale69 reputationPosted Jul 15, 2020, 11:48 PM EDT
Devika M32 reputationPosted Jul 16, 2020, 5:12 AM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Dec 1, 2021, 10:37 AM EST