Is there a way to print the DayView, WeekView, MonthView calendar controls? I have the controls grabbing events from the database and building nice looking calendars, but there doesn’t seem to be a method for printing these nice looking calendars.
You can save a component to an image like this:
component = event.source.parent.getComponent('Week View')
system.print.printToImage(component)
#or...
#system.print.printToImage(component,"c:\path\to\myimage.png")
http://www.inductiveautomation.com/support/usermanuals/ignition/system_print_createimage.htm
or do a print job using system.print.createPrintJob
http://www.inductiveautomation.com/support/usermanuals/ignition/system_print_createprintjob.htm
I tend to just give users the ability to save images that they can print on their own because the java print dialog is very(!) slow for me.
Dan