Quote:
Originally Posted by BetterRed
I've noticed this a couple of times - sometimes when I make a change to a rules document the xml file doesn't get rebuilt next time I use the rules document. Until now I resolved by starting and stopping Word, sometimes several times.
But that's not working now - the only thing of significance that's changed is that I upgraded to Windows 10 Version 1511 build 10586 - but I can't imagine that's germane.
Personally I would rather do something explicit to rebuild the xml file from the .doc when I change the doc file, rather than hoping it gets rebuilt when I use it, which may not be immediately after I change it.
The attached screenshot contains what I think is the relevant information. Note the dates on my rules document (2015-11-16 (today)) and the xml file (2015-11-12 (last Thursday))
I'll try editing my changes directly into the XML file, looks easy enough.
BR
|
There are several procedures is as follows:
1. When Word starts, a hash is calculated of the SR document specified in the settings. If the hash is different compared to the stored hash (or there is no stored hash), the SR xml file is created. This is done in the background. When this procedure runs, a flag is set (this gives the message you saw earlier).
2. If you start the SR process, the same check is done as in 1, to ensure that in the meantime no changes are made.
3. If you change the SR document in the settings, it will do the same as 1. To be honest without looking at the code I cannot determine if this is done when the document is selected or after saving the settings. I think it is the first.
4. If the SR document is edited with the editor, it will do the same as 1 again, but not in the background. After editing the SR document will be adapted and stored. The temporary XML file used for the editor becomes the new XML file (saves a lot of time...).
So, if the XML is not recreated, the hash is probably not changed according to the hash procedure in .NET. I choose hash, because it should be more effective than size and/or date.
Therefore I am a bit baffled that it doesn't work for you.
Quote:
Originally Posted by BetterRed
Indeed it is easier, by a country mile what's more
BR
|
Yes, but the changes are that they will be overwritten when a change in hash is detected in the Word file.
What I will do is build in an option to choose between a SR document or a SR XML file.