 After passing the imperial examination in 1027, Wen Yanbo first became the magistrate of Yicheng County.Later he was appointed controller-general (通判) of Jiang Prefecture.Eventually he arrived in the capital Kaifeng to serve under Emperor Renzong, first as an investigating censor (監察御史) and later as a palace censor (殿中侍御史).