Hate to say this, but don't print from the tabs. Instead, create a printing layout to display the same data without the tab control. You can set up a button that flips you to the print layout and back for printing purposes. (I often will pause the script in preview mode so the user can select the printing options they want from the file menu (if any) and then they press return to continue the script and return to their original layout.)
Phil, this isn't exactly what I am encountering; allow me to clarify- what I have is a printing layout where there are 6 categories (it's not the same layout that the user is using). Instead of making 6 layouts and flipping back and forth, I made 1 printing layout with 6 tabs. Either way, I would have to do a print 6 times, because of going to another layout/tab but I am looking for a way to not have to.
Well, I don't know what you have in your tabs and this can make a big difference but what I am picturing here is this.
--------Fields, etc from Tab 1----
--------Fields from Tab 2----
-------Fields from Tab 3 ---
In one long layout.
You'd print this in one single print job without any tabs involved.
The reason for using tabs is that only certain fields apply to certain records, it's not that they don't fit on a layout.
Which doesn't match your original post's description of the problem. You said you wanted to print the contents of each tab not selected tabs. If I'm misunderstanding you, let me know.
There are ways to use calculation fields and sliding options to selectively display data. Can't go into specifics from what you posted so far, but am guessing you could make that work and then have a "one size fits all" layout. Whether that's easier than just having 6 layouts, one for each tab? No way to tell from here.
When I said "I am building a report that depends on each record being on a specific tab based on the category of record" I meant that my printing layout has tabs on it to show the data depending on the record type.
Does that mean that record type 1 should print from tab 1 and record type 2 prints from tab 2 or are there a variety of tab combinations for each record type?
If each record type prints from each tab then Separate layouts is the best option IMO.
If you combine printing from several tabs for a given record type, then you might be able to use the method described in my last post to develop a all in one layout that selectively displays data based on record type and uses sliding to close up the unused white space.
Thanks. Those are both good ideas.