
Kick off this course on automating Microsoft Word with Java and Apache POI by introducing the instructor, outlining topics and scenarios, and inviting questions to support your learning.
Review the essential software to start the course, including Java, Eclipse IDE, and Maven, with setup guidance for Windows ten and Mac.
Explore the Apache POI API overview to learn how Java manipulates Microsoft Office files. Review the Java Docs to see the latest version and available classes and interfaces.
Create a new Maven project in Eclipse by selecting Maven project, clicking next, choosing the Maven archetype quickstart, and setting the groupId and artifactId before finishing.
Add the Apache POI maven dependency to the pom.xml by inserting a dependency block under the JUnit section with groupId org.apache.poi, artifactId poi-ooxml, and version 4.1.2, then save.
Create a word document in Java using Apache POI, initialize an XWPFDocument, configure the output stream and file path, save as my first word document.docx, and confirm creation.
Open an existing Word document programmatically using Java and Apache POI by building the path, validating the file, and opening it on the desktop.
Delete a Word document using Java and file operations, including checking existence, printing status messages, and deleting the file from its path.
Learn to create a new Word document with Apache POI, add a paragraph via a run of text, and save and open the file.
Explore how the XWPFRun class defines a region of text within a paragraph and allows multiple runs with styles like bold, italic, red color, and custom font size.
Learn to create a Word document with a paragraph that contains multiple runs and count paragraphs and runs using Java and Apache POI.
Create a Java class to add four paragraphs to a word document with Apache POI, then run the application to generate it.
Learn to automate Microsoft Word with Java using Apache POI by building a reusable utility to add paragraphs, handle runs and spaces, and improve readability.
Create a util package and a document package, then move document-related classes into the document package and rename the paragraphs package for better organization.
Learn to format Word paragraphs with Java and Apache POI by creating custom paragraphs and runs, applying bold, colors, font size, and a shared font family across paragraphs.
Learn to remove the default spacing after paragraphs in Word using Java and Apache POI by setting spacing after to zero and saving changes.
Learn to adjust paragraph alignment, underline, and indentation in a Java Apache POI workflow by adding a custom paragraph method, applying center/left/justified alignment, and toggling underline and indentation.
Create a java package and classes to add decimal list numbering to a Word document with Apache POI, including text variables and paragraph indentation.
Adopt an advanced method to add numeric numbering in Word with Apache POI. Create paragraph templates, modifiable lists, and generate decimal numbering for multiple sections.
Learn to add lowercase and uppercase numbering to Word documents using Apache POI. The lecture shows extending utilities with a numbering type parameter to generate two lists.
Learn to add a centered footer to a Word document using Java and Apache POI by creating a footer method, configuring the header/footer policy, and inserting text.
Learn to add a footer with right-aligned page numbers to a Word document by creating an add footer and page number method in utilities class, adjusting spacing and font size.
Automating Microsoft Word with Java | Apache POI is a course designed to teach students the knowledge required to start Automating Microsoft Word with Java. Students will be able to automate repetitive tasks when working with Word Documents and programmatically add content to a Document while developing the skills to easily customize paragraphs, work with paragraph alignment, indentation, underline, etc.
At the end of this course students will have the knowledge to automate most of the common tasks required when working with Word Documents. Users will be learning:
1. How to work with Apache POI API and Start Creating Word Documents with Java.
2. How to automate the creation of a Word Document.
3. How to add paragraphs to a Word Document.
4. How to work with paragraphs and runs.
5. How to apply basic formatting to paragraphs programmatically.
6. How to apply advanced formatting to paragraphs programmatically.
7. How to add Decimal List Numbering style to paragraphs programmatically.
7. How to add Decimal List Numbering style to paragraphs programmatically.
8. How to add Footer to a Word Document programmatically.
9. How to add Page Number to Word Document programmatically.
10. How to create a utilities class to hold all the re-usable code.
11. How to gain confidence to automate repetitive tasks.