set prin to myprint.txtafter that if you want to use ? command use it. don't use ??? command...
set prin to DECLARE INTEGER CopyFile IN kernel32; STRING lpSrcFile, STRING lpDstFile, INTEGER bFail CopyFile("myprint.txt","prn", 0)that api support even network printers (you have to use network printers name like : secretary\\ibm ) ...