The president said he had enjoyed a good relationship with the late Queen Elizabeth II and her son, King Charles III.