Wilson,
Muchas gracias
Si no tienes inconveniente vamos a copiar aqui el código para que le sea de utilidad a otros usuarios
pidion.prg
#define __TEST__
//definiciones para la pidion
#define BB_PRINTER_SEORO Â Â Â Â Â Â 0
#define BB_PRINTER_SEIKO Â Â Â Â Â Â 1
#define BB_PRINTER_NONE Â Â Â Â Â Â 2
#define BB_PRINT_DEFAULT Â Â Â Â Â Â 0
#define BB_PRINT_EMPHASIZE Â Â Â Â Â 1
#define BB_PRINT_CENTERALIGN Â Â Â Â 2
#define BB_PRINT_RIGHTALIGN Â Â Â Â 4
#define BB_PRINT_DOUBLEWIDTH Â Â Â Â 8
#define BB_PRINT_DOUBLEHEIGHT Â Â Â 16
#define BB_PRINT_DOUBLESIZE Â Â Â Â 24
#define BB_PRINT_UNDERLINE Â Â Â Â Â 32
#define BB_PRINT_DENSITY_60PERCENT Â 0
#define BB_PRINT_DENSITY_70PERCENT Â 1
#define BB_PRINT_DENSITY_80PERCENT Â 2
#define BB_PRINT_DENSITY_90PERCENT Â 3
#define BB_PRINT_DENSITY_100PERCENT 4
#define BB_PRINT_DENSITY_110PERCENT 5
#define BB_PRINT_DENSITY_120PERCENT 6
#define BB_PRINT_DENSITY_130PERCENT 7
#define BB_PRINT_DENSITY_140PERCENT 8
#define BB_PRINT_DENSITY_DEFAULT Â Â BB_PRINT_DENSITY_90PERCENT
#define BB_PRINT_DENSITY_MIN Â Â Â Â BB_PRINT_DENSITY_60PERCENT
#define BB_PRINT_DENSITY_MAX Â Â Â Â BB_PRINT_DENSITY_140PERCENT
#define BB_PRINT_LINESPACING_ONESIXTH Â 24
#define BB_PRINT_LINESPACING_DEFAULT Â Â 24
#define BB_PRINT_LINESPACING_MAX Â Â Â Â 255
#define BB_PRINT_BARCODE_UPCA Â Â Â 65
#define BB_PRINT_BARCODE_JAN13 Â Â Â 67
#define BB_PRINT_BARCODE_JAN8 Â Â Â 68
#define BB_PRINT_BARCODE_CODE39 Â Â 69
#define BB_PRINT_BARCODE_ITF Â Â Â Â 70
#define BB_PRINT_BARCODE_CODABAR Â Â 71
#define BB_PRINT_BARCODE_CODE93 Â Â 72
#define BB_PRINT_BARCODE_CODE128 Â Â 73
#define BB_PRINT_BARCODE_CODE128A Â 73
#define BB_PRINT_BARCODE_CODE128B Â 74
#define BB_PRINT_BARCODE_CODE128C Â 75
#define BB_PRINT_BARCODE_WIDTH_THIN Â Â Â Â 2
#define BB_PRINT_BARCODE_WIDTH_NORMAL Â Â Â 3
#define BB_PRINT_BARCODE_WIDTH_THICK Â Â Â Â 4
#define BB_PRINT_BARCODE_WIDTH_MORETHICK Â Â 5
#define BB_PRINT_BARCODE_WIDTH_MOSTTHICK Â Â 6
#define BB_PRINT_BARCODE_ALIGN_LEFT Â Â Â Â 0
#define BB_PRINT_BARCODE_ALIGN_CENTER Â Â Â 2
#define BB_PRINT_BARCODE_ALIGN_RIGHT Â Â Â Â 4
#define BB_PRINT_BITMAP_NORMAL Â Â Â Â Â Â Â 0
#define BB_PRINT_BITMAP_DOUBLE_HEIGHT Â Â Â 1
#define BB_PRINT_BITMAP_DOUBLE_WIDTH Â Â Â Â 2
#define BB_PRINT_BITMAP_DOUBLE Â Â Â Â Â Â Â 3
#define BB_PRINT_BITMAP_ALIGN_CENTER Â Â Â Â 4
#define BB_PRINT_BITMAP_ALIGN_RIGHT Â Â Â Â 8
#define BB_PRINT_FONTTYPE_42 Â Â Â Â Â Â Â Â 0
#define BB_PRINT_FONTTYPE_40 Â Â Â Â Â Â Â Â 1
#define BB_PRINT_FONTTYPE_32 Â Â Â Â Â Â Â Â 2
#define BB_PRINT_FONTSET_ASCII Â Â Â Â Â Â Â 0
#define BB_PRINT_FONTSET_HANGUL Â Â Â Â Â Â 1
#define BB_PRINT_FONTSET_SYMBOL Â Â Â Â Â Â 2
#define BB_PRINT_FONTSET_THAI Â Â Â Â Â Â Â 3
#include "FWCE.ch"
#include "vKey.ch"
#include "winapi.ch"
#include "DbInfo.ch"
#define SISTEMA "Jose-Pocket-Pc"
#define RDD_SISTEMA Â Â Â 'DbfCdx'
#ifdef __TEST__
  Function Main
    ProvaStampaPidion()
  Return Nil
