Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Excel java script is not working from a ReportView report

Status
Not open for further replies.

Josh1777

Programmer
Apr 22, 2009
8
IN
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top