What is the usage of Windows Service? Windows services are normally used when an application needs to continuously run. A Windows Service will run even if no-one is logged on. Windows service can start running as soon as the machine is powered up, which makes ideal for running as a server, http server for example. No one is required to login.
Windows services has the following features.
Don’t need to have a session running. This is good for security, and also reduces overhead on the server.
We shall make use of some management commands like Start, Stop, Pause and Continue.
We shall also handle server events such as shutdown.
Please refer the below MSDN link to know about how to create a Windows service application.
Is it possible to perform Word document to Pdf conversion using DocIO in Windows Service? Yes, it is possible to convert a Word document as Pdf using Windows service.
We have prepared a sample to illustrate how to perform Word document to Pdf conversion using Windows Service. In this we have created a static method with the below code for Pdf conversion and called this in OnStart event.
Please refer the below sample which demonstrates Word to Pdf conversion using Windows service. Sample