Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 533
  • Last Modified:

Delphi7 and MS Excel

Hi
I'm confused when I should use Excel97, Excel2000 and ExcelXP.
What is safe? What are the drawbacks?
It will be widely spread application but generating one simple worksheet.
Thanks
0
mokule
Asked:
mokule
  • 2
  • 2
2 Solutions
 
Wim ten BrinkCommented:
Use the version that matches your Office version. In general, Office will be reasonable backwards-compatible so Excel97 would support all newer versions but the reality is that it can be a real pain sometimes. Excel2000 would be a better option since this will be more generally accepted.

Also keep in mind that not everyone might have Excel installed. I haven't for example, since I don't need spreadsheets anyway. I only use Office for Word and Access... (And am considering to move back to Corel Office...)
0
 
mokuleAuthor Commented:
I need far more precise answer.

> Use the version that matches your Office version.

your???

> Also keep in mind that not everyone might have Excel installed.
I haven't got it either :)

I've chosen ExcelXP. It works well on computer with WinXP and Excel2000.
What does that mean?
0
 
Wim ten BrinkCommented:
This means you haven't used any functionality yet that's not supported by Excel2000. :-)

The three component sets are just COM wrappers around a specific version of Excel. In general, these COM interfaces are very similar so most functions will be similar. However, the newer versions of Excel might include newer COM interfaces for the additional functionality. The COM wrappers are used for early binding of Excel within your application. This will speed things up but it also makes stronger ties between your appliication and a certain version of the objects (Excel) that might be limiting your application in the future.
Still, MS will probably continue to support the older interfaces with it's newer versions of Excel.

If none of your users will use Excel97 then Excel2000 is a good choice. If all users only use Excelxp, then ExcelXP would provide you with even more functionality. You can expect ExcelXP to be reasonable backwards-compatible with Excel2000 but the new Excel functions will not be supported by ExcelXP. I'd advise to use Excel2000 instead. Use the Excel component version that will be used by most of the users.

At home I use Office2000 but never installed the Excel part. Your application would therefore have problems running on my system. Keep that in mind too. :-)
0
 
mokuleAuthor Commented:
As I stated at the beggining I'm using very very small set of Excel functionalities.
To be precise.
I've chosen ExcelXP component set. I've done what I wanted to be done.
I'm testing on ONE computer with WinXP and Excel2000. It is OK.
Does that prove that it will be working on any installation with Excel2000 and ExcelXP.

>Your application would therefore have problems running on my system.
Not at all. You would see nice message: 'operation not supported on Your system' :)
0
 
philly_teeCommented:
When I use the Office components I use the 97 suite, simply because they will, in theory, work on 97, 2K and XP.
My programs have been used on Win 95 thru 2K3 with Office 97 thru 2K3. So far I have not had any problems.
As said above, If you choose XP components and expect them to work on 97... you will have problems.

> Does that prove that it will be working on any installation with Excel2000 and ExcelXP.
In theory yes, however the only way to be totally sure is to test it on all possibilities.
But personally I think you can be reasonably confident it will work on 2K and XP.

Philip
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now