harminder
Dec 31st, 1999, 07:15 PM
Using Vsiual Basic 6.0
Enterprise Edition
Using printer.newpage in printing multiple pages does not work properly. It does not move on to new page. Only data from first page is printed.
Even program available under VB Help fails to produce required result.
Example :
for i=1 to 5
printer.print "sample output";i
printer.newpage
next i
printer.enddoc
The above lines expected to print five pages each with same message and changing number.
whereas on executing this program VB prints only the first page, displaying message
sample output 1
Please suggest the solution to this
Enterprise Edition
Using printer.newpage in printing multiple pages does not work properly. It does not move on to new page. Only data from first page is printed.
Even program available under VB Help fails to produce required result.
Example :
for i=1 to 5
printer.print "sample output";i
printer.newpage
next i
printer.enddoc
The above lines expected to print five pages each with same message and changing number.
whereas on executing this program VB prints only the first page, displaying message
sample output 1
Please suggest the solution to this