General information
Category:
Reports & Report designer
And what have I to do for using a net printer ?
does it work anyway ?
Alessio
>don't use ??? use that (I got Win32 part another thanks him):
>
>
>set prin to printer.tmp
> ??chr()27)+"fkdskfþsdklþkdslþvkþlxc"
>set prin to
>dosprn("printer.tmp")
>
>
>FUNCTION dosprn
>LPARAMETERS xfile,xport,noerase
> IF PCOUNT()=1
> xport="prn"
> ENDIF
> STRTOFILE(CPCONVERT(CPCURRENT(1) ,CPCURRENT(2),FILETOSTR(m.xfile)),m.xfile)
>DECLARE INTEGER CopyFile IN kernel32;
> STRING lpSrcFile, STRING lpDstFile, INTEGER bFail
>CopyFile(m.xfile,m.xport, 0)
>* IF !m.noerase
>* ERASE (m.xfile)
>* ENDIF
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only