table spacer every 5 records

Results 1 to 2 of 2

Thread: table spacer every 5 records

  1. #1
    Join Date
    Dec 1969

    Default table spacer every 5 records

    I have a results page which shows records on after the other ie<BR> a repeat region in Dreamweaver MX<BR><BR>typically<BR>[content table]<BR>[image] heading<BR> text<BR> price etc<BR>[/content table]<BR><BR><BR>The thing say I have designed my output so it fits 5 records on a page when you print.<BR><BR>Thing I forgot was say I need this printed on letter headed paper?? *$@#!<BR><BR>Fine I can make it work on the first page at a spacing table or image at the top. <BR><BR>So what I need to do is introduce this Table space every 5 records so I can print mutiple pages..<BR><BR>I need something like for every multiple of 5 do.. whatever<BR><BR>can someone point me to a good article or help<BR><BR><BR><BR><BR>&#060;%<BR>set results = Server.CreateObject("ADODB.Recordset")<BR>results. ActiveConnection = MM_connectmgy_STRING<BR>results.Source = "SELECT * FROM ..etc"<BR>results.CursorType = 0<BR>results.CursorLocation = 2<BR>results.LockType = 3<BR>results.Open()<BR>results_numRows = 0<BR>%&#062;<BR><BR>&#060;%<BR>Dim Repeat1__numRows<BR>Repeat1__numRows = -1<BR>Dim Repeat1__index<BR>Repeat1__index = 0<BR>results_numRows = results_numRows + Repeat1__numRows<BR>%&#062;<BR><BR>&#060;% <BR>While ((Repeat1__numRows &#060;&#062; 0) AND (NOT results.EOF)) <BR>%&#062;<BR> I guess i need to add something here or change above and below asp line to add a html [table_spacer] every 5 records.<BR><BR>&#060;% I need code for If record is multiple of 5 display<BR>[tablespacer] ?%&#062;<BR><BR>[contenttable] <BR>[image] text ..etc<BR>[/contenttable]<BR><BR><BR>&#060;% <BR> Repeat1__index=Repeat1__index+1<BR> Repeat1__numRows=Repeat1__numRows-1<BR> results.MoveNext()<BR>Wend<BR>%&#062;<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default has..

    ... information on how to force a new page when printing.<BR><BR>I believe it&#039;s in the Nature of Things category, but I could be wrong.<BR><BR>Start there and run with it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts