Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save user data lookup field values

Status
Not open for further replies.

RottPaws

Programmer
Mar 1, 2002
478
0
0
US
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.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top