[Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

Vassilis K vkan53 at ...2300...
Thu Sep 24 21:59:14 CEST 2009


Is there any chance to find out why I get the message:
Access forbidden at the following Sub? And of course to make it work?
PUBLIC SUB bEktiposi_Click()
        DIM hPrinter AS Printer
        DIM hFile AS File
        hPrinter = OPEN "dev/lp1" FOR OUTPUT
        hPrinter.EndOfLine = gb.Windows
        PRINT #hFile, "test a line: ";
        CLOSE hPrinter
END

It is compiled but it stops when bEtiposi Button is clicked
at line :
hPrinter = OPEN "dev/lp1" FOR OUTPUT
with the message:
" Access Forbidden. "



More information about the User mailing list