From: Sandro R. R. F. <san...@ya...> - 2004-03-16 18:29:05
|
Hi Alexander Necessary to play an archive PRN, for the printer standard of windows, I do not want to use the LPT. I did not find documentation API, has some solution. Its necessary to use in printers USB, Fax and all others formats. Regards ----------------------- Sandro Freire |
From: Alexander S.K. <al...@be...> - 2004-03-17 11:19:12
|
On 16.03.04 21:18, Sandro R. R. Freire <san...@ya...> wrote: SRRF> Hi Alexander SRRF> Necessary to play an archive PRN, for the printer standard of windows, I do SRRF> not want to use the LPT. I did not find documentation API, has some SRRF> solution. SRRF> Its necessary to use in printers USB, Fax and all others formats. Sorry, I didn't understand, what is 'an archive PRN' and why they can't be printed on USB printer ? Regards, Alexander http://kresin.belgorod.su |
From: Rodrigo M. <rod...@te...> - 2004-03-17 12:58:20
|
Hi Alex, Sandro is trying print dos files to usb printers, but using the set printer to lptx doens't works on usb windows printers, so the solution is spool all harbour printing to a file and then read this file sending it to windows using winapi functions, like HPrinter. Regards Rodrigo -----Mensagem original----- De: hwg...@li... [mailto:hwg...@li...]Em nome de Alexander S.Kresin Enviada em: quarta-feira, 17 de marco de 2004 08:18 Para: hwg...@li... Assunto: [Hwgui-developers] Re: Print PRN On 16.03.04 21:18, Sandro R. R. Freire <san...@ya...> wrote: SRRF> Hi Alexander SRRF> Necessary to play an archive PRN, for the printer standard of windows, I do SRRF> not want to use the LPT. I did not find documentation API, has some SRRF> solution. SRRF> Its necessary to use in printers USB, Fax and all others formats. Sorry, I didn't understand, what is 'an archive PRN' and why they can't be printed on USB printer ? Regards, Alexander http://kresin.belgorod.su ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Hwgui-developers mailing list Hwg...@li... https://lists.sourceforge.net/lists/listinfo/hwgui-developers |
From: Sandro R. R. F. <san...@ya...> - 2004-03-17 13:03:30
|
Please it verifies if the code below can be adapted for the use of the HwGUI sending an archive txt #include <Printers.hpp> void __fastcall TForm1::Button1Click(TObject *Sender) { TPrinter Prntr = Printer(); TRect r = Rect(200,200,Prntr->PageWidth - 200,Prntr->PageHeight - 200); Prntr->BeginDoc(); Prntr->Canvas->TextRect(r, 200, 200, Memo1->Lines->Text); Prntr->EndDoc(); } Regards ----------------------- Sandro Freire ----- Original Message ----- From: "Rodrigo Moreno" <rod...@te...> To: "Alexander S.Kresin" <al...@be...>; <hwg...@li...> Sent: Wednesday, March 17, 2004 9:58 AM Subject: RES: [Hwgui-developers] Re: Print PRN > Hi Alex, > >> > Sandro is trying print dos files to usb printers, but using the set printer > to lptx doens't works on usb windows printers, so the solution is spool all > harbour printing to a file and then read this file sending it to windows > using winapi functions, like HPrinter. > > > Regards > Rodrigo > > -----Mensagem original----- > De: hwg...@li... > [mailto:hwg...@li...]Em nome de > Alexander S.Kresin > Enviada em: quarta-feira, 17 de marco de 2004 08:18 > Para: hwg...@li... > Assunto: [Hwgui-developers] Re: Print PRN > > > On 16.03.04 21:18, Sandro R. R. Freire <san...@ya...> wrote: > > SRRF> Hi Alexander > SRRF> Necessary to play an archive PRN, for the printer standard of windows, > I do > SRRF> not want to use the LPT. I did not find documentation API, has some > SRRF> solution. > SRRF> Its necessary to use in printers USB, Fax and all others formats. > > Sorry, I didn't understand, what is 'an archive PRN' and why they > can't be printed on USB printer ? > > Regards, > Alexander > http://kresin.belgorod.su > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers |
From: Rodrigo M. <rod...@te...> - 2004-03-17 13:09:52
|
This is a C++ Builder ? hehehe I Already use it a long time ago, the sintax code is almost the same that delphi, so i can inside of Delphi source code, but i think, this features already exists on contrib/TWinPrn, this is correct ? Regards Rodrigo -----Mensagem original----- De: hwg...@li... [mailto:hwg...@li...]Em nome de Sandro R. R. Freire Enviada em: quarta-feira, 17 de março de 2004 10:01 Para: hwg...@li... Assunto: Re: [Hwgui-developers] Re: Print PRN Please it verifies if the code below can be adapted for the use of the HwGUI sending an archive txt #include <Printers.hpp> void __fastcall TForm1::Button1Click(TObject *Sender) { TPrinter Prntr = Printer(); TRect r = Rect(200,200,Prntr->PageWidth - 200,Prntr->PageHeight - 200); Prntr->BeginDoc(); Prntr->Canvas->TextRect(r, 200, 200, Memo1->Lines->Text); Prntr->EndDoc(); } Regards ----------------------- Sandro Freire ----- Original Message ----- From: "Rodrigo Moreno" <rod...@te...> To: "Alexander S.Kresin" <al...@be...>; <hwg...@li...> Sent: Wednesday, March 17, 2004 9:58 AM Subject: RES: [Hwgui-developers] Re: Print PRN > Hi Alex, > >> > Sandro is trying print dos files to usb printers, but using the set printer > to lptx doens't works on usb windows printers, so the solution is spool all > harbour printing to a file and then read this file sending it to windows > using winapi functions, like HPrinter. > > > Regards > Rodrigo > > -----Mensagem original----- > De: hwg...@li... > [mailto:hwg...@li...]Em nome de > Alexander S.Kresin > Enviada em: quarta-feira, 17 de marco de 2004 08:18 > Para: hwg...@li... > Assunto: [Hwgui-developers] Re: Print PRN > > > On 16.03.04 21:18, Sandro R. R. Freire <san...@ya...> wrote: > > SRRF> Hi Alexander > SRRF> Necessary to play an archive PRN, for the printer standard of windows, > I do > SRRF> not want to use the LPT. I did not find documentation API, has some > SRRF> solution. > SRRF> Its necessary to use in printers USB, Fax and all others formats. > > Sorry, I didn't understand, what is 'an archive PRN' and why they > can't be printed on USB printer ? > > Regards, > Alexander > http://kresin.belgorod.su > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Hwgui-developers mailing list Hwg...@li... https://lists.sourceforge.net/lists/listinfo/hwgui-developers |
From: Alexander S.K. <al...@be...> - 2004-03-18 06:59:37
|
On 17.03.2004 16:01, Sandro R. R. Freire <san...@ya...> wrote: SRRF> Please it verifies if the code below can be adapted for the use of the HwGUI SRRF> sending an archive txt SRRF> #include <Printers.hpp> SRRF> void __fastcall TForm1::Button1Click(TObject *Sender) SRRF> { SRRF> TPrinter Prntr = Printer(); SRRF> TRect r = Rect(200,200,Prntr->PageWidth - 200,Prntr->PageHeight - 200); Prntr->>BeginDoc(); Prntr->>Canvas->TextRect(r, 200, 200, Memo1->Lines->Text); Prntr->>EndDoc(); SRRF> } Yes, it's possible: Function Main Local oPrinter := HPrinter():New() Local aPrnCoors := GetDeviceArea( oPrinter:hDCPrn ) Local cText := Memoread( "aprint.prg" ) oPrinter:StartDoc() oPrinter:StartPage() oPrinter:Say( cText,100,100,aPrnCoors[1]-100,aPrnCoors[2]-100 ) oPrinter:EndPage() oPrinter:EndDoc() oPrinter:End() Return Of course, this is simplest code. In a real application you will need to determine the size of a printed text and divide it to pages, if necessary. Probably, it will be needed to set other font. Sure, HPrinter should be extended - the size of the device area should be determined automatically in HPrinter():New(). Regards, Alexander http://kresin.belgorod.su |
From: Alexander S.K. <al...@be...> - 2004-03-18 07:09:47
Attachments:
clpwinprint.htm
|
On 17.03.2004 15:58, Rodrigo Moreno <rod...@te...> wrote: RM> Sandro is trying print dos files to usb printers, but using the set printer RM> to lptx doens't works on usb windows printers, so the solution is spool all RM> harbour printing to a file and then read this file sending it to windows RM> using winapi functions, like HPrinter. Another solution is to use one of special utilities, which does the same. Attached is an old document about this, which I'd found in comp.lang.clipper archive. Regards, Alexander http://kresin.belgorod.su |