get_report_script#
- Report.get_report_script() str #
A block of JavaScript script to define the web component for report fetching. Note that the function return a block of string that stands for JavaScript codes and need to be wrapped in a <script>…</script> HTML tag.
- Returns:
str
JavaScript code to define the report fetching web component (as a block of string) that will get embedded in the HTML page
Examples
import ansys.dynamicreporting.core as adr adr_service = adr.Service(ansys_installation = r'C:\Program Files\ANSYS Inc\v232') ret = adr_service.connect() my_report = adr_service.get_report(report_name = 'Top report') my_report.get_report_script()