Problems Background Printing PDF from C# Application

Hello,
We are having a lot of problems trying to print a PDF file in the background using a C# application that is executed via SQL Server Agent. The output should be printed to a local printer (HP Color LaserJet 1600) connected via a USB port.
We have a C# application that calls System.Diagnostics.Process to run Acrobat Reader (weve tried both v8.0.0 and v8.1.2), open an existing PDF file, and send it to the local printer. The code is shown below.
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.Refresh();
process.StartInfo.Arguments = "/t C:\Temp\TestPDF.pdf"; // and tried "/t C:\Temp\TestPDF.pdf PrinterName"
process.StartInfo.CreateNoWindow = false;
//process.StartInfo.Domain;
//process.StartInfo.ErrorDialog = false;
process.StartInfo.FileName = "C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe";
//process.StartInfo.Password;
//process.StartInfo.UserName;
process.StartInfo.UseShellExecute = false;
//process.StartInfo.Verb = "Print";
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.StartInfo.WorkingDirectory = new System.IO.FileInfo(m_PDFPathFile).DirectoryName;
process.Start();
Weve tried just about every combination of the process objects properties trying to get the PDF file to print. But, it never works. The code executes without error, just nothing ever shows up on the printer.
More info Were executing our custom C# application via a SQL Server Agent job. SQL Server Agent is running as Local System account. The Job Step Type is Operating System (CmdExec), with Run as set to SQL Server Agent Account. The command is simply the path and file name of our custom C# application (e.g., C:\Temp\PrintPDF.exe).
Again, we get no errors/exception and no job failures, but the PDF never gets printed.
How can we re-code or fix our situation?
What can be done/tried?
All help is appreciated. We are stuck.
Thanks.

> Server Agent is running as Local System account.
You'll need to login as Local System, and make sure it has the print driver installed. Most likely it has no printers that it can access.
Reader displays errors in dialogs, so it's likely that you have lots of invisible dialogs with errors on them.
To login as System, use the "at" command:
c:\> at 13:30 /interactive "cmd.exe"
Just use a time a minute or two in the future. When the new command prompt opens, type this in it:
c:\WINNT\System32> start acrord32
Now, you are running Reader as the System user. Load a PDF, and try to print. You will most likely get an error dialog.

