PC Review


Reply
Thread Tools Rate Thread

dsofile.dll and Excel 2007 file format

 
 
Reinhard Thomann
Guest
Posts: n/a
 
      2nd Apr 2009
Hi,
i intend to read document properties (meta info) of an Excel file with
dsofile.dll.
I read that it works fine with Excel 2003 file format.

Does ist also work with Excel 2007 file format?

TIA
Reinhard

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      2nd Apr 2009
Yes, it works fine with Office 2007 files.

Regards,
Peter T

"Reinhard Thomann" <(E-Mail Removed)> wrote in message
news:%23c%(E-Mail Removed)...
> Hi,
> i intend to read document properties (meta info) of an Excel file with
> dsofile.dll.
> I read that it works fine with Excel 2003 file format.
>
> Does ist also work with Excel 2007 file format?
>
> TIA
> Reinhard



 
Reply With Quote
 
Reinhard Thomann
Guest
Posts: n/a
 
      6th Apr 2009
Thanks.
It works fine with dsofile.dll 2.1 as long as file extension is *.xlsx
If i change file extension to something else e.g. *.aaaa it fails.
Excel file format 97-2003 doesn't habe this restriction!

How can i overcome this behavior, because i don't like
to change the file extension of my application?

TIA
Reinhard


"Peter T" <peter_t@discussions> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
> Yes, it works fine with Office 2007 files.
>
> Regards,
> Peter T
>
> "Reinhard Thomann" <(E-Mail Removed)> wrote in message
> news:%23c%(E-Mail Removed)...
>> Hi,
>> i intend to read document properties (meta info) of an Excel file with
>> dsofile.dll.
>> I read that it works fine with Excel 2003 file format.
>>
>> Does ist also work with Excel 2007 file format?
>>
>> TIA
>> Reinhard

>
>


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      6th Apr 2009
> If i change file extension to something else e.g. *.aaaa it fails.

It doesn't "fail" but you can't see all the Office doc' properties. Simply
rename the file before you start and rename as original when done

Sub test()
Dim sFile As String, sFileTmp As String
Dim dso As DSOFile.OleDocumentProperties

' first ensure the file is not already open

sFile = "C:\<path>\myExcel2007file.aaaa"
sFileTmp = sFile & ".xlsx"

Name sFile As sFileTmp

Set dso = New DSOFile.OleDocumentProperties

dso.Open sFileTmp
' do stuff
dso.Close

Name sFileTmp As sFile

End Sub

Regards,
Peter T



"Reinhard Thomann" <(E-Mail Removed)> wrote in message
news:OK3A%(E-Mail Removed)...
> Thanks.
> It works fine with dsofile.dll 2.1 as long as file extension is *.xlsx
> If i change file extension to something else e.g. *.aaaa it fails.
> Excel file format 97-2003 doesn't habe this restriction!
>
> How can i overcome this behavior, because i don't like
> to change the file extension of my application?
>
> TIA
> Reinhard
>
>
> "Peter T" <peter_t@discussions> schrieb im Newsbeitrag
> news:%(E-Mail Removed)...
>> Yes, it works fine with Office 2007 files.
>>
>> Regards,
>> Peter T
>>
>> "Reinhard Thomann" <(E-Mail Removed)> wrote in message
>> news:%23c%(E-Mail Removed)...
>>> Hi,
>>> i intend to read document properties (meta info) of an Excel file with
>>> dsofile.dll.
>>> I read that it works fine with Excel 2003 file format.
>>>
>>> Does ist also work with Excel 2007 file format?
>>>
>>> TIA
>>> Reinhard

>>
>>

>



 
Reply With Quote
 
Reinhard Thomann
Guest
Posts: n/a
 
      7th Apr 2009
Hi Peter,

that's it. Many thanks for your help.

Regards
Reinhard

"Peter T" <peter_t@discussions> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
>> If i change file extension to something else e.g. *.aaaa it fails.

>
> It doesn't "fail" but you can't see all the Office doc' properties. Simply
> rename the file before you start and rename as original when done
>
> Sub test()
> Dim sFile As String, sFileTmp As String
> Dim dso As DSOFile.OleDocumentProperties
>
> ' first ensure the file is not already open
>
> sFile = "C:\<path>\myExcel2007file.aaaa"
> sFileTmp = sFile & ".xlsx"
>
> Name sFile As sFileTmp
>
> Set dso = New DSOFile.OleDocumentProperties
>
> dso.Open sFileTmp
> ' do stuff
> dso.Close
>
> Name sFileTmp As sFile
>
> End Sub
>
> Regards,
> Peter T
>
>
>
> "Reinhard Thomann" <(E-Mail Removed)> wrote in message
> news:OK3A%(E-Mail Removed)...
>> Thanks.
>> It works fine with dsofile.dll 2.1 as long as file extension is *.xlsx
>> If i change file extension to something else e.g. *.aaaa it fails.
>> Excel file format 97-2003 doesn't habe this restriction!
>>
>> How can i overcome this behavior, because i don't like
>> to change the file extension of my application?
>>
>> TIA
>> Reinhard
>>
>>
>> "Peter T" <peter_t@discussions> schrieb im Newsbeitrag
>> news:%(E-Mail Removed)...
>>> Yes, it works fine with Office 2007 files.
>>>
>>> Regards,
>>> Peter T
>>>
>>> "Reinhard Thomann" <(E-Mail Removed)> wrote in message
>>> news:%23c%(E-Mail Removed)...
>>>> Hi,
>>>> i intend to read document properties (meta info) of an Excel file with
>>>> dsofile.dll.
>>>> I read that it works fine with Excel 2003 file format.
>>>>
>>>> Does ist also work with Excel 2007 file format?
>>>>
>>>> TIA
>>>> Reinhard
>>>
>>>

>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2007 crash when saving a specific file as excel 2003 format Frustrated Microsoft Excel Crashes 0 18th Jul 2008 12:44 PM
Save as file format excel worksheet 4.0 in Microsoft excel 2007 Saria Microsoft Excel Misc 1 14th Jul 2008 11:39 AM
How do I save an excel file in dbaseIII format in Excel 2007 =?Utf-8?B?UCBCYW5uaXN0ZXI=?= Microsoft Excel Misc 1 6th Sep 2007 01:44 PM
Excel 2007 file format file extension not valid error =?Utf-8?B?TWF0dCBQaWVyY2U=?= Microsoft Excel Crashes 0 17th May 2007 04:41 PM
Excel 2007 unrecognized file format in Excel 2003 More options EagleOne Microsoft Excel Misc 1 28th Feb 2007 01:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 PM.