Thanks for your reply. Specifically, this is what is happening:
With WPDLLInt1.Memo
.LoadFromFile "C:\TestTemplate.rtf", True, "" 'Initial load
'The template is then documented with data and is saved as a string.
rtfWPString = .SaveToString(False, "WPT")
'Then the string is saved to the database. If the user later wants to
'display the document, the following is done:
.Clear False, False
.LoadFromString rtfWPString, True, "WPT"
end with
However, when this is done, the margins of the original document are not respected. Am I forgetting something, consequently preventing the margin data from being saved in the string?
Thanks!