I am creating a form where three small fields will be listed generally in the document, like:
[COMPANY], [ADDRESS], [PHONE NUMBER]
And then will be text-replaced programmatically by pulling variables from our DB and populating the fields within the form.
What is the best way to do this?
There are many ways to do it. BUt in your case you have to make a DataConnection and populate the value from the DB. Here you have to make an OLEDB data connection. But if you want to make through XML then you have to make a XML schema data connection.
Once data connection is done, then you can set the Databinding in the fields to capture the values.
After doing dataconncetion if you drag and drop the data conncetion in the design view every field would automatically be binded.
Otherwise you have to go to particular field then select ObjectPalette > Binding > Data Binding > Select the particular data binding from your data conncetion.