<script language="javascript">
function OpenWord(){
abc.style.border=0 ;
ExcelSheet = new ActiveXObject('Word.Application');
ExcelSheet.Application.Visible = true;
var mydoc=ExcelSheet.Documents.Add('',0,1);
myRange =mydoc.Range(0,1) ;
var sel=abc.document.body.createTextRange();
sel.select() ;
abc.document.execCommand('Copy') ;
sel.moveEnd('character');
myRange.Paste();
ExcelSheet.ActiveWindow.ActivePane.View.Type=wdPrintView;
}
</script>
function OpenWord(){
abc.style.border=0 ;
ExcelSheet = new ActiveXObject('Word.Application');
ExcelSheet.Application.Visible = true;
var mydoc=ExcelSheet.Documents.Add('',0,1);
myRange =mydoc.Range(0,1) ;
var sel=abc.document.body.createTextRange();
sel.select() ;
abc.document.execCommand('Copy') ;
sel.moveEnd('character');
myRange.Paste();
ExcelSheet.ActiveWindow.ActivePane.View.Type=wdPrintView;
}
</script>