We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem with update new version aspose

I have one document where the image is replaced using one old version of aspose but when i try open and save this document with new version this problem occurred

java.lang.UnsupportedOperationException: Do not know how to write a property value of this type.
at asposewobfuscated.nb.a(PropertySetSection.java:415)
at asposewobfuscated.nb.a(PropertySetSection.java:411)
at asposewobfuscated.nb.toByteArray(PropertySetSection.java:174)
at asposewobfuscated.na.d(PropertySet.java:84)
at com.aspose.words.fa.a(DocPropertiesFiler.java:354)
at com.aspose.words.fe.xS(DocWriter.java:170)
at com.aspose.words.fe.a(DocWriter.java:38)
at com.aspose.words.Document.a(Document.java:1269)
at com.aspose.words.Document.save(Document.java:704)
at com.aspose.words.Document.save(Document.java:664)

Do you know say me why this error?


This message was posted using Aspose.Live 2 Forum

Hi

Thanks for your request. Could you please attach your document here for testing? I will check the issue and provide you more information.

Best regards,

below.


Thanks.

Hi

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

Hi,


I like to know about news for this problem, my company have interest in your solution aspose total and this problem is a unique hindrance, sorry but i need this solution with some urgency.

Best regards,

Hello,

Thank you for additional information.
We'll be informed you of any developments of this issue. Sorry for the inconvenience.

Hi

Thanks for your request. The problem seems to be cause by a document property with ObjectArray type. So as a temporary workaround, you can just remove such property before saving the document. Please try using the following code:

Document doc = new Document("C:\\Temp\\in.doc");

// Collect and remove all document properties with Type=ObjectArray

ArrayList<String> removeList = new ArrayList<String>();

for (int i=0; i<doc.getBuiltInDocumentProperties().getCount(); i++)

{

DocumentProperty property = doc.getBuiltInDocumentProperties().get(i);

if (property.getType() == PropertyType.OBJECT_ARRAY)

removeList.add(property.getName());

}

// Remove all properties with Type=ObjectArray

for (String name : removeList)

doc.getBuiltInDocumentProperties().remove(name);

doc.save("C:\\Temp\\out.docm");

Hope this helps.

Best regards,

The issues you have found earlier (filed as WORDSNET-4687) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.