Posted: Fri Nov 17, 2006 8:56 am
Antonio, ME FUNCIONA LA IMPRESION!!!
Visto que me recomiendan usar Prt_Open() al abrir el programa y no todo junto, como puedo hacer para crear un objeto (el objeto printer) y tenerlo ahi y usarlo cuando quiera.
Por ejemplo asi:
oPrn := ClaseCPrinter()
oPrn:TestPrint()
o
TestPrint( oPrn )
Gracias
Dear Mr. Pedro
To warm up the printer, it needs to take a few milliseconds.
We modified your code, and it work.
HB_FUNC( PRT_TESTPRINT )
{
CPrinter * printer = new CPrinter;
printer->Prt_Open();
Sleep(30);
printer->Prt_TestPrint();
}
But I do not recommend to use Prt_Open() function at the same routine together with any printing commands.
Visto que me recomiendan usar Prt_Open() al abrir el programa y no todo junto, como puedo hacer para crear un objeto (el objeto printer) y tenerlo ahi y usarlo cuando quiera.
Por ejemplo asi:
oPrn := ClaseCPrinter()
oPrn:TestPrint()
o
TestPrint( oPrn )
Gracias