I have a project that uses 3 small windows in tabular navi (hopefully setup to work on tablets in portrait position, or on a laptop) and I’m trying to document the information that is created with the project. Basically I have one large table, one medium table, a small table, a bar graph, and some labels. I’m attempting to “export” the project into a pdf. Ideally, I would export each window with createPrintJob() and using that to print as PDF, in turn having one PDF with 3 pages. I haven’t been able to do this. I also tried using a report, but I can’t represent my table data because the column keys change and are unpredictable as to what they will be. Finally, I tried creating a large window that has everything on it, pressing the export button opens the large window and prints as PDF then closes the window. This doesn’t work if the screen is small enough to where the window can’t be fully displayed on the tablet. Anyone got any ideas on any other methods, or have I missed something in my other attempts?
Think I may have solved my dilemma by using a screenshot function created by @Kyle_Chase. Awesome work bro!
I had to modify the calling script a bit to this
import time windows = ["Export"] for row in windows: obj = system.nav.openWindow(row) time.sleep(2.5) shared.SS.takeScreenshot(row) system.nav.closeWindow(row) system.nav.swapTo("Analysis")