PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jul 15, 2024 9:27 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 3:20 pm 
Offline

Joined: Tue Dec 22, 2009 9:48 am
Posts: 6
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 3:31 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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" ...

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 3:36 pm 
Offline

Joined: Tue Dec 22, 2009 9:48 am
Posts: 6
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 )


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 4:02 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 4:04 pm 
Offline

Joined: Tue Dec 22, 2009 9:48 am
Posts: 6
ok,
I want terminate the process Adobe32.exe after printing !

the process ADOBE32.exe does not close and remains open !!


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Wed Apr 07, 2010 4:36 pm 
Offline

Joined: Tue Dec 22, 2009 9:48 am
Posts: 6
you an example on how to make a printout of a pdf file without opening it?


Top
 Profile  
Reply with quote  
 Post subject: Re: pdfprint and c# ?
PostPosted: Thu Nov 18, 2010 11:57 am 
Offline

Joined: Wed Nov 17, 2010 12:08 pm
Posts: 5
Got the same problem!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group