PrintToPrinter()  - Unable to Print to Local Printer on WebServer

Dear All,
I am using Vs2010 Pro bundled with Crystal Reports 13.
When I deploy my Web application, and try to print to a Print installed locally on the Server through the report.PrintToPrinter() function, the Print Job appears on the pool and then it to hangs and timeout. When the print is done through a ReportViewer it works perfectly.
The print job appears on the printer's pool owned by ASPNET user. I believe I am facing some kind of authorization issue.
I've tried several Approaches, such as reinstallation of the CR Runtimes, and even authorization for the local asp.net account, but nothing seems to work.
Source Code:
'Load Report
            strPathAux = HttpContext.Current.Server.MapPath("Report.rpt")
            report.Load(strPathAux)
            report.PrintOptions.PrinterName = "Name of Printer"
            report.PrintToPrinter(1, False, 0, 0)
Thank you all in advance.
Kind Regards,
Licínio Sousa

See if SP 1 helps:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]
MSM     
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0_1.zip
MSI 32 bit     
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip
MSI 64 bit     
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip
[Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] may help to determine if this is a permissions issue.
- Ludek

Similar Messages

  • Unable to print xml publisher report in excel format in R12

    Hi All,
    We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
    Please let me know how to fix this issue.
    Thanks,
    Raja

    Hi Raja,
    I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
    If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
    Good Luck,
    Lamine Balde

  • Unable to print the report after SP2 (CR 2008 / VS 2008)?

    I'm developing an ASP.NET application using VS 2008 (Framework 3.5). I have installed CR 2008 with SP (0, 1, and 2).
    I created an invoice report and I printed it as test for the report and it works okay. I needed to change the page size of the report to a user defined size and reset all of the margins to zero.
    After I did that I was unable to print the report again and every time I tried to print the report nothing gets printed.
    I checked my environment to find the cause of this problem but I found nothing except that I'm using CR runtime for SP1 and I'm currently using SP2. So I did remove CR runtime for SP1 and install CR runtime for SP2.
    The problem didn't go away and I faced one more problem.
    Usually I'm using a dataset as a data source for my reports. After installing the CR runtime for SP2 I couldn't see any date column in my report data source (Dataset). All other types of columns appear except date fields! Why I have no Idea?
    After I do some more testing regarding my issue I found out the following
    1.     When I add a new report to my web application and I don't change the page setting the report work fine.
    2.     When I change the page setup settings (Page Margins, horizontal width and vertical height) the report show up okay but never gets printed.
    Why I don't know?
    Addition to that the report dataset (Data Source) showing in the field explorer never shows any date type field?
    All of the above issues happened with me after installing SP2.
    OS: WindowsXP Pro SP3
    CR 2008 (SP 0, 1, 2)
    VS 2008 SP1
    Please I need your help.
    Edited by: Sami Aljafer on Oct 12, 2009 8:35 PM
    Edited by: Sami Aljafer on Oct 12, 2009 8:38 PM

    Hi, Sami;
    Are you printing from the Crystal preview window, or in code?
    If you are printing from the preview window, try printing via code, such as:
    An example of print to printer:
    crReportDocument = New ReportDocument
    crReportDocument.Load("h:\labels2.rpt")
    ''Use error handling in case an error occurs
    Try
    ''Set the printer name to print the report to. By default the sample
    ''report does not have a defult printer specified. This will tell the
    ''engine to use the specified printer to print the report. Print out
    ''a test page (from Printer properties) to get the correct value.
    crReportDocument.PrintOptions.PrinterName = "
    dwcb12003\ZDesigner ZM400 200 dpi (ZPL)"
    ''Start the printing process. Provide details of the print job
    ''using the arguments.
    crReportDocument.PrintToPrinter(1, True, 1, 1)
    Please post your question about the dataset as a new post.
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Oct 12, 2009 2:28 PM

  • Unable to print to USB printer over the network

    Hi all,
    I have an iMac and an Macbook Air, both running 10.6.4, and I've got an HP LaserJet 1200 printer connected to the iMac by USB. Both machines are on my home wireless network (Linksys, FWIW).
    I seem to be unable to print to the LaserJet over the network from my Air. I've tried all manner of permutations of printer setup on the Air: IPP/LPD/HP JetDirect; entering the hostname (*.local) and the IP address of the host; leaving the queue blank and not; and leaving "Print Using" as generic vs selecting the LaserJet drivers. The printers appear in the "Default" Add Printer menu as Bonjour Shared, but this doesn't seem to work either.
    Following other threads, I've tooled around with CUPS (resetting the configuration file, etc.), with no success. The other threads I've found on the subject seem to be more specifically addressed to folks trying to use an AirPort.
    Any suggestions for what to try next?

    In that case, let me elaborate on what happens when I try to set up the printer via Bonjour, in case there are any clues in the behavior that I'm seeing. The printer seems to appear twice in the "Default" pane, with Kind as 'Bonjour Shared' and Printer Names as follows:
    HP LaserJet 1200 @ (hostname)
    HP LaserJet 1200 @ (hostname) @ (hostname)
    Selecting the first, it displays "Gathering printer information..." for a few minutes, then strikes out, suggesting Generic PostScript Printer rather than the correct driver. Whether I stick with that or select the correct driver manually and then try to print, it hangs on 'Copying print data..." (in the print queue).
    Selecting the second, it gathers printer information only for a second or two before settling on Generic PostScript Printer. If I stick with Generic PostScript Printer, it hangs on 'Connected to printer...' but if I select the correct driver, it hangs on 'Copying print data...' again.

  • Unable to print to pdf from any of my applications

    Hello,
    I am running Acrobat 8.0 on windows 7. Toshiba Qosmio 64 bit. I am unable to print to pdf from any of my applications. Office, Mozilla, Lotus 1-2-3 and others. When I choose the print option. And from the drop down menu choose Adobe PDF as the printer. And when I click to continue I get the little metered bar showing it's working, but then I get an error in the printer que. I don't even get an option what to save it as or where to save it to. It just goes straight to the metered bar showing its working. And it does this for all my programs where I can print to pdf. Can anyone help me? Also, this is a student version. Could the student version be unable to do this?
    Thank you,
    JimmyJoney

    Although Acrobat 8 is not supported on Win 7, you can try a few things. First, apply all updates to Acrobat 8. If this doesn't help, check to make sure that the PDF port was created. If not, you can try:
    Open Control Panel, select Printers
    * Click Add a Printer
    * Click Add a local printer
    * Select Use an existing port (should be preselected), change the port to "Desktop \*.pdf (Adobe PDF Port), click Next
    * On the next page, click Have Disk...
    * Click Browse and browse to C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Xtras\AdobePDF (or wherever you have Acrobat installed), click OK.
    * It should now show a series of "Adobe PDF Converter" entries. Select the first one and click Next
    * Change the printer name if desired, uncheck the box to use it as a default printer, click Next
    * Do not print a test page, click Finish
    * Find your new printer in Printers. Right click on it and select Properties, Advanced
    * Click "Print directly to the printer", click OK
    These last steps are detailed in the following discussion.

  • Unable to print in Reader X

    I am unable to print in Reader X, also it happened in Reader 9 - perhaps with the (clean) install of Snow Leopard from Leopard.  I am also using Neo Office (an OpenOffice for Mac).  Neither the Print Icon, nor the Print menu work - it does not bring up the dialog at all in X.  In 9xx, it would ACT as though it printed, but fail with a "no pages were selected", even though they were.  So, today I uninstalled 9xx & installed X fresh.  When it didn't print, I reinstalled it.  It still doesn't work.
    Any help appreciated.  (I can print just fine from other apps.  ; main printer right now is networked Xerox Phaser 8560)
    Log entries:
    12/30/10 7:57:34 PM    AdobeReader[2653]    *** WARNING: Method selectRow:byExtendingSelection: in class UIT_NSOutlineView is deprecated. It will be removed in a future release and should no longer be used.
    12/30/10 7:58:19 PM    [0x0-0x49049].com.adobe.Reader[2653]    Thu Dec 30 19:58:19 Macintosh.local AdobeReader[2653] <Error>: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
    12/30/10 7:58:19 PM    [0x0-0x49049].com.adobe.Reader[2653]    Thu Dec 30 19:58:19 Macintosh.local AdobeReader[2653] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    12/30/10 7:58:19 PM    [0x0-0x49049].com.adobe.Reader[2653]    Thu Dec 30 19:58:19 Macintosh.local AdobeReader[2653] <Error>: kCGErrorIllegalArgument: CGSOrderWindowListWithGroups: invalid window ID (-1)
    12/30/10 7:58:19 PM    [0x0-0x49049].com.adobe.Reader[2653]    Thu Dec 30 19:58:19 Macintosh.local AdobeReader[2653] <Error>: kCGErrorIllegalArgument: CGSOrderWindowList: NULL list pointer or empty list
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]    2010 12 30 19
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]    :59:06 Acrobat Plug-in load failure: Comments *** ImportReplaceAndRegister returned FALSE
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]    2010 12 30 19:5
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]    9:06 Acrobat Plug-in load failure: Multimedia
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]     *** ImportReplaceAndRegis
    12/30/10 7:59:06 PM    [0x0-0x49049].com.adobe.Reader[2653]    ter returned FALSE
    12/30/10 7:59:07 PM    [0x0-0x49049].com.adobe.Reader[2653]    2010 12 30 19:59:
    12/30/10 7:59:07 PM    [0x0-0x49049].com.adobe.Reader[2653]    07 Acrobat Plug-in load failure: Updater *** ImportReplaceAndRegister returned
    12/30/10 7:59:07 PM    [0x0-0x49049].com.adobe.Reader[2653]     FALSE
    12/30/10 8:00:04 PM    Installer[2719]    PackageKit: *** Missing bundle identifier: /Library/Receipts/NeoOffice-3.1.1-Patch-2-Intel.pkg
    12/30/10 8:00:04 PM    Installer[2719]    PackageKit: *** Missing bundle identifier: /Library/Receipts/NeoOffice-3.1.2-Patch-1-Intel.pkg
    12/30/10 8:00:04 PM    Installer[2719]    PackageKit: *** Missing bundle identifier: /Library/Receipts/NeoOffice-3.1.2-Patch-2-Intel.pkg
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    2010 12 30 20:01:53 Acro
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    bat Plug-in load failure: Comments *** ImportReplaceAndRegister returned FALSE
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    2010 12 30 20:01:5
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    3 Acrobat Plug-in load failure: Updater *** Imp
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    ortReplaceAndRegister retu
    12/30/10 8:01:53 PM    [0x0-0x59059].com.adobe.Reader[4400]    rned FALSE

    For the record, Mac 10.6.5.
    PDFs are the problem, I also see no link for a "possible" solution.  Every other application can print, including Firefox, Neo (OpenOffice for Mac), Preview, etc.
    My workaround has been to close Acrobat Reader, then open the PDF in Preview and print from there.

  • I am unable to print to the Lightning PDF software (by Avanquest Software) after updating to 6.02. It worked with the previous version of Firefox. Is there a patch or fix for this problem?

    I am unable to print to the Lightning PDF software (by Avanquest Software) after updating to 6.02. It worked with the previous version of Firefox. Is there a patch or fix for this problem?
    This is the error that is received:
    Cannot open file "C:\Users\Calandra\AppData\Local\Temp\Ask_a_Question__Firefox_Help.pdf". The process cannot access the file because it is being used by another process
    Any information that you can provide will be greatly appreciated.

    Sorry to say that, but the entire system seems ill-designed.
    If I understand correctly, then to add a new Section to a site, you have to subclass SubSection and somewhow integrate that into the system?
    I would be my expectation that you only need to subclass SubSection when you tried to introduce a new type of SubSection.
    The title & all other natural language Strings should never be hardcoded in Java code, but rather taken from some external storage (Database, XML, flat files, ...).

  • Unable to Print with Adobe Reader 9

    I just installed the free Adobe Reader 9. After opening a PDF document and attempted to print, I received an alert from Adobe Reader stating that there are no printers installed.
    This is not the case, there are several network printers installed and I'm able to print to them using other applications, such as Word, Browsers, etc.
    Anyone have any ideas before I uninstall this beast of a reader?
    Thanks!!

    My machine has been fine since I last reinstalled adobe reader 9. Tried to print a large pdf file today from my inbox in outlook express and machine again experienced the same problem. Was not able to open my printer and faxes window and unable to print anything else. I resolved the problem by taking the following actions:
    Opened Administrative tools in control paneland went to Component Services and clicked on Services(local).Scrolled window down to Print spooler and highlighted Print spooler. Tried to Stop the service. After some time received an error 1053 indicating that the service could not be stopped successfully.
    I then Tried to restart the service. This appeared to work correctly. at this point tried to reopen printer and faxes window and could now see my printers briefly before getting error msg indicating spooler problem again. When clicking on my printer icon I could see the document that I had tried to print when I experience the original problem in the printer queue. At this point decided to try and find the file in question. Found a file in C:\windows\system32\spool\printers directory with an filename of xxxxx.spl. This is the spooler print file. I then tried to delete this file but was not allowed to do so by the system. I then used a program called unlocker assistant and deleted the file. Hey presto all printing is now restored and working well again.
    It appears that the spool file generated was corrupted and the spooler could not handle the problem. Am not sure where the problem is created. It could be with adobe 9 or it could be a windows spooler problem.
    Graham Guthrie

  • Why am i unable to print off boarding passes for this weekend?

    why am I unable to print off boarding passes for hols this coming w'end?   I have spent hrs at home and with help from my local library but still no good and no prints.   I didn't used to get these problems so why now??????????/

    You ask "why" (twice), but you don't provide any information whatsoever.  How do you expect anybody to help?

  • Unable to print to Windows Queue for HP p1606

    So we have a windows 2003 server which has a printer queue for a HP p1606n.
    We can print direct DNS to the printer however not to the print queue. The print queue and windows machines attached to the queue can print fine.
    The jobs get to the queue and then disappear into the ether.
    What we've tried:
    Generic PS and PCL driver on the queue and printing computer
    Model Specific driver on both.
    Varying the model specific driver and the generics on each.
    trying the foo2 driver specific for the 1606.
    All do the same thing which is show the authentication window for the job and then we see it in the local machine queue and the nothing at the printer.
    We are stumped at this point.
    Any help appreciated.

    Hi @moports,
    Welcome to the HP Forums!
    I noticed that you are unable to print with your HP Photosmart 5520, on Windows 7 using a wireless connection. I am happy to help with your printing!
    Please see the following guides:
    'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7.
    Printer Does Not Maintain Wireless Connection.
    Also I would recommend the HP Wireless printing center, website. You want to make sure the router is broadcasting at 2.4 ghz not 5 ghz.
    This post, Incoming and Outgoing Printer Ports, by @VisionAiry. Will tell you which ports need to be open not closed on the router.
    Hope this information helps, and have a great day!   
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • I'm Unable to print. Is there a set up page withiin the eprintcenter that I can access

    I'm Unable  to  print  from  my  ipad to my  HP  eprinter.   Is  there  a  set up  page   withiin the  eprintcenter  that I   can  access to  check  the  status  of  my   print  jobs?

    Hello Cabby,
    Are you wanting to use AirPrint or ePrint? 
    HP ePrint : ePrint is a free service from HP that allows you to print from your email-capable device to your Web-connected printer, anytime, from any location, over the Internet. It is as simple as sending an email to the email address assigned to your product when you set up the ePrint service.
    Apple AirPrint : Apple’s AirPrint uses your local wireless network to print directly from your iPhone, iPad, or iPod to a local HP product. Any Apple product using Apple iOS 4.2 and above is compatible with Apple AirPrint.
    Can you advise what kind of printer you have?
    Thanks
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP. .....
    Reguards,
    Mo

  • I am unable to print from my ipod to HP5510 which is listed as one of Apple's Airprinters

    I  am unable to print from my ipod to HP5510 which is listed in Apple's list of recognised Airprinters

    Start up in safe mode
    http://support.apple.com/kb/PH4373   <<< click here.
    Restore your computer’s software
    http://support.apple.com/kb/PH3840   <<< click here.
    http://www.apple.com/buy/locator/   <<< click here.

  • HT4356 unable to print from my ipad mini

    unable to print from ipad1 or ipad mini.  tried all suggestions in support.  This problem has been highlighted before is there a a problem with an software upgrade.  I have hp 5510 that works fine fromPC.

    I rebooted my BT router,  Switched printer off and on, Checked printer on same wifi as router.  closed ipad wifi to forget this network and reselected. 
    Printer worked OK on my ipad1 up until a few months ago it has never worked on my new ipad mini.  works from my PC.

  • How do I use air print, after updating to 7.0 on iPad am unable to print. Pretty fed up with apples tricks

    Unable to print to hp printer AirPrint after update to 7.0. 7.1

    AirPrint Setup and Troubleshooting
    http://www.apple.com/support/ipad/assistant/airprint/
    How to print from your new iPad using AirPrint
    http://www.imore.com/print-ipad-airprint
    AirPrint Basics
    http://support.apple.com/kb/ht4356
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Unable to print from HP Deskjet 1510

    Scan and photocopy are working fine.HP print and scan doctor shows everthing is fine but I am unable to print test document. 

    Hi deepakgupta, Please try the following: Uninstall the software. Uninstalling the Printer Software.Unplug the USB printer cable.Clean boot the computer. How to perform a clean boot in Windows.Disable any Antivirus programs. Disable Antivirus software.Disable any firewall programs. Turn Windows Firewall on or off.Create a new user account. Managing User Accounts and Logins (Windows 7).Reinstall using the Full Feature Software And Drivers. (Wait for the software to tell you to plug in the USB printer cable.) Hope this helps!  “Please click the Thumbs up icon below to thank me for responding.”

Maybe you are looking for