I had created some reports like hourly, Daily and Monthly. Now I want to print thses reports on scheduled time. Like Hourly report will be automatically print on every hour and Daily report on every end of the day or Start of the Next day.
I had created the tags for schedules and created below gateway script.
But I could not able to access window and component from gateway script.
In other option, I had passing the schedule tag value to REPORT_VIEWER component and on change property event try to print the report. It is working while report screen is opened and if report screen is closed it was not working.
Need help.
[i]Example:
This would prompt the user to print, showing them the print dialog box and starting with the deafult printer selected
report = event.source.parent.getComponent(“Report Viewer”)
report.print()
Example:
This would print to the “HP Laserjet” printer with no user interaction
report = event.source.parent.getComponent(“Report Viewer”)
report.print(“HP Laserjet”, 0)
Example:
This would print to the default printer with no user interaction
report = event.source.parent.getComponent(“Report Viewer”)
report.print(None, 0)[/i]
I had tried this… 
Hi Dhan, hope all is well with you!
GUI components are not available from the gateway. There needs to be a running client executing a client script.
Thank you for the information,