- Code: Select all
elements.ButtonPrint.text = "Printing..."
//forms.CalculatorPRINTABLE.controller.showPrintPreview(true)
application.updateUI()
var tab = elements.Milestones.tabIndex
forms.CalculatorPRINTABLE.elements.Milestones.tabIndex = tab
application.updateUI()
forms.CalculatorPRINTABLE.controller.print(true,false,false)
elements.ButtonPrint.text = "Print"
But it's not selecting the right tabpanel to print. It always goes to 1, though the variable above is being correctly set to 3 according to debugger. These are the correct element names, no typos or obvious errors. Help? i assume it's because the form is not being shown? But I can't for the above reasons...