Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Printing to Thermal Printer (Using Forms 6i)

user6031118Aug 29 2018 — edited Sep 2 2018

I am using oracle forms 6i and want to print my POS invoice on thermal printer. I already have "continuous" printing directly on dot matrix printer where I am opening my LPT port through text_io package and generating invoice as per the requirement.

Now, the customer wants to generate the invoice on a thermal printer. Suppose, I want to print 9 lines on printer page then after 9 lines printing must be stop.

My code is as follows :

declare 
     pvf_file text_io
.file_type;
     vs_prn_port varchar2
(128) :='LPT1';
begin
     lpt1
:= Text_IO.Fopen(vs_prn_port,'a');
     text_io
.put_line('This is a first line.' );
     text_io
.fclose(lpt1);
end;

Please guide me if you have any thoughts.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2018
Added on Aug 29 2018
2 comments
323 views