This function prints the given component (such as a graph, container, entire window, etc) to an image file, and saves the file where ever the operating system deems appropriate. A filename and path may be provided to determine the name and location of the saved file.
While not required, it is highly recommended to pass in a filename and path. The script may fail if the function attempts to save to a directory that the client does not have access rights to.
|Client permissions restrictions|
system.print.printToImage(component component, [, filename])
Component component - The component to render. Refer to the list of Components objects.
String filename - A filename to save the image as. [optional]
system print printTolmage, print.printTolmage