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

How to get FileSize of Document with LAPI?

Status
Not open for further replies.

awiesauer

Programmer
Oct 30, 2005
7
AT
Hello,

I'm trying to read the filesize of a document object with the LAPI (Java).

I can get other attributes like name or creation date, but if I try to get FileDataSize, as stated in the LAPI reference, I get an Unknown-Attribute-Exception:

record.toInteger("FileDataSize") (record is an LLValue).

Thanks for your help!
Best regards
Andy

 
sometimes the documentation are not exactly right.I don't remmeber it but i believ it is called datasize.Also if you go to nad search some of the lapi examples there is an excellent helper function that I use,written by Glenn Heying.If yiu use that function printTypeTree it will print to console the contents,type etc and I have found it very helpfule

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top