Display the formtemplate version on the InfoPath 2007 form

To display the form version on the InfoPath 2007 form add an expression box control to the form. Copy and past the following code in the Xpath box.

substring-before(substring-after(/processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'solutionVersion="'), '"')

Determine the SharePoint version

Description WSS KB MOSS KB Version
Aug 09 CU KB973400
June 09 CU
April 09 CU
SP2 KB953338 KB953334
February CU KB961755 KB961756
December CU KB960010 KB960011
October Cumulative update KB957691 KB957693
August Cumulative update KB956056 KB951297
Infrastructure Update KB951695 KB951297
Post SP1 Hotfix KB948945
Post SP1 Hotfix KB941274
Post SP1 Hotfix KB941422
October 2007 public update
August 2007 hotfix
Beta 2 TR
Beta 2