I can't found a solution with poi for the following Problem.

It should be possible to convert the following templates:

".dotx" to ".docx"
".dotm" to ".docm"
".xltx" to "xlsx"
".xltm" to ".xlsm"
".potx" to ".pptx"
".potm" to ".pptm"

I tried to use poi in this way:

for (PackagePart part : xmlTextExtractor.getDocument().getPackage().getParts()) 
{
 if 
(part.getContentType().equals("application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml"))
 {
  
part.setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml");
 }
}

But it looks like that this is not implemented yet. Isn't it?







---
Nutzen Sie freenet Mail optimal angepasst für Ihr iPhone, Android oder Nokia 
Handy auch von unterwegs.
Alle Infos und Download unter http://mail.freenet.de/mobile-email/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to