Fill a form with the data stored in the object:
Check Exchanging data among files and Using command line arguments to learn more options for passing external data in the DocBuilder script.
This sample is available for the C++ and .Net DocBuilder Frameworks.
Download the sample and get more information on the Builder framework samples page.