Message Box Control

Is there a way to overwrite the file without a message box while printing the component?
system.print.printToImage(event.source.parent, "C:\Users\Desktop\Sample Folder\Reports\Report1\Test Data.jpg")

Use system.print.createImage() to directly write the file without user prompt; see the code sample:
https://docs.inductiveautomation.com/display/DOC81/system.print.createImage

1 Like

The script is working exactly as I expected; thanks for your guidance.