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
Marvin ReidPosted Dec 1, 2021, 3:37 PM
Laxmidhar SahooPosted Jul 17, 2020, 4:59 AM
Devika MPosted Jul 16, 2020, 9:12 AM
Ajay BachalePosted Jul 16, 2020, 3:48 AM
Laxmidhar SahooPosted Jul 16, 2020, 2:49 AM
Sapna GirishPosted Jul 15, 2020, 8:08 PM
Jignesh KumarPosted Jul 15, 2020, 2:49 AM