cad sunny

cad sunny

  • 1.5k
  • 138
  • 21.7k

print preview with sum of user entered values

Aug 23 2014 9:41 AM
hi,

i have textbox1 and textbox2
i used numbers in textbox1 
1
2
3
when i click the button it shows sum of textbox values 
in textbox 2 i e = 10

my question is if i click  print preview dialog it should be show print preview like below
1
2
3
4
------
10
-------
if i used
 1
2
3
4
5
6

print preview wil be
1
2
3
4
5
6
----
21
----

plz help