fixed code that generates TextId and ParaId

changed from 8 to 7 digits. It was generating numbers that exceeded the Microsoft documentation.