Step 1
Create Word file
You can create a Word file programmatically or using Microsoft Office Word pad.
Step 2
Create a new project (console, Windows or any).
Step 3
Download the “WordToPDF.dll“ file.
Step 4
Add this reference to the project.
Step 5
Include the namespace WordToPDF in your class file.
For example:
Step 6
Create an object of the class Word2Pdf as in the following:
- Word2Pdf objWorPdf=new Word2Pdf();
Step 7
Assign properties
Step 8Save, build and run the code.
Then the Pdf File will be generated in the folder location.
Conclusion This is the same process as is done using code.