En lille forklaring på hvad programmet gør: Laver en tabel over brugere i en organisation. hvis jeg ønsker at printe tabellen ud, findes der en knap som åbner en printer venlig side. Denne side skal printes ud, så jeg ønsker ikke at gå ind og manuelt ændre noget før jeg kan printe siden ud i det format jeg ønsker. Her er min html kode af den side som i kan se på billedet:
<%@ Page language="c#" Codebehind="mailUsagePrint.aspx.cs" AutoEventWireup="false" Inherits="MailboxUsage.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title></title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="
http://schemas.microsoft.com/intellisense/ie5"> </HEAD>
<body MS_POSITIONING="GridLayout">
<FORM id="Form1" method="post" runat="server">
<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 651px; POSITION: absolute; TOP: 0px; HEIGHT: 90%"
ms_positioning="GridLayout">
<asp:Image id="Image2" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server"
ImageUrl="
file:///C:\Inetpub\wwwroot\MailboxUsage\logoDIR2.JPG"></asp:Image> <asp:Label id="Label_orgPrint" style="Z-INDEX: 102; LEFT: 16px; POSITION: absolute; TOP: 72px"
runat="server" Width="120px" Font-Names="Arial" Font-Bold="True" Font-Underline="True"
Font-Size="Small"></asp:Label>
<DIV style="Z-INDEX: 103; LEFT: 48px; WIDTH: 600px; POSITION: absolute; TOP: 104px; HEIGHT: 118px"
ms_positioning="FlowLayout">
<DIV style="WIDTH: 328px; HEIGHT: 40px" ms_positioning="FlowLayout">
<asp:Table id="TableUser" runat="server" Width="440px" Height="24px" HorizontalAlign="Left"
GridLines="Vertical" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" CellPadding="0"
CellSpacing="0" Font-Names="Arial">
<asp:TableRow BorderWidth="1px" BorderColor="Black" BorderStyle="Solid" HorizontalAlign="Left"
ID="TR_1">
<asp:TableCell BorderStyle="Solid" BorderWidth="1px" BackColor="#C0C0FF" Width="260px" Font-Size="Small"
Font-Names="Arial" Font-Bold="True" BorderColor="Black" Text="Navn:"></asp:TableCell>
<asp:TableCell BorderStyle="Solid" BorderWidth="1px" BackColor="#C0C0FF" Width="170px" Font-Size="Small"
Font-Names="Arial" Font-Bold="True" BorderColor="Black" Text=" Anvendt plads(MB)"></asp:TableCell>
</asp:TableRow>
</asp:Table></DIV>
<DIV style="WIDTH: 600px; POSITION: relative; HEIGHT: 56px" ms_positioning="GridLayout">
<asp:Label id="Label_totalMBUsage" style="Z-INDEX: 101; LEFT: 320px; POSITION: absolute; TOP: 16px"
runat="server" Font-Names="Arial" Font-Bold="True" Font-Underline="True">Total ialt:</asp:Label>
<HR style="Z-INDEX: 102; LEFT: 296px; POSITION: absolute; TOP: 8px" align="right" width="40%"
color="#006633" SIZE="2">
<asp:Label id="Label_totMBUsage" style="Z-INDEX: 103; LEFT: 400px; POSITION: absolute; TOP: 16px"
runat="server" Width="96px" Font-Names="Arial" Font-Bold="True"></asp:Label></DIV>
</DIV>
<asp:Label id="Label_errorMsgPrint" style="Z-INDEX: 104; LEFT: 144px; POSITION: absolute; TOP: 72px"
runat="server" Width="488px" Height="32px"></asp:Label>
</DIV>
</FORM>
</body>
</HTML>