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. Runtime print from asp.net

Runtime print from asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadminwindows-admin
2 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.
  • M Offline
    M Offline
    monika_vasvani
    wrote on last edited by
    #1

    Hi, I am develpoing an intranet application using ASP.Net which uses crystal reports. The IIS is installed in my machine. But the printer is connected to server. When I try to take printout it raises an error as: Error in File C:\inetpub\wwwroot\Temprt.rpt: Request cancelled by the user. The code I used is: crpt.PrintOptions.PrinterName = "\\geo01\hp LaserJet 1300 PCL 6" crpt.PrintToPrinter(1, False, 1, 1) Can any one please say me how to fix this problem. Thanx monika.

    A 1 Reply Last reply
    0
    • M monika_vasvani

      Hi, I am develpoing an intranet application using ASP.Net which uses crystal reports. The IIS is installed in my machine. But the printer is connected to server. When I try to take printout it raises an error as: Error in File C:\inetpub\wwwroot\Temprt.rpt: Request cancelled by the user. The code I used is: crpt.PrintOptions.PrinterName = "\\geo01\hp LaserJet 1300 PCL 6" crpt.PrintToPrinter(1, False, 1, 1) Can any one please say me how to fix this problem. Thanx monika.

      A Offline
      A Offline
      Amit Kumar Chikara
      wrote on last edited by
      #2

      First make it sure that you are able to take printout on that network printer normally like for testing you can just print a Wrod document. If you are able to take printout on that network priner, then copy your rpt file outside the wwwroot folder just to check the accessbilty of that file to printer.

      Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com

      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