Re: How to acces com port from PL/SQL ??

From: Miho <formatiksREMOVE_at_yahoo.co.uk>
Date: Thu, 12 May 2005 13:05:55 +0200
Message-ID: <d5vdao$9aq$1_at_sunce.iskon.hr>


I guess you need send some text or similar to output device (printer, lcd display) connected on com port. This is one example I use in my aplication, to print receipts on POS printer, over com or LPT printer. But, instead of com port, this is way you can make txt file on disk too.

    example:

procedure print is
 file_handle TEXT_IO.FILE_TYPE;
 out VARCHAR2(255);
begin

   file_handle:= text_io.fopen('com1' , 'W');    TEXT_IO.PUT_LINE(file_handle, 'some text you want to print');



   text_io.fclose(file_hadle);
end;
end;

"Robert Bralic" <robo_bralic_at_yahoo.co.uk> wrote in message news:d5ca35$4r5$1_at_ss405.t-com.hr...
> I have problem with accesing com port from PL/SQL,
> can anybody tell me how can I do this ??
>
> Thanks ina advance, Robert !
> robo_bralic_at_yahoo.co.uk
>
>
Received on Thu May 12 2005 - 13:05:55 CEST

Original text of this message