Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Crystal Report Printing From ASP.net web page.

Crystal Report Printing From ASP.net web page.

Scheduled Pinned Locked Moved ASP.NET
helpasp-netsysadmincsharpwindows-admin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VikashGohil
    wrote on last edited by
    #1

    Hello, this is Vikash Gohil. I have a developed a Web Application whereby i need to print a report from my application. The printer is installed on Client PC and is shared on the network. I have installed the printer on the Web Server. The Code I use is: report.PrintOptions.PrinterName = "\\PCName\PrinterName" report.PrintToPrinter(1,false,1,1). Now the problem I am facing when given print from Web Server is as below: When I give command for Printing a Test Page, it prints properly. When I give Print command from a Word, PDF etc documents, it still prints properly. But When I give Print Command using above code from My Web Application (ie from Browser Window), it displays a error Message on the PC on which Printer is Attached. Spoolsv.exe Application Error Message : "The Instruction at "0x500a0330" referenced memory at "0x00000000". This memory could not be read. Anyone has any idea why I am getting this message when printing from my Application and not while printing normally. Do I have to Set any other permissions for the Printer on the Server, eg. permissions for IIS to Print from that printer or permissions for ASPNET user for the printer. Please Anyone could suggest me some thing in this regards. Any help would be greatly appreciated. Awaiting a reply soon. Thanks in Advance.

    A 1 Reply Last reply
    0
    • V VikashGohil

      Hello, this is Vikash Gohil. I have a developed a Web Application whereby i need to print a report from my application. The printer is installed on Client PC and is shared on the network. I have installed the printer on the Web Server. The Code I use is: report.PrintOptions.PrinterName = "\\PCName\PrinterName" report.PrintToPrinter(1,false,1,1). Now the problem I am facing when given print from Web Server is as below: When I give command for Printing a Test Page, it prints properly. When I give Print command from a Word, PDF etc documents, it still prints properly. But When I give Print Command using above code from My Web Application (ie from Browser Window), it displays a error Message on the PC on which Printer is Attached. Spoolsv.exe Application Error Message : "The Instruction at "0x500a0330" referenced memory at "0x00000000". This memory could not be read. Anyone has any idea why I am getting this message when printing from my Application and not while printing normally. Do I have to Set any other permissions for the Printer on the Server, eg. permissions for IIS to Print from that printer or permissions for ASPNET user for the printer. Please Anyone could suggest me some thing in this regards. Any help would be greatly appreciated. Awaiting a reply soon. Thanks in Advance.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Here is a complete article on the same. Have a look :) Automatically Printing Crystal Reports in ASP.NET [^]

      Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      V 1 Reply Last reply
      0
      • A Abhijit Jana

        Here is a complete article on the same. Have a look :) Automatically Printing Crystal Reports in ASP.NET [^]

        Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        V Offline
        V Offline
        VikashGohil
        wrote on last edited by
        #3

        Hello, Abhijit. Thanks for the reply. I have gone through the article as suggested by you. I have a query. The article says of mapping the network printer on the Server and to do this we have to make changes in registry. I want to know how mapping of printer is done and what changes do I have to make in registry so that the Web Server has full rights for network printer. Can you please provide me guidance in this issue. Awaiting your reply. Thanks Again.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups