system.printing

Need help with modifying PrintTickets through XML

Doing some work on controlling printing via the System.Printing framework (main classes are PrintQueue, PrintTicket and PrinterCapabilities). Like with most stuff I've been working on lately, there's damn little information about it. I'm hoping to compile some good information in this question to help flesh out this subject. PrintTick...

modifying a print preview

I'm building a c# app that displays a print preview (of a document) and then asks the user(s) to 'sign' the document via a InkPicture control. I've got no problems extracting the Bitmap from the inkpicture control and applying it to the PrintDocument (I do this earlier in the process before the print preview and paint those images to the...

InstallPrintQueue: how to create a new port? (.net,c#)

I'm fighting here with System.Printing namespace of .net framework. And what i always saw as a wired thing in all the tools by MS to manage my printservers is they lack Port and Driver managing functionality. So I'm stuck here with a piece of code that works: PrintServer _ps = new PrintServer(PServer, PrintSystemDesiredAccess.Adminis...

"Printer..." button in the Windows Page Setup Dialog (Vista)

We're using the Windows Forms "Page Setup" dialog to allow the user to select a page size prior to print preview. On XP, the dialog displays a "Printer..." button which allows the user to select a printer and select from a list of page sizes supported by only that printer. On Vista, the very same code displays the dialog without any butt...

System.Printing to return printqueue status - properties never return true

Hi, I'm using System.Printing to interrogate PrintQueue status - my aim being to obtain status updates & errors, specifically the booleans IsOutOfMemory, NeedUserIntervention, IsOutOfPaper, HasPaperProblem, IsPaperJammed, IsInError, IsPaused, IsBusy, IsPrinting, IsProcessing, IsInitializing, IsDoorOpened etc. The problem is the propert...

Network printers and the PrintServer.GetPrintQueues method

I have a feeling that the PrintServer.GetPrintQueues method does not return the network printers. If this one is true, what other choices do i have? ...

PrintableArea in C# - Bug?

I am having an issue with PageSettings.PrintableArea's width and height values. Width, Height, and Size properties claim to "get or set" the values. Also, the inflate() function claims to change the size based on values passed in. However, all of these attempts to change the value have not worked. Inflate() is ignore (no error, just pas...

How to find which computer send the print job?

I'm creating a postscript printer for windows 7 which will accept print jobs and forward them to real printers. It will be shared in the LAN and can receive print jobs from LAN computers. I want to find out from which computer a print job came from before forwarding them to a printer. How can I do this? Is the details available in the pr...

Printing two columns with "address cards"

For an application i'm developing as my first c# project, i'd like to be able to print information from the application in a similar style as the 'card style' printing option that's available in outlook. I've created a User control that is layed out the way i'd like to print it and am able to add that control as often as needed to a for...

Printing from ASP.NET to a network printer

I need to send documents to a network printer (\myserver\myprinter). I'm using the System.Printing classes to print, and it works fine when it's from a Windows Service, but from an ASP.NET app, it's only able to print to local printers, not network printers. The error I'm getting is "Printer Name is not valid" This is what I'm using to...

Access Denied when calling PrintQueue.Pause() method in C#.net

I'm trying to pause a windows 7 print queue using C#.NET visual studio 2008. I have full administrator rights but when I run the following code to Pause the Queue it says Access is Denied. Please help me. LocalPrintServer lps = new LocalPrintServer(PrintSystemDesiredAccess.AdministrateServer); //PrintServer lps = new Pri...

How to get System.Printing.PrintServer.GetPrintQueues to return the print queue list from remote server?

Problem I'm trying to get a list of print queues available on a remote server. Ultimately this will need to be performed from ASP.NET, but for now I'd settle for a console application to work. When I create an instance of the System.Printing.PrintServer class using the path to a remote server I am able to get basic information about...