Hello! I am trying to get a button to print out a saved report. Unfortunately, what this prints out is a bunch of blank boxes.
path = system.file.openFile('pdf', "C:\Users\chunter\Desktop\Ignition Reports")
if path != None:
bytes = system.file.readFileAsBytes(path)
event.source.parent.getComponent('PDF Viewer').loadPDFBytes(bytes, "Name")
job = event.source.parent.getComponent('PDF Viewer')
job.print()
I am very new to Ignition so any and all advice would be much appreciated!