Take a look at the OpenDocument function, see this topic to get you started.
Andreas (BOB member since 2002-06-20)