hegde3santu
function fnPrint(Quotation_project) {
// window.print();
var txtOrg_id = Ext.getCmp('txtOrg_id').getValue();
var txtQuotation_no = Ext.getCmp('txtQuotation_no').getValue();
var DtDate = (Ext.Date.format(Ext.getCmp('dtDate').getValue(), 'd/m/Y'));
var txtAddress = Ext.getCmp('txtAddress').getValue();
var cmbHeadInvoice=Ext.getCmp('cmbHeadInvoice').getValue();
var txtFinancial_year = Ext.getCmp('txtFinancial_year').getValue();
var txtInvoice_number = Ext.getCmp('txtInvoice_number').getValue();
var txtQuotation_amount = Ext.getCmp('txtQuotation_amount').getValue();
var txtInvoice_amount= Ext.getCmp('txtInvoice_amount').getValue();
var txtStatus= Ext.getCmp('txtStatus').getValue();
var txtPending_amount= Ext.getCmp('txtPending_amount').getValue();
var txtCustomer_name= Ext.getCmp('txtCustomer_name').getValue();
var txtContact_person= Ext.getCmp('txtContact_person').getValue();
var txtEmail= Ext.getCmp('txtEmail').getValue();
// alert(Tproduct);
var htmlMarkup=[
''+
'<html xmlns="http://www.w3.org/1999/xhtml">'+
'<head>'+
''+
'body {'+
' font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;'+
' margin: 0;'+
' padding: 0;'+
'}'+
'h1, h2, h3, h4, h5, h6, p {'+
' margin-top: 0; '+
' padding-right: 15px;'+
' padding-left: 15px;'+
'}'+
'.container {'+
' width: 80%;'+
' max-width: 1260px;'+
' min-width: 780px;'+
' background: #FFF;'+
' margin: 0 auto;'+
'}'+
'</head>'+
'<body>'+
''+
' '+
' '+
' INVOICE '+
' Solutions Private Limited. Date : '+DtDate+' '+
' #21, 1st Floor, Rajashree Mansion Invoice No:'+txtInvoice_number+''+
' ABC Nagar'+
' Main Road'+
' 7th Phase,'+
'Bangalore 512121'+
' Ph: +91 80 1124554'+
'Delivery Address:'+
''+txtCustomer_name+''+
''+txtAddress+' '+
''+
'Comments or special instructions:'+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
'Quotation NumberProduct NmeQuotation AmountInvoice Amount'+txtQuotation_no+''+Quotation_project+''+txtQuotation_amount+''+txtInvoice_amount+' '+
' '+
'Make all cheques payable to Solutions Private Limited.'+
'If you have any questions concerning this invoice, contact ['+txtContact_person+' '+txtEmail+']'+
' '+
' THANK YOU FOR YOUR BUSINESS!'+
''+
' '+
''+
'For Solutions Pvt Ltd'+
'Pad'+
'Managing Director'+
''+
'</body>'+
'</html>'
];
var a = window.open('', '', 'left =' + screen.width + ',top=' + screen.height + ',width=0,height=0,toolbar=0,scrollbars=1,status=0');
a.document.write(htmlMarkup);
a.document.close();
a.focus();
//call print
a.print();
}