FAQ Database Discussion Community

Argument in Event Handler using Lambda

I've read a bunch of these similar topics and I can't seem to figure this one out. Before I had something like this: PrintDocument pd = new PrintDocument(); pd.PrintPage += PrintPage; pd.PrinterSettings.PrinterName = photoPrinter; pd.Print(); private void PrintPage(object sender, PrintPageEventArgs e) { Image i = Image.FromFile(@"C:\workspace\FullSizeRender.jpg"); Point p = new...

printdocument adds blank page

I'm trying to print data from a database using printdocument and i got it to where it prints the data from the specified range but there are still 2 things that go wrong the things that still don't work like intended are on printing if a page is almost fully...

PrintDocument default DPI value in C#?

I created some graphics to be printed assuming that the PrintDocument class uses the standard 96 dpi (an inch of the drawing requires 96 pixels on the printout), but when I print those graphics on paper they appear smaller thus not having the appropiate dimensions. So what is the default...