printdocument Questions
7
In C#, I am trying to print an image using PrintDocument class with the below code. The image is of size 1200 px width and 1800 px height. I am trying to print this image in a 4*6 paper using a sma...
Baloney asked 2/4, 2012 at 19:29
2
Solved
I would like to print a file using PrintDocument in C#. The file is simple HTML (I need it because I need the text in the file to be located in specific places within the page.)
My question is, ho...
Kasey asked 6/10, 2011 at 15:37
4
Solved
I am developing a full screen kiosk application using c#. I need to print tickets and receipts. I use the PrintDocument class for the printing. Printer prints perfectly, but i need to disable the p...
Affix asked 1/4, 2011 at 8:54
4
Solved
I'm building an ASP.NET application that requires printing using PrintDocument method:
PrintDocument.Print()
Printing works properly in development env with IIS express. when publishing it to an...
Lesko asked 1/1, 2014 at 15:49
0
I have a window service the prints certain documents with image using the PrintDocument class. Occasionally, I'm encountering this error upon printing "The data area passed to a system call is too ...
Succulent asked 27/2, 2018 at 10:2
1
I want to print an existing pdf file a second time with a pdf printer.
I try to use PrintDocument. But how do I tell PrintDocument the name of the existing document??
Thanks in advance!
Fortunetelling asked 17/12, 2017 at 17:9
1
Solved
Based from the documentation, adding these codes should add margin to the print document, but when I used it in my codes, I can't see any margin being added. Is my usage on the code correct? Here i...
Puttergill asked 9/3, 2017 at 7:37
1
Solved
I'm new in printing in vb.net, what I want to do is printing DataGridView items
I searched online for code and I found this source from MSDN, the code work perfect but what I want is printing the D...
Territorialize asked 13/10, 2016 at 1:5
0
After some investigation of printing in UWP I've highlighted:
No native way to print PDF document directly from your app without redirecting this task to Edge or other similar program.
There is a...
Keever asked 3/10, 2016 at 17:4
3
Solved
I'm creating an application using C# with Winforms and now I need to print the receipt of sale on a thermal printer. To do this I'm creating a text file and reading it to print using the PrintDocum...
Illomened asked 25/9, 2016 at 23:48
2
I'm trying MSDN's example of printing using PrintDocument, but it's not going so well. I've got it all to compile, but when I hit print, a "Fax Sending Settings" window pops up. Is this supposed to...
Coblenz asked 11/10, 2013 at 14:50
2
Solved
I'm generating a receipt and am using the Graphics object to call the DrawString method to print out the required text.
graphics.DrawString(string, font, brush, widthOfPage / 2F, yPoint, stringfor...
Exhibitive asked 29/7, 2009 at 21:14
1
Solved
Right now, I'm trying to build my form on a PrintDocument, but the only way for me to see where stuff is actually appearing on the page is to print a paper. It works, but I have a lot of stuff I ne...
Refutative asked 11/10, 2013 at 15:30
1
Solved
I have an application that prints how many bar codes you want, but if the amount of bar codes is bigger than the size of the PrintDocument it doesn't jump to the next page.
I'd like to know how ca...
Sclerite asked 15/9, 2013 at 16:8
2
Solved
I'm writing a WinForms .NET program that needs to lay some text out on a page (with a few basic geometric/vector graphics). Is there an equivalent of OS X's Core Graphics and/or Core Text? So far, ...
Witt asked 3/7, 2013 at 13:25
3
Solved
This is the best I've come up with:
public static int GetPageCount( PrintDocument printDocument )
{
printDocument.PrinterSettings.PrintFileName = Path.GetTempFileName();
printDocument.PrinterSet...
Larochelle asked 29/6, 2010 at 1:11
3
Solved
Why is finding out this magic Rectangle so difficult?
In the OnPrintPage event I have PrintPageEventArgs and I am trying to draw using the Graphics within the bounds of the maximum printable area....
Muzz asked 6/1, 2012 at 17:11
6
How do you set PrintDocument.PrinterSettings.PrinterName to be the default printer?
I am not talking about setting the default printer in the operating system. Rather, I am talking about setting t...
Recognizance asked 2/3, 2011 at 6:53
1
Solved
I am trying to get the printer status of a PointOfSale printer using the following code:
Hashtable properties = new Hashtable();
ManagementObjectSearcher searcher = new ManagementObjectSearcher("S...
Maupassant asked 6/9, 2011 at 19:10
2
Solved
I'm developing a WinForm Printing application for our company.
When the document is printed, I need to take the System.Drawing.Color property of each Control on the document and create a System.Dr...
Orthotropous asked 20/4, 2011 at 18:14
2
Solved
My issue is that I've created an "extended" RichTextBox control that uses native API to add many RichEdit features that are missing from the standard control (ie: modifying a single font property o...
Overbalance asked 9/12, 2009 at 1:35
1
© 2022 - 2024 — McMap. All rights reserved.