How could I access this information via a COM object?

What identifies the COM object in this case?

Thanks in adavance

Jerry T.




David Shadovitz <[EMAIL PROTECTED]> on 11/17/2000 12:39:42 AM

Please respond to [EMAIL PROTECTED]

To:   CF-Talk <[EMAIL PROTECTED]>
cc:    (bcc: Jerry Tolentino/SIAC)
Subject:  Re: How to tell between MS 2000, 97, 95, etc. with Cold Fusion




Excel workbooks have a FileFormat property.  The values of this property
are an enumerated type, including values such as xlExcel9795.

(You can see this by running Excel, entering the VB Editor by hitting
Alt-F11, hitting F2 to bring up the Object Browser, setting the Library
pull-down to Excel, scrolling down to the Workbook class, and then
scrolling down to the FileFormat member.  Clicking on FileFormat displays
"Property FileFormat As XlFileFormat" and clicking on XlFileFormat shows
the values of this enumerated type.)

Whew.  I assume that the other MS Office products expose similar object
properties. So you should be able to get what you want (at least for
Office files) by checking the file extension and then accessing the
appropriate application via COM.

-David

On Thu, 16 Nov 2000 14:54:29 -0500 "Jerry Tolentino" <[EMAIL PROTECTED]>
writes:
>
> I wanted to allow users to upload various file of similar formats
> that
> differ in versions. Is there a way to this. Most users
> are not willing to do a "Save As" on file so I have to handle this
> on the
> CF end... IF POSSIBLE!
>
> Anyone know a way to distinguish between different file formats such
> as
> word 2000, and 97.
>
> Are there COM object that give this information?
>
> Are there other ways?
>
> Any help on this subject would help?
>
> Does not have to apply soley to MS products (that was just an
> example)?
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to