Hi, Im using the below code to Export a report to Excel. this is working fine when i run the report normally. But i want this functionality to work in the reportview also i.e when i save a report in html this export button to work.
*version is 8.4.1*
<!--owner-drawned button for prompting-->
<button type="button" name="finishChkFormat1" id="finishChkFormat1" class="clsPromptButton"
onmouseover="this.className = 'clsPromptButtonOver'"
onmouseout="this.className = 'clsPromptButton'"
onClick="ChkFormat1()">Export to Excel</button>
<!--button's event-->
<script text=javascript>
function ChkFormat1()
{
oCV_NS_.getRV().viewReport('singleXLS');
oCV_NS_.promptAction('finish');
}
</script>
<!--insertion of button-->
<script xmlns:xIE5=" IE5">
var promptButtonfinishCheckFormat1 = new CPromptButton (document.getElementById("finishChkFormat1"),PROMPTBUTTON_ FINISH, true, "RS");
oCV_NS_.pageNavigationObserverArray = oCV_NS_.pageNavigationObserverArray.coneNavigationObserverArray.concat('promptButtonfinishCheckFormat1');
oCV_NS_.notify();
</script>
*version is 8.4.1*
<!--owner-drawned button for prompting-->
<button type="button" name="finishChkFormat1" id="finishChkFormat1" class="clsPromptButton"
onmouseover="this.className = 'clsPromptButtonOver'"
onmouseout="this.className = 'clsPromptButton'"
onClick="ChkFormat1()">Export to Excel</button>
<!--button's event-->
<script text=javascript>
function ChkFormat1()
{
oCV_NS_.getRV().viewReport('singleXLS');
oCV_NS_.promptAction('finish');
}
</script>
<!--insertion of button-->
<script xmlns:xIE5=" IE5">
var promptButtonfinishCheckFormat1 = new CPromptButton (document.getElementById("finishChkFormat1"),PROMPTBUTTON_ FINISH, true, "RS");
oCV_NS_.pageNavigationObserverArray = oCV_NS_.pageNavigationObserverArray.coneNavigationObserverArray.concat('promptButtonfinishCheckFormat1');
oCV_NS_.notify();
</script>