<table id ="print_content" cellpadding="5" style="margin:10px 10px 10px 10px; width:95%; background: #FFFFFF; color:#333; overflow:scroll;" cellspacing="0" runat="server"> <table><thead><table><tbody><tr><th><img id="img3" src="Images/letterhead.jpg" style="border-width:0px; width:100%; margin-top:0px;"/></th></tr></tbody></table></thead></table> <tbody> <tr> <td colspan="2" style="text-align:center;font-size:25px; font-weight:700">Quotation</td> </tr> <tr class="Normal"> <td class="QuotationField"> </td> <td>Reference No : <asp:Label ID ="lblReferenceNumber" runat ="server"></td> </tr> <tr class="Normal"> <td class="QuotationField"> </td> <td>Date : <asp:Label ID ="lblQuotationDate" runat ="server"></td> </tr> <tr class="Normal"> <td class="QuotationField"> </td> <td>Pages : <asp:Label ID ="lblPages" runat ="server"></td> </tr> <tr class="Normal" style="border:2px solid #9CAAC1;"> <td class="QuotationField"><asp:Label ID ="lblCompanyAddress" runat="server"></td> <td class="QuotationField" style="border-removed2px solid #9CAAC1;"> <p style="direction: ltr; text-align: left; margin-removed 1px"> <asp:Label ID ="lblClientAddress" runat ="server"> </p> </td> </tr> <tr class="Field"> <td colspan="2"> <asp:GridView ID="GvQuotation" runat="server" DataKeyNames="ID" Width="100%" EmptyDataText="No Record Found" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black"> <asp:TemplateField HeaderText="Code"> <asp:Image ID ="ImgProduct" runat="server" Width="60" Height="50" ImageAlign="Middle" ImageUrl='<%#Bind("ImageProduct") %>' /> <asp:TemplateField HeaderText="Description"> <asp:Label ID="lblDescription" runat="server" Text='<%#Bind("Description") %>'> <asp:TemplateField HeaderText="Quantity"> <asp:Label ID="lblQuantity" runat="server" Text='<%#Bind("Quantity") %>'> <asp:TemplateField HeaderText="UnitPrice"> <asp:Label ID="lblUnitPrice" runat="server" Text='<%#Bind("UnitPrice") %>'></td></tr></tbody>
<tr> <td colspan ="2"> <table style="border:2px solid #999999; border-bottom:4px solid #999999; margin-top:-10px; width:100%"> <tr class="Normal" > <td class ="AmountField" style="border-right:2px solid #999999;">Sub Total :<asp:Label ID ="lblTotalAmountWords" runat="server"></td> <td class="gridtxtBox" align="right"><asp:Label ID ="lblTotalAmount" runat="server" style="font-weight: 700"></td> </tr> <tr class="Normal" style="border-top:2px solid #999999; border-bottom:2px solid #999999;"> <td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">Discount :<asp:Label ID ="lblDiscountAmountWords" runat="server"></td> <td class="gridtxtBox" align="right"><asp:Label ID ="lblDiscountAmount" CssClass="lblMessage" runat="server" style="font-weight: 700"></td> </tr> <tr class="Normal" style="background-color:#FBDEBB;"> <td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">Net Total :<asp:Label ID ="lblPaidAmountWords" runat="server"></td> <td class="gridtxtBox" align="right"><asp:Label ID ="lblPaidAmount" runat="server" style="font-weight: 700"></td> </tr> </table> </td> </tr> <tr class="Field"><td colspan="2" style="font-size:18px; font-weight:700">Terms and Conditions</td> </tr> <tr class="Normal"><td colspan="2"><asp:Label ID ="lblTermsandCondition" runat ="server"></td> </tr> <tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700"><asp:Label ID ="lblProjectName" runat ="server"></td> </tr> <tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700">Prepared By: <asp:Label ID ="lblPreparedBy" runat ="server"></td> </tr> <tr class="Field"> <td class="QuotationField">Page <asp:Label ID ="lblPage" runat="server"></td> <td class="QuotationField">Reference No : <asp:Label ID ="lblReferenceNo" runat ="server"> </td> </tr> </tbody> <tfoot><tr><th><img id="img4" src="Images/letterheadfooter.jpg" style="border-width:0px; width:100%; margin-bottom:0px;"/></th></tr></tfoot> </table> <div class="Field" id="tblPrinttemp" runat="server"> <div class="MandatoryField" style="margin-left:40px;"> <span class="ActionButton"> Print </span></div> <div class ="MandatoryField"><asp:Button ID ="btnReport" runat ="server" Text ="Print Pdf" CssClass ="ActionButton" OnClick="btnReport_Click" /></div> </div> <style type="text/css"> @media print { thead { display: table-header-group; } tfoot { display: table-footer-group; } } @media screen { thead { display: block; } tfoot { display: block; } } </style> </head> <script type="text/javascript"> function Clickheretoprint() { // var div = document.getElementById('tblBanner'); var divtemp = document.getElementById('tblPrinttemp'); // div.style.display = 'none'; divtemp.style.display = 'none'; window.print(); } </script> <body>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)