Remember that the graphic of your troops throwing a demo charge is really a substitute for them rushing up to the tank and assaulting it. You can't do that from inside a second story building.
A one story building you could argue that they run outside and assault the tank, but I don't think it's in the game.