hi
edit file viewinvoice.tpl and insert code {include file="$template/header.tpl"} in first line and insert code {include file="$template/footer.tpl"} in last line .
you can delete <html> & <head> & <title> tag