Dosemu to cups-pdf printer peient problem

I have try to print pdfprinter from foxpro 2.6a use of dosemu in ubuntu 10.04. but every time give massage at printer state "Idle - /user lib cups/backend/cups-pdf failed"
how to i solve it.
any idea to save print job from dosemu or foxpro to a text file.