ProcessStartInfo info = new ProcessStartInfo(documentPath) Public void PrintReportAsAProcess( string documentPath) || String.IsNullOrWhiteSpace(currentPrinter)) This.PrintReportAsAProcess(documentPath)
CONVERT FOXIT READER PDF TO MICROSOFT PDF PDF
SetDefaultPrinter( " Foxit Reader PDF Printer") String currentPrinter = this.GetDefaultPrinter() If( String.IsNullOrWhiteSpace(documentPath))
![convert foxit reader pdf to microsoft pdf convert foxit reader pdf to microsoft pdf](https://media.cheggcdn.com/media/2a6/2a6161a1-0ed5-46e3-b92a-52bfb43c22d8/php8GPYdX.png)
Public void ConvertDocxToPdfWithFoxitReader( string documentPath) Public static extern bool SetDefaultPrinter( string Name)
![convert foxit reader pdf to microsoft pdf convert foxit reader pdf to microsoft pdf](https://windows-cdn.softpedia.com/screenshots/pdf-to-image-converter_9.png)
Just Foxit Reader (Free) must be installed on the client. In addition, one will have a few more options to configure your pdf output if you're going to hack some Windows Registry values at application runtime.ĭepending on registy manipulating, full silent conversation, showing a FileSaveDialog as well asĪutomatically open up converted document is possible. There are many great (commercial) document libraries which support a doc/docx to pdf conversation and a few other scopes to do this, but I just needed a conversation so I was a bit scared of using a whole library for that.Īlso the other scopes like using Word interop or SharePoint has not been an option for me because a licensed Word/Sharepoint installation is needed for that task.Ī quick look into foxit's printer settings revealed that this could be an option so I had a try and I was really happy that it works for my requirements. Seems easy, like a standard task and pdfs are a standard document format. I stumbled over a requirement to convert (and print) *.doc, *.docx.