If your document contains artboards of mixed orientation, they will automatically rotate to the correct orientation for printing. In the Print dialog box in Illustrator CS5, choose Portrait Media for all artboards, select Auto-Rotate, and in the preview window watch landscape artboards automatically rotate.