You should be looking at the OpenDocument function, see this topic for starters
Andreas (BOB member since 2002-06-20)