×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Save user data lookup field values

Save user data lookup field values

Save user data lookup field values

(OP)
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 --> BASIC

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close