[Tex/LaTex] Whole page table with tabularx

tablestabularx

I am trying to make a full page table using tabularx. As far as I can understand, the second parameter specifies the entire size and the "X" columns self-stretch to fill it up. What I run into is a table that is split at the end of the page and I cannot seem to make it shift to the right. What am I doing wrong here? I should also mentioned I've tried experimeting with textheight and textwidth but could not figure out how to force the width.

Example code below:

\documentclass[a4paper,12pt]{scrartcl}
\usepackage{pdflscape}
\usepackage{tabularx}
\usepackage{lipsum}

\begin{document}
  \begin{landscape}

   \begin{tabularx}{290mm}{|c|c|c|X|}
   \hline
   Lorem & Lorem & Lorem & \lipsum[1] \\
   \hline
   \end{tabularx}

  \end{landscape}
\end{document}

Best Answer

you have some issues, first off the 290mm should really be \linewidth or \textwidth. Second, you should put a \noindent in front of the tabular. And finally, not so much of an issue, remove the page number.

\documentclass[a4paper,12pt]{scrartcl}
\usepackage{pdflscape}
\usepackage{tabularx}
\usepackage{lipsum}

\begin{document}
  \begin{landscape}
    \thispagestyle{empty}
    \noindent
    \begin{tabularx}{\linewidth}{|c|c|c|X|}
      \hline
      Lorem & Lorem & Lorem & \lipsum[1] \\
      \hline
    \end{tabularx}
  \end{landscape}
\end{document}

To address the comment, it's not how I read it, but if that is in fact the case, the following can be used (Adjusted after egreg's comment):

\centering\makebox[0pt][c]{%
  \hskip-\footskip
  \begin{tabularx}{\paperheight}{|c|c|c|X|}
    \hline
    Lorem & Lorem & Lorem & \lipsum[1] \\
    \hline
  \end{tabularx}%
  \hskip\headheight
}