Hallo
ich habe ein Problem! Auf einer Internetseite die in einem Intranet liegt soll ich eine Druckfunktion erstellen. Die Druckfunktion soll den Hauptframe der Seite in Querformat ausdrucken! Kann mir da vllt jemand helfen, denn ich sitze schon längere zeit vor diesem Problem.
Bis jetzt bin ich soweit aber dies funktioniert leider nicht:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<title>start</title>
<style type="text/css">
@page querformat {size: 29.7cm 21.0 cm}
div.uebersicht { page:querformat; /* andere CSS-Angaben */ }
</style>
<form>
<center><input type="button" value="Stunden Plan drucken" onClick="myprint()"></center>
</form>
<script language="JavaScript">
function myprint() {
if (window.print) {
parent.haupt.focus();
parent.haupt.print();
}
return;
}
</script>
</body>
</html>
Vielen Dank schon mal im voraus\n\n
<!--EDIT|GwenDragon|1174491435-->