| 
		
			| Printing to Thermal Printer (Using Forms 6i) [message #671432] | Wed, 29 August 2018 13:17  |  
			| 
				
				|  | 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.
 |  
	|  |  | 
	|  | 
	|  |