A pregnant Princess Beatrice has stepped in for King Charles III at a recent event.