Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.
Tue Oct 24, 2017 2:05 pm
Hi there
I've got a problem while changing the textcolor of a textrange which is already formatted in word. If I change the color of a text which I did not assign a color in word everything works as expected. If I change the color of a text which has another color as “automatic” in word, then the textcolor is not changed with spire.doc.
- Code: Select all
Document document = new Document(@"C:\tmp\TestDocument.docx");
foreach (Paragraph paragraph in document.Sections[0].Paragraphs)
{
foreach (TextRange textRange in paragraph.ChildObjects.OfType<TextRange>())
{
textRange.CharacterFormat.TextColor = Color.Red;
}
}
document.SaveToFile(@"C:\tmp\TestDocument1.docx");
Login to view the files attached to this post.
-
storztools
-
- Posts: 5
- Joined: Fri Aug 04, 2017 11:42 am
Wed Oct 25, 2017 2:41 am
Hi storztools,
Thanks for your inquiry.
I have noticed the issue and logged it in our bug system. We will let you know when it is fixed.
Sorry for the inconvenience caused.
Sincerely,
Betsy
E-iceblue support team
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am
Thu Jan 25, 2018 9:00 am
Hi storztools,
Thanks for your waiting.
Now the issue has been fixed in
Spire.Doc Pack(hot fix) Version:6.1.17.
Looking forward to your feedback.
Sincerely,
Betsy
E-iceblue support team
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am
Fri Jan 26, 2018 10:40 am
Hi,
Greetings from E-iceblue.
Did you use the hotfix ? Could you please give us some feedback ?
Sincerely,
Betsy
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am