FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour SPOOLADD("C:\TEST\PRINT.DAT")
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
SPOOLADD("C:\TEST\PRINT.DAT")
Posted: Thu Jan 13, 2022 07:41 PM
És posible hacer esto en fivewin?

https://harbour.github.io/doc/clct3.html#spoolactiv

Code (fw): Select all Collapse
SET PRINTER TO C:\TEST\PRINT.DAT         // Redirect print
SET DEVICE TO PRINT                      // Print Output
@....SAY....
@....SAY....
SET DEVICE TO SCREEN
SET PRINTER TO                           // Close output file

IF SPOOLACTIV()
   SPOOLADD("C:\TEST\PRINT.DAT")         // .T., if correct
ELSE
   *'normal' print
ENDIF


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion