Impression à l'aide de TemplatePrinter
J'essaye d'utiliser TemplatePrinter pour pouvoir formater l'impression. Le formatage des pages semble correct, mais le contenu indiqué par "contentsrc" n'apparaît pas, je me retrouve donc avec une page vide. Voici le code de la page:
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
| <HTML XMLNS:IE>
<head>
<?import namespace="ie" implementation="#default">
<style type="text/css">
.masterstyle
{
width:170mm;
height:247mm;
background:#FFFF99;
border-left:1 solid black;
border-top:1 solid black;
border-right:4 solid black;
border-bottom:4 solid black;
margin:10px;
}
.contentstyle
{
width:120mm;
height:160mm;
margin:10mm;
background:white;
border:1 dashed gray;
}
</style>
</head>
<body>
<IE:DEVICERECT id="page1" media="print" class="masterstyle">
<IE:LAYOUTRECT id="layoutrect1" contentsrc="documentsource.html" class="contentstyle" />
</IE:DEVICERECT>
</body> |
Une idée ?