FindByName ( "Normal" ) as WParagraphStyle paragraphStyle. ![]() LastParagraph //Create a custom style WParagraphStyle paragraphStyle = wordDocument. All = 15 //Get Last paragraph of the document IWParagraph paragraph = wordDocument. Creates a new Word document WordDocument wordDocument = new WordDocument () //Adds new section with single paragraph to the document wordDocument. Close ( True ) 'Close the document wordDocument. ConvertToPDF ( wordDocument ) 'Save and close the PDF document pdfDocument. AppendText ( text ) 'Creates an instance of the DocToPDFConverter Dim converter As New DocToPDFConverter () 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter. AppendText ( text ) 'Second paragraph paragraph = section. ![]() AppendText ( text ) 'Adds first text to the paragraph paragraph = section. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base." 'Adds new text to the paragraph paragraph. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. LastSection Dim text As String = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. AfterSpacing = 15F Dim section As WSection = wordDocument. HorizontalAlignment = HorizontalAlignment. Font = New Font ( "Times New Roman", 12 ) paragraphStyle. FindByName ( "Normal" ), WParagraphStyle ) paragraphStyle. LastParagraph 'Create a custom style Dim paragraphStyle As WParagraphStyle = Tr圜ast ( wordDocument. All = 15 'Get Last paragraph of the document Dim paragraph As IWParagraph = wordDocument. 'Creates a new Word document Dim wordDocument As New WordDocument () 'Adds new section with single paragraph to the document wordDocument. Close ( true ) //Close the document wordDocument. ConvertToPDF ( wordDocument ) //Save and close the PDF document pdfDocument. AppendText ( text ) //Creates an instance of the DocToPDFConverter DocToPDFConverter converter = new DocToPDFConverter () //Converts Word document into PDF document PdfDocument pdfDocument = converter. AppendText ( text ) //Second paragraph paragraph = section. AppendText ( text ) //Adds first text to the paragraph paragraph = section. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base." //Adds new text to the paragraph paragraph. LastSection string text = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. AfterSpacing = 15f WSection section = wordDocument. Font = new Font ( "Times New Roman", 12 ) paragraphStyle. ![]() ![]()
0 Comments
Leave a Reply. |