Thanks a lot Anis.
I am a medico legal professional and am working on a template for autopsy report. So I am less than even a novice at this.
So if u dont mind, just guide me where to insert the code that u have suggested. Below is the last line of the page I get when I click on the EDIT FORM CODE button of the properties of the custom button.
_function CTRL345_5::OnClick(eventObj) { // Write your code here }_
Also Cud u help me that how can I adjust the export code so that it names the file with the autopsy number as default.
Thanks a lot again.