Similar Messages

  • I have installed Lion and have problems to print PDF from prewiev.

    I have installed Lion and have problems to print PDF from prewiev. When trying to print Prewiev locks. Anyone out there with the same problem?

    Hello David and Nicole
    I just installed Lion on my iMac, which was purchased in 2007, and I cannot print from Preview; it keeps locking up and not responding. So, I have to force quit Preview. I have been sending error reports to Apple. I suggest everyone who has this problem, send error reports!
    I can print from other applications, like Pages, with my Canon Laserjet. I do not think it is a printer issue becasue I can print in other application.
    I took your advice and installed Adobe reader. Now I can print pdf's.
    Thanks
    Ed

  • HELP! Why can't I print PDFs from my applications?

    For over a year I've used Adobe Pro to "print" PDFs from AutoCAD LT (a drafting program). This allows me to perform design/drafting services for long distance clients and email them PDF "prints" of drawings for them to review, print, and use. It has worked beautifully...until this week. Now whenever I go to print a PDF from AutoCAD (or even other Windows applicacations like Word) it gives me an error telling me to change the Advanced printer preferences to "print directly to printer". When I go into the Adobe printer preferences and select this option. and return to print the PDF, selecting the print command causes AutoCAD to hang indefinitely and eventually crash when I try to cancel the print command. This behavor is the same inside other Windows applications like Word. So I've concluded that the issue is inside Adobe or my computer's Adobe "printer" settings. I've spent 5-6 hours unistalling a reinstalling Adobe several times in hopes to get back to whatever settings that worked before...to no success.
    The last piece to the puzzles is that I was on vacation last week. Instead of the desktop computer in my office that I typically use, I took my old laptop. I only have one license of Adobe Pro. Even though I hadn't used it for months on the laptop, it worked fine creating PDFs from AutoCAD. My question is: did using Adobe on my laptop deactivate the Adobe loaded on my desktop? And if so, why hasn't deactivating and uninstalling the Adobe Pro on my laptop, and unistalling/reinstalling/activating the Adobe Pro on my desktop, fixed the problem?
    I'm at my wits' end...any feedback/advice would be much appreciated!

    In WORD (Sorry I don't have Autocad), can you go to the FILE>Print and print to the Adobe PDF printer with no problem? If not, can you select print-to-file and then open the file in Distiller to complete the conversion? If the latter works, it sounds like you may have disabled AcroTray, a necessary part of the printing process.

  • Firefox v33 knocked out my Adobe 7 pro PDF printer plugin. PDFs print OK from other applications.

    Firefox v33 knocked out my Adobe 7 pro PDF printer plugin. PDFs print OK from other applications. It happened a few times randomly, and it seemed to resolve spontaneously, but now it is persistent.
    I've done scans for malware, which I suspected, but nothing showed up, nor corrected it with cleaning.
    I had this problem before, and I found directions on how to rest the printer within Firefox, but I've forgotten how or where I got it.
    I did try to re-install in control panel, but this appears to be a firefox issue. How do i rest the plugin or Firefox to once again print PDFs from browser pages. I need to use this feature printing receipts etc.

    Are you using a toolbar button (Create PDF extension) or a printer driver (selecting Adobe PDF or Distiller in the Print dialog) to generate the PDF? Older versions of Create PDF have been reported not to work any more (by older I mean from Acrobat X or earlier), but the printing method should still work.

  • Can't Print to PDF from any application in Windows 8 with Acrobat V8

    Can anyone help me?  Adobe doesn't prvoide support for Acrobat 8 anymore.  I used to be able to print to Adobe PDF from other applications before I upgraded to Windows 8.  Now it never works, just gives me an error message that says "printer is in error state."  I am using Acrobat V8.0.0.  Thank you for any help you can give.

    Acrobat 8 is not compatible with Windows 8, so such errors are to be
    expected.

  • I have a problem creating a pdf from within Firefox using the print to function.

    I have a problem creating a PDF from within Firefox. I get an error message stating that Adobe PDF creation cannot continue because Acrobat is not activated. Acrobat Pro then opens. If it try to create the PDF again, the same problem. I have FF ver 3.6.10 and Acrobat Pro 8 (from Acrobat CS3).

    This is an Apple user forum, no-one from Apple is here.

  • Problem with creating pdf from Microsoft Publisher 2013

    We are having problems in creating pdfs from Microsoft Publisher2010- When the function 'Adobe PDF' is selected and 'Print' is clicked on nothing happens. The progress bar just sits there for several minutes without creating a pdf. We have to click on cancel and when this is done this crashes Microsft Publisher.
    I have repaired this using the repair facility in Acrobat 9. I have also uninstalled Acrobat 9 and reinstalled this.
    I have also uninstalled Adobe Reader XI and reinstalled Adobe Reader 9.
    Before uninstalling Acrobat I also ran the updates but this didnt help either.
    This is on a Windows 7 PC (64-bit)
    Adobe Acroabt 9 Pro Extended
    Microsoft Publisher 2010.
    Any help is appreciated.
    Thanks

    MS Publisher 2010 is not supported by the Acrobat 9 Family; and the PDFMaker extension for Publisher has been removed completely from the Acrobat XI Family, so upgrading won't help either. Sorry!
    See http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html#main_ PDFMaker_compatible_applications

  • Problem with printing pdf

    IF POSSIBLE REPLY IN ITALIAN
    HI, i ve got a big problem.
    i 've to create an A0 page in vectorial pdf, which has connected different files: .psd files for the images with transparency, and vectorial .pdf for the drawings from cad.
    When i ve created my page, i export that in print pdf high quality.
    1° problem: sometimes it fails and tells me there s not enough memory
    2° problem: when print pdf is created, the plotter can t load it to print, it stops at 40% loading.
    there s a way to make an easy vectorial print pdf?
    using vectorial eps instead of vectorial pdf?
    using transparent tiff instead of psd?
    THANKS

    thank you for the fast reply Peter. Im working on an achitecture poster for my last exam, and it contains vector graphics sometimes overlayed on raster images.
    i don t like to use illustrator too, im using 3 programs already to create this poster. do u think .ai are easier than eps???
    i ve tryed to save new pdf without layers, but it didn t work. then i ve tryed to change pdf with eps on indesign, and now the print pdf saving is really faster. im gonna try to plot it and then i ll tell u what s changed.
    OH most important, i was drag n dropping pdf into indesign, and i read it s really wrong! so now i import vector eps to indesign ...
    Plot test...
    TY

  • Printing pdf from mac, works once then printer offline?

    I print wirelessly to a Brother HL-2270DW from a macbook pro running OSX 10.9.2 When printing from pages, numbers, email etc it works properly but when I print a PDF using adobe reader 11.0.07 it works once and then I can't print again, printer status is changed to offline.  I contacted Brother first and this was their reply...
    Thank you for taking the time to write to us about your HL2270DW. We will look into PDF issue for you.
    Since you have stated that the model is able to print fine from other applications, but is unable to print from PDF, the issue is isolated to ADOBE.
    The issue is not related to the model or the drivers because the issue would occur all the time with all programs.
    We recommend contacting ADOBE for further support.
    If after reviewing the information you have further inquiries about the PDF issue, please reply and we will be happy assist you.
    Does anyone have a fix for this?

    Hi chocolatebabz,
    Thank you for posting on the Adobe forums, kindly try printing as an image. Try the steps mentioned below.
    1) Open the file>Print>Advanced
    2) Check the box>print as an image.
    Thanks,
    Vikrantt Singh

  • Problem with printing pdf file

    hello,
    lately i have problem with printing pdf file:
    i click on the print button and the respod is very slow
    it takes more than a minute till the print window apears.
    i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
    other programs i'd working much faster.
    please advice,
    thank you

    No, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.

  • Print pdf from ValueLine

    Ver 11 says plug-in doesn't work; Ver 10 worked fine
    Further information:  tried to print pdf from this site; error message says can't do plug-in.   Just downloaded fresh Ver. 11 today and accepted conditions.  Help, please!

    I'm using Win.7.1, trying to download Acrobat Reader 11, reaching it from 
    AOL 9.7 .  I can't download online pdfs from multiple on-line resources 
    (e.g., ValueLine and your own Adobe site).  After I've de-installed the  Reader
    11 and started fresh, here's what I see:  The installation file  appears in
    my AOL download file.  My Norton Internet Security says its  safe, and I
    double click on it.  (I never get to the warning dialog -  presumably because
    Norton has already vetted the install file.) When I go back  to the download
    file, open it and click on Finish, the installation file  disappears.  I
    never get to step 3 of the installation.  I don't have  a functioning Reader
    XI, either.
    In a message dated 1/8/2014 9:03:43 P.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  print pdf from ValueLine
    created  by Pat Willener (http://forums.adobe.com/people/pwillener)  in 
    Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/5994918#5994918)

  • Problems with sending PDF from iPad to PC?

    I am having problems sending a PDF from an iPad. The email is sent and can be read on any Apple device, however it is not viewable on a PC. To complicate things more, the first sending of the email to the PC in not viewable, once it is forwarded to another, the email is viewable just as on an Apple device. I have had this problem with to different apps which led me to belive Mail was suspect. I removed the mailbox and re-installed it with no fix. I think my next move is to reset the iPad. Has anyone had the same problem and come up with a solution?

    I've had exactly the same issue
    I had (mistakenly) believe the issue had been resolved its new app updates but it hasn't
    Today I emailed a signed document using SignNow app. Mindful of previous iPad PDF compatibility issues, I sent myself a copy to my gmail account that I have on my MacBook
    Everything appeared to be fine so I then emailed it to the recipient (using a PC) who promptly emailed back to say they hadn't received anything!
    This is the second time within two weeks.
    Eventually I had to email it to my Mac email account, open in Adobe then 'save as' PDF the. Email it back to my iPad email account so I could then forward onto the recipient.
    I had originally believed this to be an app issue but having used SignNow as well as TypeOn now realise it's something peculiar about Mac/PC formatting.
    SORT IT OUT APPLE!

  • Can not print to PDF (From any application)

    I print to PDF's on a regular basis, and my mac has stopped me randomly from having that function.
    When I go to Print from any application, and select "Adobe PDF 7.0" from the Printer drop down an grey stop/error sign appears next to that drop down.
    Then the print queue appears with a red error and the item that i was printing gives a status of "-" and the comment of "Jobs Stopped"
    If I press the "Start Jobs" button I get a progress bar and the status changes to "Printing" ... the progress bar doesn't move and then the status returns to "-" and the item remains un-printed in the queue.
    Please help.
    Thanks.
    MacBook Pro 2.16 GHz Intel Core Duo   Mac OS X (10.4.8)  

    I managed to fix the problem by deleting the folder "com.adobe.print.AdobePDF7" from /Library/Preferences/
    And printed to a PDF

  • Troubleshooting problems with printing PDF's from Revit and Cad files

    I am unable to print a readable pdf from AutoCad and Revit.  Any Suggestions?  I do not have problems with Microsoft or Adobe products..Just AutoCad.  I have already spoken with my AutoCad dealer and they concluded it was an Adobe issue.

    How was the PDF file created? With the Adobe plug-in to AutoCAD?
    If you can provide some samples, we could look at the files and determine the problem. And FWIW, I doubt that your AutoCAD dealer has the competence to conclude where the problem is with a PDF file.
                - Dov

  • Printing to acrobat pdf from other application in Leopard

    Hi,
    I've upgraded to Leopard and to Adobe CS3. Whenever I want to print from any application to Acrobat pdf (for instance from Word 04), the acrobat printer pauses and the pdf is not created.
    Is this one of the known issues that will be fixed when Adobe releases the Leopard-proof update of CS3?
    Thanks,
    johan

    Is the ESR version of Mozilla Firefox?  If not, then try that version to see if the issue persists. 
    BTW the ESR version of Mozilla Firefox IS the supported version of Mozilla Firefox.
    http://www.adobe.com/products/acrobatpro/tech-specs.html
    Internet Explorer 7, 8, 9, or 10; Firefox Extended Support Release; or Chrome

Maybe you are looking for