I've inherited an OpenOffice template that has user data look-up fields for work phone number and fax number. There is a macro that does some manipulation of the document and then saves it as a .sxw file on a network drive to be imported by a document imaging system.
Unfortunately, it saves the document with the fields that get the phone numbers from user data instead of saving those values as text in the document. Then when the imaging system opens the document, those fields are blank because that system does not have user data.
Could someone please give me a clue to figure out how to get it to replace the edit fields with the values when it saves?
_________
RottPaws
If you don't report a problem, I probably won't fix it.
Code:
oDocument = ThisComponent
sUrl = "file:///c|/Import.sxw"
dim mFileProperties(0) as New com.sun.star.beans.PropertyValue
mFileProperties(0).Name = "Overwrite"
mFileProperties(0).Value = true
oDocument.storeAsURL(sUrl, mFileProperties())
Unfortunately, it saves the document with the fields that get the phone numbers from user data instead of saving those values as text in the document. Then when the imaging system opens the document, those fields are blank because that system does not have user data.
Could someone please give me a clue to figure out how to get it to replace the edit fields with the values when it saves?
_________
RottPaws
If you don't report a problem, I probably won't fix it.