Printing a different layout than the one you're currently viewing.
I am currently working on a system for printing badges, or what are essentially tickets. What I need it to do is, when I hit the scripted printing button I made, that instead of printing the layout I'm currently looking at, I'd like it to print a separate layout I made that works for the badges.
So like this, the print button is on layout 1. When pressed I'd like it to print out from layout 2. I don't need to see layout 2. I don't need the functionality to be moved to layout 2. Layout 2 for all intents and purposes is invisible to the user forever.
Thank you advance.