If you are attaching an OnPrintPage event, you can specify PrintDocument if it needs to add another page to PrintPageEventArguments.
IEnumerator items; public void StartPrint() { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage); items = GetEnumerator(); if (items.MoveNext()) { pd.Print(); } } private void pd_PrintPage(object sender, PrintPageEventArgs ev) { const int neededHeight = 200; int line =0;
rene source share