I need to create a document with a title page, some introduction pages and a lot of tables. Those tables needs to be on landscape pages. So I need to switch the orientation on a certain page.

Also the borders should be very narrow, because I need a lot of space for the tables and documentation. 

I found several solutions but non of them are working really good. Also the fancy header should continue on the landscape pages but should get the width of the page.

Here come one example:

```
\documentclass[a4paper,headsepline,footsepline]{report}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage[pdftex]{color}

\usepackage{typearea}
\usepackage{fancyhdr}

\usepackage{ngerman}

\usepackage{hyperref}
\setlength{\voffset}{-0.9in}
\setlength{\hoffset}{-0.9in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7in}
\setlength{\marginparwidth}{1in}

\pagestyle{fancy}
\fancyhf{}
\rhead{LOGO}
\lhead{CargoSoft Dokumentation}
\rfoot{Page \thepage}

\definecolor{cargosoft}{RGB}{1,107,181}

\newcommand{\myRule}[3][black]{\textcolor{#1}{\rule{#2}{#3}}}

\begin{document}

\begin{titlepage}
    \centering
    LOGO
    {\scshape\LARGE Company name \par}
    \vspace{1.5cm}
    \myRule[cargosoft]{8cm}{0.4pt} \par
    \vspace{0.5cm}
    {\huge\bfseries document name\par}
    \vspace{0.5cm}
    \myRule[cargosoft]{8cm}{0.4pt} \par
    \vspace{2cm}

    \vfill

    {\large \today\par}
\end{titlepage}

First page content comes here not in landscape

\KOMAoption{paper}{landscape}
\pagestyle{fancy}
\fancyhf{}
\rhead{LOGO}
\lhead{Dokumentation Landscape pages}
\rfoot{Page \thepage}

\areaset{\textwidth}{\textheight}
\recalctypearea
content on landscape pages
\end{document}

```

The next thing I tried comes from this post [How to switch from portrait to landscape page orientation?](https://tex.stackexchange.com/questions/150394/how-to-switch-from-portrait-to-landscape-page-orientation "How to switch from portrait to landscape page orientation?") The result is, that the page is in landscape, but the fancy header is not. Also the content is horizontal centered.

```
\documentclass[a4paper,headsepline,footsepline]{report}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage[pdftex]{color}
\usepackage[margin=0.5cm]{geometry}

\usepackage{typearea}
\usepackage{fancyhdr}

\usepackage{ngerman}

\usepackage{hyperref}

\usepackage{pdflscape}

\pagestyle{fancy}
\fancyhf{}
\rhead{LOGO}
\lhead{CargoSoft Dokumentation}
\rfoot{Page \thepage}

\definecolor{cargosoft}{RGB}{1,107,181}

\newcommand{\myRule}[3][black]{\textcolor{#1}{\rule{#2}{#3}}}

\begin{document}

\begin{titlepage}
    \centering
    LOGO
    {\scshape\LARGE Company name \par}
    \vspace{1.5cm}
    \myRule[cargosoft]{8cm}{0.4pt} \par
    \vspace{0.5cm}
    {\huge\bfseries document name\par}
    \vspace{0.5cm}
    \myRule[cargosoft]{8cm}{0.4pt} \par
    \vspace{2cm}

    \vfill

    {\large \today\par}
\end{titlepage}

First page content comes here not in landscape
\begin{landscape}
content on landscape pages
\end{landscape}
\end{document}

```

[![Second try with \begin{landscape} and package pdflscape](https://i.stack.imgur.com/3H277.png)](https://i.stack.imgur.com/3H277.png)

Does anyone has a good working solution for me?

Thanks a lot,
Hauke