Bonjour,
J'ai le code suivant qui me permet de lister sur trois colonnes les adresses de mes clients :
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#000000" vlink="#000000" alink="#000000" >
<div align="top">
<table border="0" cellpadding="0" cellspacing="0" width="650" height="1"><tr><td width="780" height="1">
<table border="0" cellpadding="0" cellspacing="0" width="750" height="21">
<%
while not(prod.eof)
%>
<%i=k+1%>
<tr class="TabloBleuFonce">
<td valign="top" height="120" width="340" style="border-style: solid; border-width: 1">
<p align="center">
<br><b><font face="Century Gothic" size="2"><%=i%><% =prod.fields("raison sociale") %>
</font></b>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 1") %>
</font>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 2") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("code postal") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("ville") %>
</font>
</p>
</td>
<% if not(prod.eof) then
prod.moveNext %>
<%j=i+1%>
<%if prod.eof then%>
<%=" "%>
<%else%>
<td valign="top" height="120" width="21" style="border-style: solid; border-width: 1">
</td>
<td height="120" valign="top" width="355" style="border-style: solid; border-width: 1">
<div align="center">
<br><b><font face="Century Gothic" size="2"><%=j%><% =prod.fields("raison sociale") %></font></b>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 1") %>
</font>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 2") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("code postal") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("ville") %>
</font>
<br>
</div>
</td><%end if%>
<% if not(prod.eof) then
prod.moveNext %>
<%k=j+1%>
<td height="120" valign="top" width="21" style="border-style: solid; border-width: 1">
</td>
<td height="120" valign="top" width="350" style="border-style: solid; border-width: 1">
<div align="center">
<br><b><font face="Century Gothic" size="2"><%=k%><% =prod.fields("raison sociale") %></font></b>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 1") %>
</font>
<br><font face="Century Gothic" size="2"><% =prod.fields("adresse 2") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("code postal") %>
</font>
<br>
<font face="Century Gothic" size="2">
<% =prod.fields("ville") %>
</font>
<br>
</div>
</td>
</tr>
<%
prod.moveNext
end if
end if
wend
prod.close
%>
</table></td></tr></table>
</div>
</body>
Je voudrais insérer un saut de page tous les 24 enregistrements, soit toutes les 8 lignes.
J'ai essayé avec les styles CSS de type .break {page-break-before:left}, mais je ne m'en sort pas. Quelqu'un pourrait-il m'aider ? Merci d'avance.