Questions tagged [system.printing]
80 questions
1
vote
2 answers
How many chars one line can contain?(C# printing text)
Ok so I want to print the text of a text box but I have one problem when I have a line that is too big it goes out of the page how can I know how many chars a line can contains within the bounds, keep in mind that the size and font change.
I already…

Wergenwolf
- 15
- 3
1
vote
1 answer
PDF document is always sent to the default printer despite selecting another printer in the print dialog box
I need to have the users of a wpf application to be able to choose printers when they print a particular .pdf file. I can get it to print but it always goes to the default printer no matter what I do. Most documents for this application need to go…

dennisT
- 57
- 2
- 8
1
vote
0 answers
Setting the media type on a printer in windows using C#
Background
I'm trying to write a program using the net5.0-windows framework (C#) that allows me to print my documents in different media types.
I can set almost everything via the System.Printing printDocument class but can't seem to change the…

T.script
- 297
- 1
- 3
- 13
1
vote
1 answer
How to install .PRI printer definitions on SAP?
I'm trying to help a customer with SAP printing. I have the .PRI definition files from the printer Vendor. Where in SAP would the Printer definitions get loaded and/or configured?

jose xavier
- 11
- 3
1
vote
3 answers
How do I make my array print repetitions of an input once? (JAVA)
I have to design a program that takes in arbitrary input from 0-50, prints out all the inputs ONCE, and then prints out the occurrence of each input.
I have it working to some degree, but, when the input is:
1 , 2 , 3 , 3 , 3 , 6 , 9 , 0 , 0
It…

kingstreet73
- 13
- 3
1
vote
2 answers
Why is my 2D Array Maze not printing what is generated?
My aim was to generate a maze made of a 2D Array of Cell objects. Below is the code for both the cell and the maze. Using the debugger I can see that booleans are changing values, and the generation progresses as expected, however when it gets the…

Sarah Cohen
- 706
- 1
- 7
- 11
1
vote
2 answers
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…

Rick
- 5,029
- 2
- 33
- 34
1
vote
0 answers
Unable to get number of copies of a print job in c# using PrintJobInfoCollection
I am creating a custom print job monitoring application in C# Win Forms, I am able to get most the print job information using PrintJobInfoColletion but I am not able to get number of copies here is my code so far:
PrintJobInfoCollection jobs =…

Ali Ahmed Sahi
- 73
- 1
- 8
1
vote
0 answers
Modify a printTicket
I'm trying to modify a print ticket since many days. :(
Here is the code :
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Printing;
using…

michelqa
- 137
- 1
- 2
- 14
1
vote
1 answer
System.Printing namespace set printer page source
I am trying to print XPS stream through System.Printing namespace
Stream stm = pdftron.PDF.Convert.ToXps(pdfdoc);
LocalPrintServer localPrintServer = new LocalPrintServer();
PrintQueueCollection pqc = localPrintServer.GetPrintQueues();
…

sangram parmar
- 8,462
- 2
- 23
- 47
1
vote
1 answer
Get Printdriver information with System.Printing classes
I try to get information about several printers in our network. Because WMI isn't allowed on our server I try to get the same information I would get with the Win32_PrinterDriver WMI-class e.g. ConfigFile, DataFile, DependentFiles, DriverPath and so…

Nitro.de
- 821
- 10
- 27
1
vote
1 answer
How to programmatically print on Letterhead, Cardstock, Pre-printed paper in .NET
I am attempting to print from a WCF service using the System.Drawing.Printing library. The problem is that I am attempting to choose a paper type (or media type) of Letterhead, Cardstock, or Pre-printed paper which does not appear to be available in…

mpetersen
- 13
- 4
1
vote
0 answers
How to Disable Advanced Printing Features (RawOnly) with C#
I'm trying to Disable Advanced Printing Features (RawOnly) with C#.
I can list all printers:
foreach (string printer in PrinterSettings.InstalledPrinters)
{
Console.WriteLine(printer);
}
I can Read RawOnly feature:
PrintQueueAttributes[]…

fapw
- 185
- 1
- 2
- 15
1
vote
0 answers
Possible causes of PrintCommitAttributesException
I am logged to my computer with domain1\user1
I'm logging on another computer with Remote Desktop using domain2\user1 and try to commit attributes. printQueue.Commit(); throws an error.
Does anyone have any idea why?
static void Main(string[]…

lixonn
- 1,033
- 1
- 12
- 28
1
vote
1 answer
Printing WPF controls without using PrintDialog isn't fully rendering on sizes larger than NorthAmericanLetter sized paper
I have run into a problem that seems to have little information on the web and has been giving me trouble the past two days. When I print to an 8.5 x 11" piece of paper, the output is correct on all printers. When I print to 11 x 17", the output is…

KCL
- 113
- 11