 He served as president of the Hollidaysburg Trust Co. from 1898 to 1930.Hartman was elected as a Republican to the Sixty-second Congress.He was unsuccessful as a candidate for reelection in 1912, and for election in 1914.