Hello All,
I am using table component to display the result of SQL Select query. I am getting all the values in Table on Ignition screen when I run application. What I am not able to do is that I am using table.print() funtion to get the hard copy of this table contents.
Below is my code.
[code]
import system
import app
window = system.gui.getWindow(“Current Details”)
table = window.rootContainer.getComponent(“Table”) # Get a reference to the table
#table = event.source.parent.getComponent(“Table”) # Get a reference to the table
#system.dataset.exportExcel("/home/pacrim_xterm3/Documents/data.xls", 1 , table.data)
table.print()[/code]
This code pops up the Printer Setting window for Printer selection and other Page Setup options.
When I click on Print button in this dialogue box, I just get EMPTY table printed on a paper.
I have attached screen shot of my table contents and my print operation output file.
Can somebody know how to do this?
Thanks
Ashish