Is there a way to make the following code portable?

Printable View