Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
Hi Eric,
No I haven't.
Thanks,
pat
>Have you found an answer to that question ?
>
>
>>Does anyone know how to print a PDF document from within .NET. I'm using a component PDFLib to create the PDF documents, but there is no methods for printing.
>>
>>I'm using something like this now:
>>
>> Process myProcess = new Process();
>> myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
>> myProcess.StartInfo.FileName = "test.pdf"
>> myProcess.StartInfo.Verb = "Print";
>> myProcess.StartInfo.UseShellExecute = true;
>> myProcess.Start();
>>
>>This seems to work ok, but it leaves Acrobat.exe running in the background. I see it in the task manager as a process. How do I close the process after a PDF document prints?
>>
>>This code is in a business object. I have a business tester form that allows me to test the methods of the business object. When the business object is hosted in a Windows service (the object is remoted), I get no errors, but I also get no documents, even though the logs show that the document printed. We have text logging in our bussiness objects to help with debugging.
>>
>>Any help would be appreciated.
>>
>>Thanks very much,
>>Pat Moran
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement