The night train leaves Vienna a little before nine in the evening. By the time you have found your compartment, made up the bunk and eaten the bread and cheese you brought, it is climbing into the Alps.
I slept badly, the way you always do on a night train, and woke properly at about six as we came down into the Veneto. Breakfast was a roll and a coffee on a tray. Then the train slowed, the window filled with water on both sides, and we rolled across the causeway into Venice.
Booking it
Book a couchette or a sleeper as soon as the dates open, usually three or four months ahead. A seat is cheaper but you will not sleep. Bring your own food and water, and a small torch for finding the toilet at three in the morning.
Walk out of Santa Lucia station before eight and the Grand Canal is still yours.

We did this in March and the arrival across the lagoon really is the best part. Tip for anyone booking: the couchettes facing forward are much quieter than the ones over the wheels.
Did you book through the railway site directly or an agent? The booking page kept timing out for me.
Directly on the railway site, on a laptop rather than the phone. It timed out for me twice too, and worked first thing in the morning.