... en la definicion de clave tienes que ponerle % en vez de localhost Y tienes algun el codigo de ejemplo, la conexion con Utilitarios como Mysql Fron me funciona bien
While You found a conclusion for this threat I'm working... and perhaps I found a solution for print a pdf fron Preview using tpdf class and another class modified ....CLASS TSalXLS -> TSalpdf but I think make it only for report class not for printer class