A method of doping solar cell front contact can improve the efficiency of CdTe-based or other kinds of solar cells.