You can get H1B stamping in Canada. As you are rightly thinking, you need a visa....TRV to enter Canada. As mentioned by other forum member, you can come back to US with in 30 days. Beyond that you Can't use automatic entry. The only difficulty you would have is if your processing is delayed...