I have seen this question asked in a couple of different ways on SO and several other websites, but most of them are either too specific or out-of-date. I\'m hoping someone
Try this code, works 100% for me: FOR Landscape:
FOR Portait: