File tree Expand file tree Collapse file tree
Excel to Markdown/Excel-to-Markdown-Shapes/.NET/Excel-to-Markdown-Shapes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <Solution >
2+ <Project Path =" ../../../../../../Source Branch/compression/Portable/Compression.Portable/Src/Syncfusion.Compression.Portable.csproj" />
3+ <Project Path =" ../../../../../../Source Branch/exceltopdfconverter/Portable/XlsIORenderer.Portable/Src/Syncfusion.XlsIORenderer.Portable.csproj" />
4+ <Project Path =" ../../../../../../Source Branch/markdown/Portable/Markdown.Portable/Src/Syncfusion.Markdown.Portable.csproj" />
5+ <Project Path =" ../../../../../../Source Branch/pdf-imaging/Portable/Pdf.Imaging.Portable/Src/Syncfusion.Pdf.Imaging.Portable.csproj" />
6+ <Project Path =" ../../../../../../Source Branch/pdf/Portable/PDF.Portable/Src/Syncfusion.Pdf.Portable.csproj" />
7+ <Project Path =" ../../../../../../Source Branch/skiasharphelper/Portable/SkiaSharpHelper.Portable/Src/Syncfusion.SkiaSharpHelper.Portable.csproj" />
8+ <Project Path =" ../../../../../../Source Branch/telemetry/Portable/Telemetry.Portable/Src/Syncfusion.Telemetry.Portable.csproj" />
9+ <Project Path =" ../../../../../../Source Branch/xlsio/Portable/XlsIO.Portable/Src/Syncfusion.XlsIO.Portable.csproj" />
10+ <Project Path =" Excel-to-Markdown-Shapes/Excel-to-Markdown-Shapes.csproj" />
11+ </Solution >
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <OutputType >Exe</OutputType >
5+ <TargetFramework >net10.0</TargetFramework >
6+ <RootNamespace >Excel_to_Markdown_Shapes</RootNamespace >
7+ <ImplicitUsings >enable</ImplicitUsings >
8+ <Nullable >enable</Nullable >
9+ </PropertyGroup >
10+
11+ <ItemGroup >
12+ <PackageReference Include =" Syncfusion.XlsIORenderer.NET" Version =" *" />
13+ </ItemGroup >
14+
15+ <ItemGroup >
16+ <None Update =" Data\*" >
17+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
18+ </None >
19+ <None Update =" Output\*" >
20+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
21+ </None >
22+ </ItemGroup >
23+
24+ </Project >
Original file line number Diff line number Diff line change 1+ using Syncfusion . XlsIO ;
2+ using Syncfusion . XlsIORenderer ;
3+
4+ namespace Excel_to_Markdown_Shapes
5+ {
6+ class Program
7+ {
8+ static void Main ( string [ ] args )
9+ {
10+ using ( ExcelEngine excelEngine = new ExcelEngine ( ) )
11+ {
12+ IApplication application = excelEngine . Excel ;
13+ application . DefaultVersion = ExcelVersion . Xlsx ;
14+
15+ application . XlsIORenderer = new XlsIORenderer ( ) ;
16+
17+ IWorkbook workbook = application . Workbooks . Open ( Path . GetFullPath ( @"Data/Input.xlsx" ) ) ;
18+ MarkdownExportOptions markdownExportOptions = new MarkdownExportOptions ( ) ;
19+ markdownExportOptions . PreserveEmptyRow = true ;
20+
21+ workbook . SaveAs ( Path . GetFullPath ( @"Output/ExcelToMarkdown.md" ) , markdownExportOptions ) ;
22+ }
23+ }
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments