View Single Post
  #2 (permalink)  
Old June 10th, 2004, 08:53 PM
mega mega is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

Why not just insert breaks like VbCrLf or VbTab between queries?
http://msdn.microsoft.com/library/de...sconstring.asp
Code:
For i = 1 To objRS.Count 'For as many payslips you got
  If i Mod 3 = 0 Then ' print for every 3
    Response.Write("<script> & _ 'Not sure this will work...
                      window.print() & _
                    </script>")
    Response.Flush 'write to the client
  Else
    Response.Write(objRS("PaySlip") & VbTab) 'your payslips
    objRS.MoveNext
  End If
Next
Something like that..

 - mega
Reply With Quote