Questions tagged [system.printing]

80 questions
1
vote
1 answer

System.Printing Printqueue.AddJob methods consumes memory and doesnt releases once the document is printed

I am Using System.Printing library in my application with .net framework 3.5. When i Print job on any printer using PrintQueue.AddJob memory gets increased and doesnt releases it. Memory is released only if the application is closed. If i print more…
Sagar
  • 399
  • 4
  • 11
1
vote
4 answers

Convert Printing Units to MM

I have my printer set to MM. I am trying to work out how to centre text when printing using the following code: Dim CentrePage As Single CentrePage = Convert.ToString((e.PageBounds.Width / 2) - (e.Graphics.MeasureString("SENpic Report - " &…
1
vote
3 answers

Haskell printing [[[Char]]] to IO

Hi I have small problem with printing [[[Char]]] using IO. I have a [[[Char]]] list - in another words [[String]] I would like to print them like…
user2184057
  • 924
  • 10
  • 27
1
vote
2 answers

System.Printing skips a few job status states?

I am sending print jobs to the printer and I try to keep track of their status in order to reflect it in a queue of my own. It seems as if the print jobs never go through "Printed", "Completed" status. I made a small test program to see if maybe I…
shwartz
  • 631
  • 3
  • 13
  • 29
1
vote
1 answer

C# - Enumerating network printers on remote machine

I am writing an application to check if a network printer from a print server is connected to a remote machine, but having trouble with the remote part... I'm using System.Printing and passing in the remote hostname/IP address through the 'compID'…
cmode
  • 11
  • 1
  • 5
1
vote
1 answer

C# WPF Application Printing issue (PageOrientation property not existing)

Has anyone ran into problem where you just can't use the PageOrientation property in your C# WPF project? I have tried everything, put it still says: "The name 'PageOrientation' does not exist in the current context". I have all usings included,…
Marek
  • 261
  • 4
  • 14
1
vote
1 answer

App Freezing/Hanging on Printing.PrinterSettings.InstalledPrinters iteration

I have the following piece of code which gets the list of installed printers into a combobox: For Each s As String In Printing.PrinterSettings.InstalledPrinters edtPrinter.Items.Add(s) Next However I have a problem with a single…
Molloch
  • 2,261
  • 4
  • 29
  • 48
1
vote
1 answer

Print document and attach event for printer spooler

I want to print a document (in the default printer) and be able to track it's printing job, so i will be able to see if the job was sent to the spooler, and that it was actually printed and not canceled for some reason. I want to catch the print…
user590586
  • 2,960
  • 16
  • 63
  • 96
0
votes
1 answer

Starting point to develop Metro UI style application for Printers in Windows 8?

Currently we have an application which allows the user to include/remove the pages, images and text(which is given to the printer, using hooking we are getting the printed document and then processing it). Now we want to develop the same for Metro…
Syed
  • 931
  • 13
  • 28
0
votes
2 answers

Batch Printing Using Windows Forms in C#

I want to create a windows form application that will sit on our local server and print invoices to a network printer say every 30 minutes. Can someone confirm that you definitely can't use a console application to print (invoices will include…
ComfortablyNumb
  • 1,448
  • 10
  • 37
  • 64
0
votes
1 answer

Trying to put text INFRONT of a document Im about to send to printPreview?

I try to put text on a document Im about to send to PrintPreview using the event PrintPageEventHandler. With this code: System.Drawing.Printing += new System.Drawing.Printing.PrintPageEventHandler(PrintDocument_PrintPage); Then I use the…
0
votes
0 answers

C# Printing with PrintTicket and Locked Printing

I am trying to print a document from one of our Applications which is located on a servers. The application is based on C# .Net Framework 4.7.2. To perform the printing, I want to use the PrintTicket, because we need to edit some settings. My…
0
votes
1 answer

New PrintServer object fails, "printer name is invalid"

I'm migrating a working ASP.NET web application from WS2008R2 to WS2016, but the same happens on WS2012R2. It fails when executing: new System.Printing.PrintServer(@"\\printserver"); It throws: System.Exception: An exception occurred while…
Armaggedon
  • 399
  • 4
  • 14
0
votes
2 answers

Print Web Page without showing Print Dialog

I want to print webpage using C# without showing Printer Dialog box. I want to provide the url and it should print the page as displayed. Currently my code is printing HTML code. Please guide me to do so.
Adeel Kamran
  • 103
  • 7
0
votes
1 answer

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…
Alexander Taran
  • 6,655
  • 2
  • 39
  • 60