He never did officially. There were some tests made on 1999 Tour samples a few years later that turned up traces of EPO in a blood sample, and a leaked document linked the numbers on the sample (cos naturally they don't write the riders names on!) to Lance.
Documents weren't leaked, they were released to the L'Equipe journalist investigating the story by the then head of the UCI medical commission. Recently the current head of the UCI medical commission said in an interview on German TV that the science behind the tests was sound and they should have therefore been considered a positive.
Armstrong got away with it because of collusion between him and the then President of the UCI, Hein Verbruggen.
Armstrong got away with it because of collusion between him and the then President of the UCI, Hein Verbruggen.