I wanted to see if anyone has opinions on printing content from a splitter. The way I see it there are two paths.
- A complicated print stylesheet
- Some JS to copy the desired visible content to another area of the page combined with a simple print stylesheet to hide all of the splitter and leave the newly copied content visible.
The only caveat I see with #2 is I won't be able to capture the end of a print event so these new elements will continue to exist in the DOM. The upside is that my screen stylesheet can just ignore that container.
Has anyone else printed content from a splitter? How did you deal with it? Are there better alternatives I might be overlooking?