PrinterSettings printerSettings = new PrinterSettings() įoreach ( string printer in PrinterSettings. If ( string.equalsIgnoreCase(printer, " Foxit Reader PDF Printer") = 0) Info.WindowStyle = ProcessWindowStyle.Hidden įoreach ( string printer in .InstalledPrinters) ProcessStartInfo info = new ProcessStartInfo(documentPath) Public void PrintReportAsAProcess( string documentPath) || String.IsNullOrWhiteSpace(currentPrinter)) This.PrintReportAsAProcess(documentPath) SetDefaultPrinter( " Foxit Reader PDF Printer") String currentPrinter = this.GetDefaultPrinter() If( String.IsNullOrWhiteSpace(documentPath)) Public void ConvertDocxToPdfWithFoxitReader( string documentPath) Public static extern bool SetDefaultPrinter( string Name) ![]() ![]() Just Foxit Reader (Free) must be installed on the client.Ĭopy Code public class DocumentProcessing create and print multiple pages) or Adobe Acrobat Reader (its not free but. 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. Foxit PDF Printer also has an intuitive interface that can be used to batch. 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. This is an excellent tool for anyone to use from businesses to personal use.I stumbled over a requirement to convert (and print) *.doc, *.docx. Many leading companies such as Google, Amazon, and Boeing all use this product which is a testament to the quality that you receive with Foxit. Customers can also purchase individual features such as PhantomPDF at a lower cost if they do not need everything that is offered within the business packages. All of their services are reasonably priced, and all packages offer many features which can only be found within this software. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |