by the way I resolved the xprinter error just by setting up the XPPATH environment variable, but as I expected it did not solve the whole problem.