I am trying to determine how to use the getBrowser() function and use the object it returns.
I am struggling to find info on this. Here is what I have tried:
htmlview = event.source.parent.getComponent('HtmlProgramView') #.startingHtml browser = htmlview.getBrowser() print str(browser.print) print repr(browser.print) browser.print(browser.frame) # looking for FrameID of some sort
The component is a Vision Web Browser. It has an API for accessing this object that I do not understand.
The print function seems to want some sort of frame id, but I don’t know how to get that. Ideally I would like to have an option to print to pdf or a printer.