1
Answer

i want to print two windows forms in a single a3 paper

hi,thanks in advance
i am preparing an windows application where i am using no.of forms
for some forms i need print it is done
but in one case i need to print two or three form in a single paper (a3)
its due i adjust a long table to separate to two pages its combination so they recomand to combine and print 
Answers (1)
0
Nir Bar
NA 773 0 15y
Hi Petre,

There isn't an automatic way of doing it.
I think the best way will be to count day-by-day in a loop:
int count = 0;
for( DateTime d = dt1.Value.Date; d <= dt2.Value.Date; d = d.AddDays(1))
{

if(( d.DayOfWeek != DayOfWeek.Saturday) && (d.DayOfWeek != DayOfWeek.Sunday))
{
++count
}
}
return count


Please mark this post as an answer if it helps you

Nir