Marcel, try this first:
*Thank you for the response.
*I have changed the code for this: changed the & for (cpath) and I am getting the same error?
DEFINE CLASS wwMyserver AS CUSTOM OLEPUBLIC
PROCEDURE PrintFile
SET PRINTER TO NAME "Adobe PDF"
CLOSE TABLES all
USE j:\medebill\1005\history\1005_2454746_29894_z.dbf IN 0 ALIAS TMP
SELECT TMP
*cpath = "j:\medebill\1005\1005pcl.frx"
PUBLIC rpt_prerun
rpt_prerun=.F.
REPORT FORM j:\medebill\1005\1005pcl.frx TO PRINTER NOCONSOLE
USE
ENDPROC
ENDDEFINE