in reply to Format Syntax error on "."
Also, which is line 52? I doubt that many people can be bothered to count lines for you.
For a usage like we see in the OP, sure, sprintf() is the way to go.
Have you even written a multi-page report using nothing but sprintf()? It's painful but formats make it bearable.