I'd like to build a tabular and next to it a graphics in the same height.
I use the following code (for minimal working purposes, I used \rule) and do not understand, what is going wrong:
\documentclass{minimal}
\begin{document}
\newsavebox{\testbox}%
\newlength{\testheight}%
\savebox{\testbox}{%
\begin{tabular}{cr}%
\multicolumn{2}{c}{\underline{\underline{\textsc{Line 1}}}}\\ \\
Line&2\\%
Line&3\\%
Line&4\\%
\end{tabular}%
}%
\settoheight{\testheight}{\usebox{\testbox}}
\usebox{\testbox}\hfill\rule{3pt}{\the\testheight}\hfill\rule{3pt}{\the\testheight}
\end{document}
As \savebox if fragil, I also played around with the robust commands \mbox and/or \sbox - without success.