You can do it as far ahead as 10 days in advance. You can even put the credit card you want to use for room charging on there. Then you go to the special online check in desk at the resort and pick up your keys and other materials.
I did the online checkin last week and it was very simple. I will pick up my stuff tomorrow and let you know how smoothly this goes.