Based on the answer from KRyan to my previous question about full round attacks done by a rogue hiding in plain sight I know that the rogue needs to roll for hide after every melee attack. so if the rogue did 7 attacks would need to roll 7 times.
Does the same rule apply if the rogue attacks with a ranged weapon?
(Reading the answer to this post it seems that sniping from PH 76 is an obsolete rule that a character attacking with a ranged attack can chose not follow, especially because it would limit the character to only one single attack per round.)
The rogue hides in plain sight, is invisible and incorporeal.
note: (We use the Rule Compendium over the Player Handbook)