File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Word-to-PPTX-Conversion/Convert-Word-document-to-PPTX/.NET/Convert-Word-document-to-PPTX Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ class Program
99 private static IPresentation pptxDoc ;
1010 static void Main ( string [ ] args )
1111 {
12- //Opens an existing document from file system through constructor of WordDocument class
12+ //Loads an existing Word document.
1313 using ( WordDocument document = new WordDocument ( Path . GetFullPath ( "../../../Data/Adventure.docx" ) , Syncfusion . DocIO . FormatType . Automatic ) )
1414 {
15+ // Create a new PowerPoint presentation.
1516 pptxDoc = Presentation . Create ( ) ;
17+ // Iterate each section in the Word document and process its body.
1618 foreach ( WSection section in document . Sections )
1719 {
18- //Accesses the Body of section where all the contents in document are apart
20+ // Access the section body that contains paragraphs, tables, and content controls.
1921 WTextBody sectionBody = section . Body ;
2022 AddTextBodyItems ( sectionBody ) ;
2123 }
You can’t perform that action at this time.
0 commit comments