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. General Programming
  3. C#
  4. System.Drawing.Printing Issue

System.Drawing.Printing Issue

Scheduled Pinned Locked Moved C#
helpcsharpasp-netsharepointgraphics
1 Posts 1 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.
  • J Offline
    J Offline
    Jason McBurney
    wrote on last edited by
    #1

    When I Print from my computer life is good. when I print from the SQA computer life - not so good. My box Windows XP sp 2 SQA Windows 2003 SE SP 2 Using the local system account results in the following error:

    [2009/08/31 17:19:49.392] System.ComponentModel.Win32Exception Access is denied
    File Name : Method : StandardPrintController.OnStartPrint Line Number : 0
    File Name : Method : PrintControllerWithStatusDialog.OnStartPrint Line Number : 0
    File Name : Method : PrintController.Print Line Number : 0
    File Name : Method : PrintDocument.Print Line Number : 0
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrinterStrategy\LocalPrinter.cs Method : LocalPrinter.OutputContext Line Number : 71
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.printHelper Line Number : 94
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.Print Line Number : 44
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrintManager.cs Method : PrintManager.ProcessPrintRequest Line Number : 160

    If I enter a specific user account, and validate Both RPC services are running, the error changes to:

    [2009/09/03 10:10:06.595] System.ComponentModel.Win32Exception The RPC server is unavailable
    File Name : Method : StandardPrintController.OnStartPrint Line Number : 0
    File Name : Method : PrintControllerWithStatusDialog.OnStartPrint Line Number : 0
    File Name : Method : PrintController.Print Line Number : 0
    File Name : Method : PrintDocument.Print Line Number : 0
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrinterStrategy\LocalPrinter.cs Method : LocalPrinter.OutputContext Line Number : 71
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.printHelper Line Number : 94
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.Print Line Number : 44
    File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrintManager.cs Method : PrintManager.ProcessPrintRequest Line Number : 160

    I am out of ideas, Any thoughts are welcome The Framework code, StandardPrintController, causing me grief:

    public virtual void OnStartPrint(PrintDocument document, PrintEventArgs e)
    {
    IntSecurity.AllPrintingAndUnmanagedCode.Assert();
    this.modeHandle = document.PrinterSettings.GetHdevmode(document.DefaultPageSettings);
    }

    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