To be registered in the Swedish Population Register you need to be able to show that you are employed and working or will be working in Sweden.
The required documents to bring to the service office depend on your citizenship or if you move with or move in with a family member.