Questions tagged [system.printing]

80 questions
0
votes
0 answers

c# System.Printing AddJob() generates exception on windows server 2012 r2

I'm trying to write a c# program that will print a document to a network printer using the System.Printing namespace. The code works on my Windows 7 Desktop, but not on the Windows server. LocalPrintServer server = new LocalPrintServer(); //To find…
0
votes
1 answer

Specify a different inputbin when printing with System.Printing (printQueue.AddJob)

I'm printing a document with the following code : LocalPrintServer localPrintServer = new LocalPrintServer(); PrintQueue defaultPrintQueue = LocalPrintServer.GetDefaultPrintQueue(); // Call AddJob PrintSystemJobInfo myPrintJob =…
michelqa
  • 137
  • 1
  • 2
  • 14
0
votes
0 answers

startdocprinter returns bad non-zero print queue JobID. It's invalid and decreases on subsequent runs

I'm using a slightly modified version of the vb.net/win32 example of the MSKB RawPrinterHelper code to send RAW print jobs to the print queue. Everything works perfectly, It spools, it prints, and generally life is good, however the ID I get back…
Terry Carmen
  • 3,720
  • 1
  • 16
  • 32
0
votes
0 answers

How to print high definition images?

Printer resolutions are generally 5-6 times greater than a screen's resolution. A printer's resolution can be around 6600 x 5100 as opposed to a full HD screen's resolution: 1920 x 1080. An 1920 x 1080 image looks great on a screen but to avoid…
0
votes
1 answer

White spaces appear around the document to preview

I have WPF Application which use printing. I have class inherite from "DocumentPaginator" class ReportPaginator : DocumentPaginator { private Size pageSize; public override IDocumentPaginatorSource Source { get { return null; } …
Hakan Fıstık
  • 16,800
  • 14
  • 110
  • 131
0
votes
2 answers

Missing PrintQueue from System.Printing

I am coding C# in Visual Studio 2010. I want to add System.Printing.PrintQueue (http://msdn.microsoft.com/en-us/library/system.printing.printqueue(v=vs.100).aspx) to my code, but the dropdown list doesn't seems to have it. How do I solve this?…
0
votes
0 answers

Writing into JobStream not printes document

I have the following code: var server = new LocalPrintServer(); var queue = server.DefaultPrintQueue; var job = queue.AddJob("Test job"); var stream = job.JobStream; var bytesToWrite = Encoding.Unicode.GetBytes("Hello…
0
votes
2 answers

How to get number of printed pages using system.printing?

I am writing simple app which will monitor how many pages I print every day. I am using .Net and I found System.printing namespace which seems easy to use. Below is my code. public static void NumberOfPagesPrintedTest() { PrintServer…
0
votes
0 answers

Is it possible to display a Report Document that constitutes a SAP Crystal Report within a Print Dialog as a Print Document content

Print Documents only take in String values. Is it possible to display a Report Document of .rpt within the same, So as to facilitate Print Preview in Windows C#.NET? Have created a Report Document and this document shows a Crystal Report …
0
votes
2 answers

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

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,…
tuseau
  • 1,334
  • 4
  • 17
  • 37
0
votes
1 answer

Exception when printing from an Array

I have this following code: public void Print() { String formatString = "%12s %7s %9s\n"; System.out.format(formatString, "Surname", "Initial", "Extension"); for (int i = 0; i < directory.length - 1; i++) { …
0
votes
0 answers

How to Notify Print status of a pdf document after print?

Is it possible to print a PDF document using 'System.Printing' Namespace? How does it differ from System.Drawing.Printing'? I want to print a document and check whether it is printed or not! Presently i use a process to print pdf as var…
Murali Uppangala
  • 884
  • 6
  • 22
  • 49
0
votes
1 answer

Using PrintQueue Class in Visual Studio 2005

I want to use the PrintQueue Class to Manage the printers and print jobs. I am having Visual Studio 2005, but PrintQueue is not supported in vs2005. Is there any way to use this class in vc2005?
Sudz
  • 4,268
  • 2
  • 17
  • 26
0
votes
1 answer

Server side printing of PDF files over the network installed Printers

Gone through the already existing posts on this topic, but my requirement is some what bit different. Print jobs over the Network installed printers, upon a action in client side browser. Web server has got all printers in it, based on the client…
Jay
  • 1,869
  • 3
  • 25
  • 44
0
votes
1 answer

Print file from WCF Data Service

I have a WCF Service Operation that receives an image as a Byte stream, and should print that image locally on the server silently. No dialogs or popups, when the service is called it should send the image to the printer straight away. I am trying…
jere
  • 4,306
  • 2
  • 27
  • 38