rubthegecko
Programmer
Hello everyone..
Here is my dilemma.
ad-hoc reporting
I have a dynamic report that is querying data from oracle and is displaying it on an xml based web page. There are some basic javascripts in the code that allow the user to sort the data after it is displayed.
PROBLEM
How can I get it to print. Here is one solution that I have tried and it works but the boss wants it all in one button.
Code:
<input type='button' value='Send To Word'
onClick="fnDoCopyWord();
<script language="Javascript">
function fnDoCopyWord(){
textRange=document.body.createTextRange();
textRange.moveToElementText(listTable);
textRange.execCommand("Copy");
window.open("c:\WordOutput.doc","printing");
}
</script>
Any help would be appreciated. This wall is especially hard on my forehead..