How do you cook canned baked beans in an oven?

You don't cook baked beans in the oven you cook them over a stove/gas hob.