3 Replies Last post: Apr 27, 2006 4:57 PM by Igor Novikov  
Andrey Dobrikov   2 posts since
Apr 24, 2006
Currently Being Moderated

Feb 2, 2006 10:13 PM

GUID - what are they for Excel and Word

I have problems finding the GUIDs for Excel and Word. When I try to run codegen for those I get an error: Library not registered...

If someone can help, that would be great. I have gone through Dev Tutorial and successfully used codegen with Outlook GUID, but I would like to start developing for Excel and my MSOffice/src dicectory is full of errors because it doesn't recognize excel and other imports.

Thanks, Andrey

Alexei Razoryonov   45 posts since
Apr 24, 2006
Currently Being Moderated
1. Feb 3, 2006 11:32 AM in response to: Andrey Dobrikov
Re: GUID - what are they for Excel and Word

Hi Andrey,

 

Thank you for your interest in our product.

The GUID for Microsoft Word 11.0 Object Type Library is {00020905-0000-0000-C000-000000000046} and the GUID for Microsoft Excel 11.0 Object Type Library is {00020813-0000-0000-C000-000000000046}.

But you can easily find this out by yourself if you run the ufffdufffdufffdCode Generator For ComfyJufffdufffdufffd in the GUI mode and choose the Generate for a registered COM type library option. To start a GUI-based program, run CodegenForComfyJ.bat without any parameters.

 

________________________

 

Sincerely,

Alexey Razoryonov,

Software Developer

TeamDev Ltd.

 

Kristian Rasmussen   1 posts since
Apr 24, 2006
Currently Being Moderated
2. Apr 18, 2006 5:59 PM in response to: Alexei Razoryonov
Re: Re: GUID - what are they for Excel and Word

Hi Alexey ,

 

I'm currently evaluating comfyj for a client. Briefly they want to open a word document and manipulate it. Since POI isn't really of any use when it comes to word, I wanted to checkout jniwrappers and comfyJ.

 

I've been trying the GUID's suggested with different version numbers, since my client is using NT 4.0 SP6 and Office 97 (Yes I know its ancient ). However I keep getting an error library not registered from the codegenforcomfy. By the way, the gui part doesn't work on NT. It simply wont start.

 

Now I've looked in HKEY_CLASSES_ROOT\CLSID after something usable; I found {00020906-0000-0000-C000-000000000046} note the 6. I've also tried using progid Word.Application and progid Word.Document. None the less it doesn't really work.

 

Could it be because of the ancient version of windows or office?

 

Best regards

 

Kristian Rasmussen

Java Consultant

KRConsulting

Igor Novikov TeamDev Ltd. 225 posts since
Apr 24, 2006
Currently Being Moderated
3. Apr 27, 2006 4:57 PM in response to: Kristian Rasmussen
Re: Re: Re: GUID - what are they for Excel and Word

Hi Kristian,

 

Excel and Word GIUDs are constant values. It's a basic COM rule. It seems the problem is because ComfyJ generator cannot find your Java installation. It tries finding it at startup according to Windows registry keys. Please check that the following keys exist:

 

-


REGEDIT4

 

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft

 

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit

"CurrentVersion"="1.4.2"

 

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4.2

"JavaHome"="C:
java
j2sdk1.4.2"

-


 

If these keys are absent in registry, you can update these lines to your current values, and update the registry.

More Like This

  • Retrieving data ...