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).
![console application]()
Step 3
Download the “WordToPDF.dll“ file.
Step 4
Add this reference to the project.
![Add reference]()
Step 5
Include the namespace WordToPDF in your class file.
![using wordtoPDF]()
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.
![show Pdf file]()
Conclusion This is the same process as is done using code.