I converted text files to PDF documents using CutePDF Writer printer in windows forms application.It's working as expected but same block of code I used in c# windows service application to convert text files to PDF files.I'm not getting any exceptions while executing the code and not generating any PDF documents.
I created the following registry key settings for CutePDF writer
Setting the display mode:
HKEY_CURRENT_USER\Software\CutePDF Writer\BypassSaveAs (0 = show Save as dialog box after spooling, 1 = do not show Save as dialog box.) (This value is of type REG_SZ, not REG_DWORD)
Setting the filename:
HKEY_CURRENT_USER\Software\CutePDF Writer\OutputFile (Use the key above to set the output file for the PDF. A full pathname (e.g. d:\your folder\your file.pdf) is required.)