Reputation: 10815
How to set label size using namespace System.Drawing.Printing. Of Fix size? I want 6 labels of some size on a page size of 8.5X11
Upvotes: 0
Views: 909
Reputation: 15813
In .net you can use a PrintPage handler for the PrintDocument object. Inside the PrintPage handler, use e.graphics for the printer output. With e.graphics, the location and size is based on 100 pixels per inch, regardless of the printer's resolution. So, for example, if you want 6 evenly spaced labels over 8 inches, you could position them 114 units apart, 100 * 8/(6+1), (plus the location of the first label).
Upvotes: 1
Reputation: 18430
Any thing you want to draw will surely will have the size that you specify when giving parameters to Draw method.. framework is not going to change that.
Upvotes: 0