Code generation to word document generator