Home > DeveloperSection > Forums > Report Printing
Manmohan Jha

Total Post:35

Points:245
Posted on    February-14-2014 7:57 AM

 C# C# 
Ratings:


 2 Reply(s)
 1030  View(s)
Rate this:
How to use two loop in printing...

bool MorePagesToPrint=false;
int i=0;
float yLineTop = e.MarginBounds.Top;
 while (i < 70)
{
if (yLineTop + lineHeight > e.MarginBounds.Bottom)
{
 MorePagesToPrint = true;
return;
}
 else
{
e.Graphics.DrawString("TEST: " + i, myFont, Brushes.Black, new PointF(e.MarginBounds.Left, yLineTop));
int j=0;
while (j < 70)
{
e.Graphics.DrawString("SUBTEST: " + j, myFont, Brushes.Black, new PointF(e.MarginBounds.Left, yLineTop));
//
yLineTop += lineHeight;
j++;
}
yLineTop += lineHeight;
 i++;
}
}

if (MorePagesToPrint)
e.HasMorePages = true;
else
e.HasMorePages = false;


First loop work well...
after using second loop...
problem problem

Help me...


Abhishek Singh

Total Post:2

Points:14
Posted on    February-17-2014 12:29 AM

Post is removed by the User.

Abhishek Singh

Total Post:2

Points:14
Posted on    February-17-2014 2:08 AM

Also add some explainations, why is this loop, what are you doing, what problem?

Don't want to miss updates? Please click the below button!

Follow MindStick