Questions tagged [printdocument]

Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.

289 questions
3
votes
4 answers

How can I flip/rotate a PrintDocument in .NET?

I have a document that I want to be flipped / rotated 180 degrees when printed. (This is due to the orientation of label stock in the printer). There is a property PrintDocument.PrinterSettings.LandscapeAngle but it is read only. I think this…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
3
votes
2 answers

PrintDocument N of N Pages

I am manually printing and drawing a document using this class but not sure how to be able to write on the document Page 1 of 10, Page 2 of 10 etc Any ideas?
Jon
  • 38,814
  • 81
  • 233
  • 382
3
votes
0 answers

Printdocument, ignore page feed for Thermal Printers

Is there a way to ignore page feed for thermal printers while using the PrintDocument? In terms of printing a "receipt", if there are a lot of items on it (100's) the printer always puts a blank space between items where it thinks there should be a…
clamchoda
  • 4,411
  • 2
  • 36
  • 74
3
votes
0 answers

Print a Cheque with PrintDocument in VB.NET

I am using following code in VB.NET 4.0 to print a cheque. In printpreview dialog, print is shown correctly but when printed actually, print starts from bottom of cheque. I want print to start from start point of cheque. Cheque is inserted in middle…
Hemal
  • 3,682
  • 1
  • 23
  • 54
3
votes
0 answers

is it possible to queue multiple Print Jobs in Android using Print API?

So far I'm able to print a single PDF document stored on my external storage. But I want give print command for multiple documents. (Queueing Print Jobs) So first question is that is it possible to queue printing of all documents without showing…
Nayanesh Gupte
  • 2,735
  • 25
  • 37
3
votes
1 answer

.net Printing with staple

In my project i have to print a liste of images files (.png) with differents settings, and i ca do it without problem using the native .Net System.Drawing.Printing.PrintDocument classe : PrintDocument.DefaultPageSettings.Landscape allow me to…
sstassin
  • 398
  • 1
  • 3
  • 23
3
votes
0 answers

Image blurry when print through PrintDocument in c#

I'm trying to print my photo through c#. My printer is EPSON L351. When printing through Windows picture viewer, the photo quality is quite high. But when I print the photo through c#, it just keep blurry. The photo has the size of 1286.76*1930.4.…
3
votes
2 answers

Print multiple multipaged files with one Printdocument

I want to print a list of multipage .tiff files. The problem i'm having is that i'm not getting multiple pages, only the first page gets 'printed'. Can someone point out to me what i'm exactly doing wrong? Private Sub docPrintPage(sender As Object,…
User999999
  • 2,500
  • 7
  • 37
  • 63
3
votes
0 answers

c# PrintDocument prints synchronously

The class PrintDocument print asynchronously, however I need to check at the time of printing whether printing was successful. I'm doing by checking the print queue but the Print() method is asynchronous and not always have the correct information.…
Bruno
  • 438
  • 1
  • 5
  • 13
3
votes
1 answer

Choosing Correct papersize when printing with .NET PrintDocument

When I am looping through each page I need to decide the size of a page and choose what size to print it in. is there an easy way to determine what size they are suppose to be? right now i was going by the ratio of width and height. If ratio >=…
greektreat
  • 2,329
  • 3
  • 30
  • 53
3
votes
3 answers

PrintDocument.Print() throws a Win32Exception

I'm getting a strange exception from the following code: var printDialog = new PrintDialog(); printDialog.ShowDialog(); var printDocument = new PrintDocument { DefaultPageSettings = { Landscape = true, PrinterSettings = new…
ChrisFletcher
  • 1,010
  • 2
  • 14
  • 31
3
votes
3 answers

How do I catch the error from my printer with PrintDocument?

I am using the PrintDocument class to print to my Brother label printer. When I execute the Print() method, the printer starts flashing a red error light, but everything else returns successful. I can run this same code on my laser printer and…
Scottie
  • 11,050
  • 19
  • 68
  • 109
3
votes
0 answers

winrt printing using printdocument doesn't work with large images

I'm trying to use the PrintDocument in windows 8 for printing. However, when large images are present in the StackPanel I get all sorts of problems. Sometimes I get empty pages, in other cases the programs gets stuck in printDoc.AddPage, and in…
3
votes
2 answers

How can I process an image in .NET for a full-page print with a quality like Windows Photo Gallery does it?

I'm writing a printing routing in C#, using the .NET PrintDocument class, handling the OnPrintPage event. I've managed to maximize the margins and print the Image in landscape mode, but it simply does not look as good as when I print the same image…
Triynko
  • 18,766
  • 21
  • 107
  • 173
3
votes
2 answers

How can I save a PrintDocument to a file?

I've created a PrintDocument in C#, I can print it, but now I want to save it to a file. Is it possible to save it as a word document?
Peter Bennett
  • 31
  • 1
  • 1
  • 3
1 2
3
19 20