Board index » delphi » D5 and Excel XP (Excel 2002) problems
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 17:39:11 GMT
|
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 17:39:11 GMT
D5 and Excel XP (Excel 2002) problems
Hi
Im trying to create a oleautomation application in Delphi5, using Excel When I do the following: I get a errormessage saying: "Old format or invalid type library". Does anybody know how to solve this (any codeexamples would be very nice). Best regards |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 17:46:34 GMT
Re:D5 and Excel XP (Excel 2002) problemsCorrection, it is when I try to do the following: ExcelApplication.Workbooks.Open (Filename, EmptyParam, EmptyParam, Cheers! Quote"S?ren" <sbbREM...@cadmos.carlbro.be> wrote in message Quote> Hi |
Radu Serbanesc
![]() Delphi Developer |
Fri, 08 Oct 2004 17:47:52 GMT
Re:D5 and Excel XP (Excel 2002) problemslook in microsoft.public.excel newsgroup, it's something related to language settings, easy to correct. radu Quote"S?ren" wrote: |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 17:58:15 GMT
Re:D5 and Excel XP (Excel 2002) problemsThere is no newsgroup called just ....public.excel ! They all have something after excel. Please guide me a little more. Thank you - Soren Quote"Radu Serbanescu" <r...@umt.rdsnet.ro> wrote in message Quote> look in microsoft.public.excel newsgroup, it's something related to |
Alain Quesne
![]() Delphi Developer |
Fri, 08 Oct 2004 20:14:04 GMT
Re:D5 and Excel XP (Excel 2002) problemsWhen I do this on my machine, I use 14 "emptyparams". Maybe you need to re-generate your Excel type library. Was it created with Excel 2002? -- Alain Quesnel Quote"S?ren" <sbbREM...@cadmos.carlbro.be> wrote in message Quote> Correction, it is when I try to do the following: |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 20:18:35 GMT
Re:D5 and Excel XP (Excel 2002) problemsThere is no newsgroup called just ....public.excel ! They all have something after excel. Please guide me a little more. Thank you - Soren Quote"Radu Serbanescu" <r...@umt.rdsnet.ro> wrote in message Quote> look in microsoft.public.excel newsgroup, it's something related to |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 20:18:21 GMT
Re:D5 and Excel XP (Excel 2002) problems?! No I guess not. How do I do that ? Thank you! Cheers, Soren Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> When I do this on my machine, I use 14 "emptyparams". Maybe you need to |
Mike Shkolni
![]() Delphi Developer |
Fri, 08 Oct 2004 20:42:59 GMT
Re:D5 and Excel XP (Excel 2002) problemsSoren, as I remember with Delphi 5 the type library for Excel 97 or 2000 are -- S?ren <sbbREM...@cadmos.carlbro.be> D??? ???Y??:3cc3d9ce_1@dnews... Quote> Hi |
Alain Quesne
![]() Delphi Developer |
Fri, 08 Oct 2004 21:46:39 GMT
Re:D5 and Excel XP (Excel 2002) problemsGo to "Project | Import Type Library", select "Microsoft Excel 10.0 Object Library", uncheck "Generate Component Wrapper" and click on "Create Unit". You will have a new file called Excel_TLB.pas in your "C:\Program Files\Borland\Delphi6\Imports\" directory (by default). -- Alain Quesnel Quote"S?ren" <sbbREM...@cadmos.carlbro.be> wrote in message Quote> ?! No I guess not. How do I do that ? |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 23:25:28 GMT
Re:D5 and Excel XP (Excel 2002) problemsOk, It was already installed. I guess thats not my problem then! Additional information. I anybody has a codeexample, im very interested (maby my approach is just Cheers, S?ren Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> Go to "Project | Import Type Library", select "Microsoft Excel 10.0 Object |
S?re
![]() Delphi Developer |
Fri, 08 Oct 2004 23:26:57 GMT
Re:D5 and Excel XP (Excel 2002) problemsI cheked the typelibrary, and I have "Microsoft Excel 10.0 Object Library (Version 1.4)" installed! Best regards Quote"Mike Shkolnik" <mshkol...@yahoo.com> wrote in message Quote> Soren, |
Alain Quesne
![]() Delphi Developer |
Fri, 08 Oct 2004 23:55:18 GMT
Re:D5 and Excel XP (Excel 2002) problemsWhat do you mean by already installed? If it's the original Excel_TLB.pas file form the Delphi 6 installation, chances are it's not the one from Excel 2002. -- Alain Quesnel Quote"S?ren" <sbbREM...@cadmos.carlbro.be> wrote in message Quote> Ok, It was already installed. I guess thats not my problem then! |
S?re
![]() Delphi Developer |
Sat, 09 Oct 2004 01:06:33 GMT
Re:D5 and Excel XP (Excel 2002) problemsUnder import type library, when pressing "Create unit" (and unticking "Generate component wrapper"), I get a errormessage saying "A class named "TExcelQueryTable" is already installed". Cheers, S?ren Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> What do you mean by already installed? If it's the original Excel_TLB.pas |
Alain Quesne
![]() Delphi Developer |
Sat, 09 Oct 2004 03:50:42 GMT
Re:D5 and Excel XP (Excel 2002) problemsGo to your package list, and uninstall the Office Server components. -- Alain Quesnel Quote"S?ren" <sbbREM...@cadmos.carlbro.be> wrote in message Quote> Under import type library, when pressing "Create unit" (and unticking |
S?re
![]() Delphi Developer |
Sat, 09 Oct 2004 16:21:54 GMT
Re:D5 and Excel XP (Excel 2002) problemsIm a little confused. When I choose "Components | Install packages" there is nothing called Office Server Components!? Do I need a special TLB-file that supports Excel 2002 (where do I get that) Cheers, Soren Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> Go to your package list, and uninstall the Office Server components. |