PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
pdfprint and c# ? https://forum.pdfsharp.net/viewtopic.php?f=2&t=1132 |
Page 1 of 1 |
Author: | fabcri [ Wed Apr 07, 2010 3:20 pm ] |
Post subject: | pdfprint and c# ? |
I HAVE: Code: try { PdfFilePrinter printer = new PdfFilePrinter(); printer.PdfFileName = "c:\\mio\\documenti\\" + cFile; printer.PrinterName = cStampante; cAdobe = "c:\adobe32.exe" PdfFilePrinter.AdobeReaderPath = "c:\\" + cAdobe; printer.Print(); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message, "ATTENZIONE ", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } As I close the program ADOBE ? |
Author: | Thomas Hoevel [ Wed Apr 07, 2010 3:31 pm ] |
Post subject: | Re: pdfprint and c# ? |
fabcri wrote: As I close the program ADOBE ? I'm not sure what the question is. fabcri wrote: Code: cAdobe = "c:\adobe32.exe" PdfFilePrinter.AdobeReaderPath = "c:\\" + cAdobe; This gives: "c:\\c:\adobe32.exe" ... |
Author: | fabcri [ Wed Apr 07, 2010 3:36 pm ] |
Post subject: | Re: pdfprint and c# ? |
scusa il mio inglese,...... I have: Code: try { PdfFilePrinter printer = new PdfFilePrinter(); printer.PdfFileName = "c:\\my\\documenti\\" + cFile; printer.PrinterName = cStampante; cAdobe = "Programmi\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe" PdfFilePrinter.AdobeReaderPath = "c:\\" + cAdobe; printer.Print(); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message, "ATTENZIONE ", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } As I close the program ADOBE ? ( PROCESS AcroRd32 ) |
Author: | Thomas Hoevel [ Wed Apr 07, 2010 4:02 pm ] |
Post subject: | Re: pdfprint and c# ? |
fabcri wrote: scusa il mio inglese,...... Mi dispiace, non parlano italiano. What's the problem: Do you get an exception while printing? Do you want to terminate the process Adobe32.exe after printing? AFAIK the process should terminate automatically. If it doesn't, I would ignore it as long as it causes no problems. |
Author: | fabcri [ Wed Apr 07, 2010 4:04 pm ] |
Post subject: | Re: pdfprint and c# ? |
ok, I want terminate the process Adobe32.exe after printing ! the process ADOBE32.exe does not close and remains open !! |
Author: | fabcri [ Wed Apr 07, 2010 4:36 pm ] |
Post subject: | Re: pdfprint and c# ? |
you an example on how to make a printout of a pdf file without opening it? |
Author: | Texxan [ Thu Nov 18, 2010 11:57 am ] |
Post subject: | Re: pdfprint and c# ? |
Got the same problem! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |