Home » Developer & Programmer » Forms » Printing to Thermal Printer (Using Forms 6i) (Forms, 6i, XP)
Printing to Thermal Printer (Using Forms 6i) [message #671432] Wed, 29 August 2018 13:17 Go to next message
irfanahmad697@yahoo.com
Messages: 4
Registered: July 2013
Location: lhr
Junior Member
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.
Re: Printing to Thermal Printer (Using Forms 6i) [message #671476 is a reply to message #671432] Thu, 30 August 2018 23:29 Go to previous messageGo to next message
irfanahmad697@yahoo.com
Messages: 4
Registered: July 2013
Location: lhr
Junior Member
Dear friends, My project stuck due to this requirement, If you have any idea please share here.
Re: Printing to Thermal Printer (Using Forms 6i) [message #671501 is a reply to message #671476] Sun, 02 September 2018 10:32 Go to previous message
shahzad-ul-hasan
Messages: 615
Registered: August 2002
Senior Member
Set its page setting to 220mmx200mm instead of letter or A4. during design phase.
Previous Topic: How to Print Directly without showing Report in Oracle Forms 10G?
Next Topic: FRM-40654: Record has been updated by another user. Re-query to see change
Goto Forum:
  


Current Time: Thu Mar 28 13:32:58 CDT 2024