问题 Am trying to convert my console application, which generates pdf reports, into a windows service. My code is as follows. Am I on the right direction? I installed this service and start/stop works fine but no report is generated! The console app alone works fine to generate Output.pdf. My aim is to Generate ouput when the service starts. class Program : ServiceBase { public Program() { this.ServiceName = "My PdfGeneration"; } static void Main(string[] args) { ServiceBase.Run(new Program()); }