Générer feuille excel en (html ?): impression des titres
Bonjour,
Je génère un fichier excel à partir de html.
Je souhaite qu'excel me répercute la 1ere ligne sur toutes les feuilles à l'impression automatiquement.
J' ai cherché partout le code et j'ai trouvé ceci pour qu'il imprime la 3ème ligne en haut de chaque page:
@print {mso-print-title-row:"$3:$3"}
j'ai eu beau le triturer et le tripoter dans tous les sens mais rien n'y fait, la ligne ne s'affiche pas.
J'ai essayé de le mettre aussi dans @page
Auriez-vous une idée svp ??
Question subsidiaire (pour info): est ce vraiment du html ?
Merci par avance !!
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">
<head>
<!--[if !mso]><style> v\:* {behavior:url(#default#VML);}
x\:* {behavior:url(#default#VML);}</style><![endif]-->
<style>
<!--table
@page {mso-footer-data:"Page &P de &N";margin:.47in .47in .59in .59in;mso-page-orientation:landscape;mso-header-margin:.47in;mso-footer-margin:.39in}
tr {height:17pt;}
col {mso-width-source:userset}
td {white-space:nowrap;text-align:left;padding-left:6px;vertical-align:bottom;
mso-number-format:"0\.0";font-family:Arial;font-size:10.0pt;
border-left:.5pt solid black;border-bottom:.5pt solid black}
.xl01 {text-align:center}
.xl02 {text-align:right;padding-right:6px}
.xl11 {text-align:center;vertical-align:middle;font-size:16.0pt;font-weight:700;
color:navy;border-left:1.0pt solid black;border-top:1.0pt solid black;
border-bottom:1.0pt solid black}
-->
</style>
<!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets>
<x:ExcelWorksheet> <x:Name>liste d'expedition</x:Name><x:WorksheetOptions>
<x:Print><x:ValidPrinterInfo/><x:PaperSizeIndex>9</x:PaperSizeIndex>
<x:Scale>95</x:Scale>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print></x:WorksheetOptions><x:PageBreaks><x:RowBreaks><x:RowBreak>
<x:Row>49</x:Row>
</x:RowBreak></x:RowBreaks></x:PageBreaks>
</x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]-->
</head>
<body>
<table x:str style='border-collapse:collapse;table-layout:fixed;width:513pt'>
<col style='width:56pt'><col style='width:109pt'><col style='width:30pt'>
<col style='width:46pt'><col style='width:51pt'><col style='width:41pt'>
<col style='width:46pt'><col style='width:51pt'><col style='width:83pt'>
<tr style='height:10pt'><td colspan=9 class=xl04></td></tr>
etc...... |