Free Support Forum - aspose.com

Highlighting appears again

Hi

we have some problems with a Sharepoint Event Handler which saves some custom properties to a word-document. Tracking Changes is enabled. When we set some text-segment to non-highlighted and do our aspose.words operations, the text gets highlighted again. We could reproduce this behaviour with aspose.words 5 and with the 8.1 demo.

Thanks in advance

Tobias

Hi Tobias,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please provide me simple code, which will allow me to reproduce the problem, and attach sample document here for testing? I will check the issue and provide you more information.

Best regards.

Hialexey.noskov is not online. Last active: 02-26-2010, 6:52 AM Alexey

Thanks for your reponse.

I have attached two screenshots and a doc-file to reproduce the problems.

The codepart, which causes the problems is listed below:

License i = new License();
i.SetLicense("Aspose.Words.lic");
Document doc = new Document(inStream);

if (doc.CustomDocumentProperties["SPDOCUMENTNUMBER"] == null)
doc.CustomDocumentProperties.Add("SPDOCUMENTNUMBER", docNo);
else
doc.CustomDocumentProperties["SPDOCUMENTNUMBER"].Value = docNo;

if (doc.CustomDocumentProperties["SPVERSION"] == null)
doc.CustomDocumentProperties.Add("SPVERSION", version);
else
doc.CustomDocumentProperties["SPVERSION"].Value = version;

if (doc.CustomDocumentProperties["SPLASTMODIFIED"] == null)
doc.CustomDocumentProperties.Add("SPLASTMODIFIED", checkinDate);
else
doc.CustomDocumentProperties["SPLASTMODIFIED"].Value = checkinDate;

doc.Save(outStream, SaveFormat.Doc);

Thanks in Advance

Tobias

Hi Tobias,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I just tried with the latest version of Aspose.Words (8.1.0) and all works fine. The output document looks exactly the same as input document. So please trying the latest version of Aspose.Words one more time. Maybe you missed to renew the reference in your application the previous time.

Best regards.

Hi Alexey

You’re right.
Somehow the old 5.0.0 got in the GAC again.

After deploying the 8.1 it’s working fine. Thanks for your advice.

Best Regards
Tobias