Hello,
Hi
Thanks for your request. Could you please attach a sample document and provide a simple code that will allow us to reproduce the problem? We will check the issue and provide you more information.
Best regards,
Thanks, I’ll send you on sample code and a sample document.
Hi
I will wait for your inputs.
Best regards,
Hi, you should have the sample code and document now (by email).
Hi James,
Thanks for your request. Unfortunately, I did not receive any emails. Could you please simply attach the inputs here n the forum. It is safe to attach files in the forum. Only you and Aspose staff can download the attached files.
Best regards,
Hi, see attached zip file for sample document and code. Thanks.
Hi
Thank you for additional information. You should modify your code as shown below (see my comments in the code):
// You cannot set StyleIdentifier.User this identified does nto correspond to any specific style.
// This identified means that style is not standard and created by user, this can be any style created by user.
if (copy.StyleIdentifier != StyleIdentifier.User)
current.Font.StyleIdentifier = copy.StyleIdentifier;
// You have to check whether the style exists in the document, if not, you cannot use it.
if (current.Document.Styles[copy.StyleName] != null)
current.Font.StyleName = copy.StyleName;
Best regards,