[Gambas-user] Ask About POS Programming using Gambas

jose julio vidal jj at ...1636...
Thu Jan 8 22:22:19 CET 2009


Hi!

my code:
  
  ....
  DIM hFile AS File
  DIM txt AS String
  txt=Chr$(&H1B) & "m" & Chr$(49) & Chr$(0) 'corte papel parcial
  TRY hFile = OPEN "/dev/lp0" FOR WRITE
  WRITE #hfile, txt 
  IF ERROR THEN 
    message.Error("No se puede acceder a la Impresora")
  ELSE 
  END IF
  ....

regards



El jue, 08-01-2009 a las 13:02 +0800, Leo Sendra escribió:
> Hi all,
> 
> I have a problem with my POS program. I have printed a receipt through /dev/lp0. It works.
> But, when I want to execute a cut paper command, an error occurs. It says that /dev/lp0 is busy.
> I know that the printer is still printing when I execute a cut paper command.
> So, how to handle this error?
> I think, the solution is I have to execute a cut paper command after the printer stop printing. But, I don't understand the code.
> 
> So, how the codes??? Help me please...
> 
> 
> Thanks for your help...
> 
> 
> 
>       Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! Messenger yang serba baru sekarang! http://id.messenger.yahoo.com
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list