Currently, I am trying to print 100 of mailing address (4x3in) in visual studio C# by clicking on the print button. In each label I have for instance box 1 box of 100. I want that box will be incremented automatically as 2 of 100, 3 of 100, 4 of 100 etc. Can some body help me.
My code is:
private void printPreviewDialog1_Load(object sender, EventArgs e) {
var pd1 = new PrintDialog();
pd1.Document = new System.Drawing.Printing.PrintDocument();
pd1.Document.PrinterSettings.Copies = short.Parse(box.Text);
if (pd1.ShowDialog(this) == DialogResult.OK)
{
}
}
CodePudding user response:
this is my app, I want to print for example label (4x3in) by entering number of how many label to print. however, in the screenshot you see that the 2 it doesn't change, I want to increment the number. enter image description here
CodePudding user response:
[enter image description here][1]
this is my app. [1]: https://i.stack.imgur.com/AWmEy.jpg