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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LAPI and file type

Status
Not open for further replies.

wantacobra2003

IS-IT--Management
Jun 4, 2003
3
US
I'm using LAPI from .Net and want to get a handle on a files' type (i.e. .doc, .xls, .pdf). I can user various methods to download the document. When i rebuild the document on the user's machine, I want it to launch in the correct application. To do this, I need to save the file with the correct file type and it does not appear that the information is accessible in any LAPI function. When I use the adddocument method I have to supply a filepath, but I don't seem to be able to retrieve that same information. GetObjectInfo doesn't seem to retrieve it either (at least it's not in the LAPI reference document). Do I have to store the original filename as a custom attribute or am I missing the place where it's stored? Thanks in advance for any help.
 
Found my own answer. It's in the versionInfo assoc that I can get using the GetVersionInfo method. What a messed up API this is! I hope OpenText gets their stuff together at some point on this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top