Write a winfor tableProgramDue to the special paper size, the printer-related content has not been set for half a day in C. Finally, you have to set it in the operating system. The method is as follows:
On the Control Panel, open the printer and fax machine settings window.
1. Open the server attribute of the File menu, define a new paper type in it, and set the paper size and print margin.
2. Right-click the printer and select the new paper type from the paper area.
3. Return to the program and directly control the Printing Based on the paper.
Haha, as expected, printing is successful.
In the C # GDI +, set the pageunit attribute of the graphics object to graphicsunit. millimeter, in this way, when the drawstring method is used to output the string, the coordinate unit is changed to millimeters, and then the text output at the exact position is very easy.