The former ‘Office’ stars will collaborate on a new book, with a publishing deal worth a reported $7 million.