It was a 1937 version of The Prisoner of Zenda , with Ronald Colman, Douglas Fairbanks Jr., Raymond Massey, David Niven, Madeleine Carroll, and Mary Astor.
The book we are talking about is the Prisoner of the Ballerina.