I have a document library in which the users create new document from the template. I want to display the version number of document in the header.
I performed the steps which are described in this article.
It shows the version correctly until it is major version.
When the document is published and gets major version then it displays minor version only.
For ex: I performed the following steps.
Created new document and edited from document library at that time version displayed 0.1 which is correct.
Then workflow started and there was only one approver1. Meanwhile the worklfow was not completed, I opened the document in word and it displayed 0.2 version which is also correct.
Approved the document and published the document as major version then it displays 0.3 instead of 1.0
Below is the image of document library view which displays the correct version.
Below is the image of document which displays the incorrect version.