https://bz.apache.org/bugzilla/show_bug.cgi?id=66612
--- Comment #4 from 1u...@protonmail.com --- (In reply to PJ Fanning from comment #3) > I tested your xlsm file and this code seems to get the macrosheet part > > String relType = > "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet"; > PackageRelationshipCollection prc = > workbook.getPackagePart().getRelationships(); > assertNotNull(prc); > assertEquals(6, prc.size()); > PackageRelationshipCollection prc2 = > prc.getRelationships(relType); > assertNotNull(prc2); > assertEquals(1, prc2.size()); > > workbook.getPackage() checks the wrong relationships - you need > workbook.getPackagePart().getRelationships() Thanks, I get macrosheets part like this, but if I try to removeRelationship then document doesn't open. Do you have a solution for that? And yes stackoverflow question is mine. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org