#endif
FUNCTION ProvaStampaPidion()
 LOCAL i
 //Prt_ProvaStampa()
 Prt_Open()
 Prt_Init()
 Prt_PrintText( AnsiToWide( "Prova Riga 1"  + CRLF ), BB_PRINT_DEFAULT )
 Prt_PrintText( AnsiToWide( "Prova Riga 2"  + CRLF ), BB_PRINT_CENTERALIGN )
 Prt_PrintText( AnsiToWide( "Prova Riga 3"  + CRLF ), BB_PRINT_RIGHTALIGN )
 Prt_PrintText( AnsiToWide( "Prova Riga 4"  + CRLF ), BB_PRINT_DOUBLEWIDTH )
 Prt_PrintText( AnsiToWide( "Prova Riga 5"  + CRLF ), BB_PRINT_DOUBLEHEIGHT )
 Prt_PrintText( AnsiToWide( "Prova Riga 6"  + CRLF ), BB_PRINT_DOUBLESIZE )
 Prt_PrintText( AnsiToWide( "Prova Riga 7"  + CRLF ), BB_PRINT_UNDERLINE )
 Prt_PrintText( AnsiToWide( "Prova Riga 8"  + CRLF ), BB_PRINT_CENTERALIGN + BB_PRINT_UNDERLINE )
/*
#define BB_PRINT_EMPHASIZE Â Â Â Â Â 1
#define BB_PRINT_CENTERALIGN Â Â Â Â 2
#define BB_PRINT_RIGHTALIGN Â Â Â Â 4
#define BB_PRINT_DOUBLEWIDTH Â Â Â Â 8
#define BB_PRINT_DOUBLEHEIGHT Â Â Â 16
#define BB_PRINT_DOUBLESIZE Â Â Â Â 24
#define BB_PRINT_UNDERLINE Â Â Â Â Â 32
*/
 FOR i := 1 TO 4
  Prt_PrintText( AnsiToWide( CRLF ), BB_PRINT_DEFAULT )
 NEXT
 //Sleep(100)
 Prt_Close()
 msginfo("Chiusa")
RETURN NIL
  ********
  FUNCTION Prt_LineFeedByLine( nRighe )
  ********
  LOCAL i
   DEFAULT nRighe := 1
   FOR i := 1 TO nRighe
     Prt_PrintText( AnsiToWide( CRLF ), BB_PRINT_DEFAULT )
   NEXT
  RETURN NIL
/// programas para comunicarsze con la impresora de pidion
  #pragma BEGINDUMP
    #include "hbapi.h"
    #include "windows.h"
    #include "bbappapi.h"
    #include "bberror.h"
    static HBBPRINTER hPrinter;
    HB_FUNC( PRT_OPEN )
    {
      hPrinter = BBPrinterOpen( 0 );
      if ( !hPrinter )
      {
        return;
      }
    }
    HB_FUNC( PRT_CLOSE )
    {
      DWORD dwRet = BBPrinterWaitUntilPrintEnd( hPrinter );
      BBPrinterClose( hPrinter );
    }
    HB_FUNC( PRT_INIT )
    {
      BBPrinterSetLineSpacing( hPrinter, 8 );           // Set line spacing 1/18 inch.
      BBPrinterSetDensity( hPrinter, BB_PRINT_DENSITY_100PERCENT );  // Set density 100%
      BBPrinterInit( hPrinter );
    }
    HB_FUNC( PRT_PRINTBITMAP )
    {
      BBPrinterPrintBitmap( hPrinter, (LPCTSTR) hb_parc(1), BB_PRINT_BITMAP_NORMAL );
    }
    HB_FUNC( PRT_PRINTTEXT )
    {
      BBPrinterPrint( hPrinter, (LPCTSTR)hb_parc(1), (DWORD)hb_parnl(2) );
    }
    HB_FUNC( PRT_PROVASTAMPA )
    {
      HBBPRINTER hPrinter = BBPrinterOpen( 0 );
      if ( !hPrinter )
      {
        return;
      }
      BBPrinterSetLineSpacing( hPrinter, 8 );           // Set line spacing 1/18 inch.
      BBPrinterSetDensity( hPrinter, BB_PRINT_DENSITY_100PERCENT );  // Set density 100%
      BBPrinterInit( hPrinter );
      BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
     DWORD dwRet = BBPrinterWaitUntilPrintEnd( hPrinter );
      BBPrinterClose( hPrinter );
    }
  //LPCTSTR
    //BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
     //BBPrinterInit( hPrinter );
    //BBPrinterWaitUntilPrintEnd( hPrinter );
    //BBPrinterClose( hPrinter );
  #pragma ENDDUMP
Aqui está el fichero completo de Wilson con las librerÃas necesarias para la pidion:
http://www.fivetechsoft.com/files/utilities/pidion.zip