Answered by:
Why toggle operand values(font styles) are changed in DOC and DOCX format ?

Question
-
Hi All,
I have a Word document(*.doc) with Character styles as well as Paragraph styles. I have applied the character style for the particular run element and its owner paragraph contains paragraph style. If I re save the document to DOCX format bold formatting not applied(But in styles.xml file contains the bold tag), But it is preserved properly when I am doing DOC to DOC conversion. Can anyone confirm is this one is issue/ behavior difference of DOC and DOCX format?
FYI
Paragraph style sprmCFBold Spmr byte value - 129
Character style sprmCFBold Sprm byte value - 1.
If I resave the document from DOCX(Resaved from DOC) to DOC, the below sprm values are updated
Paragraph style sprmCFBold Spmr byte value - 129
Character style sprmCFBold Sprm byte value - 129.
Thanks,
Pradeep L
- Edited by Pradeep L(c23) Tuesday, November 8, 2016 12:39 PM Somebody may don't know ToggleOperand.
Tuesday, November 8, 2016 6:13 AM
Answers
-
The link is about the information regarding "maintain the compatibility with previous versions of word".
still you have misunderstanding with this feature.
There are 2 things that I want to inform you to clear the issue.
From the Warning message at the time of conversion , it clearly proves that when you change the version some changes are occurred and word is already informing you before applying these changes.
so the above description clears the question "why some changes are occurred when convert from .doc to .docx".
now second question. you had mentioned that you had you check or uncheck the option "maintain the compatibility with previous versions of word" but changes are still made after conversion.
yes, this is the expected behavior.
because "maintain the compatibility with previous versions of word" is not related with changes at all.
both are totally different things.
"maintain the compatibility with previous versions of word" is used for opening the new document with older version.
hope this will give you clear idea about both things.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Marked as answer by Pradeep L(c23) Friday, November 11, 2016 9:41 AM
Friday, November 11, 2016 9:21 AM
All replies
-
you had mentioned that when you try to convert from *.Dox to *.Docx then bold tags are added in styles.xml file.
here I want to ask you how you convert .doc to .docx?
using Word Application? or with Code?
you did not mentioned in which version of Word you face this issue. so that we can try to test with that version and follow your steps to reproduce the issue at our end.
after conversion did you check the word file by opening it? did you see any difference there?
off course when you change the extension then many things get changed in background.
you can visit the link mentioned below to know about some changes.
Compatibility changes between versions
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Wednesday, November 9, 2016 5:20 AM -
Hi Deepak,
Thanks for the reply.
I have converted the *.doc to *.docx using Word application only and not by code. I can see the the changes in bold preservation for the text in *.docx file. In package level both Character style and Paragraph's Paragraph Style run properties contains the bold tag. Please let me know if you faced same issue before or do you know any details regarding this toggle operand specifications.
Thanks,
Pradeep L
Friday, November 11, 2016 5:21 AM -
As I informed you earlier when you try to change the version of the document and try to save with different extension then some changes are occur and we can't control over it.
you had mentioned that you are doing the conversion manually using user interface.
so when you try to change from .doc to .docx then it will show the warning related this and inform you about this change.
so after the conversion if you find some changes then you need to manually correct it.
because we don't have any option or setting in word to stop it.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Friday, November 11, 2016 8:36 AM -
Hi Deepak,
While converting I have checked the maintain Compatibility option, As of the reference Word maintains the same preservation as equivalent to older format.
Preservation loss occurred even I have checked the Maintain Compatibility option.
Thanks,
Pradeep L
Friday, November 11, 2016 8:43 AM -
Maintain Compatibility with previous versions of word it means that after converting to the new version you are still able to open this document with the older version of MS Word Applications.
if you uncheck this option then you will not be able to open the document using older version.
when you convert the document at that time lots of new feature that are supported by the newer version will be added to the document.
but when you try to open the same document with older version then at that time the newer features will be disabled and not available to use in older version but you have full control to edit your document with the features supported by the older version.
to get the detailed information regarding this feature please visit the link mentioned below.
Use Word 2016 to open documents created in earlier versions of Word
Create a document to be used by previous versions of Word
Regards
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Proposed as answer by Deepak Saradkumar PanchalMicrosoft contingent staff Friday, November 11, 2016 8:55 AM
Friday, November 11, 2016 8:55 AM -
Hi Deepak,
Thanks for your details. I don't know why the font style(Bold) are changed for the text, the given link doesn't specify any information about the text effects.
This font style changes occurred in both compatibility option checked/unchecked while resave the document.
Can you please explain why the font style changes occurred?.
Thanks,
Pradeep L
Friday, November 11, 2016 9:10 AM -
The link is about the information regarding "maintain the compatibility with previous versions of word".
still you have misunderstanding with this feature.
There are 2 things that I want to inform you to clear the issue.
From the Warning message at the time of conversion , it clearly proves that when you change the version some changes are occurred and word is already informing you before applying these changes.
so the above description clears the question "why some changes are occurred when convert from .doc to .docx".
now second question. you had mentioned that you had you check or uncheck the option "maintain the compatibility with previous versions of word" but changes are still made after conversion.
yes, this is the expected behavior.
because "maintain the compatibility with previous versions of word" is not related with changes at all.
both are totally different things.
"maintain the compatibility with previous versions of word" is used for opening the new document with older version.
hope this will give you clear idea about both things.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Marked as answer by Pradeep L(c23) Friday, November 11, 2016 9:41 AM
Friday, November 11, 2016 9:21 AM -
Hi Deepak,
Thanks for your information, now I have understood.
Thanks,
Pradeep L
Friday, November 11, 2016 9:42 AM