Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.
Questions tagged [printdocument]
289 questions
0
votes
1 answer
C# PrintDocument align lower right corner
I'm using PrintDocument to print some text on the lower right corner of the page. I currently have the starting top position to be a static about 2 inches from the bottom. The problem I'm running into is that the text prints down and if it has…
user2308890
0
votes
1 answer
Capture print errors with System.Drawing.Printing.PrintDocument
The application my team is working on is developed using WPF & ,NET 4.0. The application also communicates with thermal printer connected to PC (like the ones used in malls, but its not a POS system). We only have 1 printer connected to the PC.
The…

aioracle
- 371
- 2
- 7
- 20
0
votes
2 answers
printdocument how to print large line complete?
image says all, there is 3 lines which not appears complete then when i print they dont see complete.
is there a property for this print the line down until this print all the complete line?
or the unique way is i count the letters by line and I…

angel
- 4,474
- 12
- 57
- 89
0
votes
2 answers
Printing text in Silverlight that measures larger than page
I have a silverlight application that allows people to enter into a notes field which can be printed, the code used to do this is:
PrintDocument pd = new PrintDocument();
Viewbox box = new Viewbox();
TextBlock txt = new…

user1166905
- 2,612
- 7
- 43
- 75
0
votes
1 answer
How to set default paper size to A5
I want to set my prnter's default paper size = A5
My code is
printDocument.DefaultPageSettings.PaperSize.RawKind = 11;
but this code does not work. Is there any other way? Please Help me.

user3134334
- 15
- 1
- 5
0
votes
2 answers
PrintDocument over-writes all but last page
The problem I'm having is that while printing a multi-page document, each page will over-strike the other with the exception of the last page. It's almost as if it's not clearing the contents of the page before starting a new one.
I've reduced it…

geneb
- 103
- 3
0
votes
1 answer
C# PrintDocument creates invalid xps file depending on default printer?
My C# application prints some pages to a xps file, however i have discovered that if the default printer is a networked printer then the created xps file is invalid "The XPS viewer cannot open this document".
This confuses me since i'm not even…

00jt
- 2,818
- 3
- 25
- 29
0
votes
1 answer
Negative Value not printed correctly
In my project printing a negative value with format flag right to left. but it print a value like this "136-". What am do wrongly? How to print value like "-1233".
Am setting string format like this:
Dim mAmtFormat As New…

Sathish
- 4,419
- 4
- 30
- 59
0
votes
1 answer
Convert Printdocument to Image
In my application i create a printdocument. now i want to convert printdocument to image.
How can i do this?
In before am using like this coding. (draw a every line in image if it have any other solutions? easy to convert printdocument to image)
…

Sathish
- 4,419
- 4
- 30
- 59
0
votes
1 answer
BeginPrint event and dataGridView problem
I have a dataGridView on the form and thats have many columns and rows. Now I want draw dataGrid column and rows to printDocument and then print. But when BeginPrint event of printDocument is in running, gridView columns and rows is empty, although…

Sadegh
- 4,181
- 9
- 45
- 78
0
votes
1 answer
Serializable issue on PrintDocument class
I am using a software called Laserfiche. This has a workflow server and an SDK that allows you to use your own custom activities.
There is a requirement when you create a custom activity. It must be serialize.
So I put the property [Serializable] on…

gianfrancopintus
- 43
- 1
- 5
0
votes
2 answers
Convert System.Drawing.Printing.PrintDocument to PDF c#
I have to use a 3rd party SDK that generates reports in a System.Drawing.Printing.PrintDocument format. Since my project is not a Windows Form project(it is a Web project),I need to convert this System.Drawing.Printing.PrintDocument to a PDF. I have…

user1550951
- 369
- 2
- 9
- 26
0
votes
0 answers
How to print clearly contents of panel (basically labels) to printer in C# WinForms
I have this code for printing a panel to a printer. It has labels and those labels are the only thing that I want to print. It works but when it prints, the labels doesn't print clearly. Its like blurred or something.
private void…

ViFer
- 283
- 1
- 6
- 23
0
votes
1 answer
PrintDocument (FixedDoc) WordWrapping?
So I am printing out some text from a textbox, which has wordwrapping enabled, but when I print out the document, the string that should be wordwrapped does not, and cuts offs on the page. I'd like to simply enable word wrapping for my printed…

user1819301
- 113
- 4
- 17
0
votes
1 answer
PrintDocument (c#) ignores printer configuration
I've got a few logical printers configured and pointing to the same physical printer. Each logical printer is configured with a specific input and output tray. Opening a document, e.g. a pdf, and printing to any one of these printers results in a…

Sean Rock
- 113
- 9