Use hyperlinks in the TOC for online viewing and ensure page numbers are accurate for the print version. Consider creating two versions of the TOC if necessary.