DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24183

[PATCH] Added CLSID support for DirectoryNodes

           Summary: [PATCH] Added CLSID support for DirectoryNodes
           Product: POI
           Version: 2.0-pre3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: POIFS
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If you try to copy an Excel file with OLE objects (embeded, linked, commaind 
buttons, VBA macros) to another file using POI library then the links to these 
embeded objects are removed. 

Lets say you have Excel spreadsheet with a command button that associated with 
vba macro that pops up a message box. In the original Excel spreadsheet you 
click on the button, the vba code gets executed and message is displayed. You 
deep copy all the streams and storages from the original file to new compound 
storage file. You open this new file and you can see the button, but nothing 
happens if you click this button. It doesn't even change to pressed/unpressed 
state. 

This is beacause CLSIDs for the directories/storages are stripped out. 

I add getters and setters for CLSID to the Property object and DirectoryEntry 
inteface. They take CLSID as a string in the format that Windows Registry is 
using "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"

Kirill Jacobson
www.SoftArtisans.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to