Before you answer the door and welcome guests, clip a leash on your canine, preferably to a front-clip harness or head halter, so that he can be controlled in a manner such that he cannot greet if he jumps. When your dog is calm, with all four paws on the floor — which may take up to a few minutes for more excitable dogs — allow him to approach guests and say hello. If he jumps, gently turn and lead him away; wait for calm behavior before approaching again. For particularly excitable dogs, another option is to remove the dog to a contained area before guests come in. An exercise pen or baby gate is adequate containment for many dogs. If you have an athletic or large dog that can easily scale a gate, use a crate or move him to a room with a closed door. Once your dog calms down, clip on his leash and allow him to come out and greet your guests.
However, when we are standing or sitting in a chair and they come bounding over to greet us, jumping up on us and trying to reach our face, we must not bend over and exchange hugs and kisses. If we do we are training and rewarding the puppy for jumping up. Eventually, most of us decide we no longer like our puppy jumping up to say hello - usually when the puppy gets bigger and more rambunctious. What used to be cute is now obnoxious and even dangerous if the puppy is jumping up on children or the elderly.