Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my prn file.
SIZE 100 mm, 25 mm
GAP 3 mm, 0 mm
SPEED 4
DENSITY 10
SET RIBBON ON
DIRECTION 0,0
REFERENCE 0,0
OFFSET 0 mm
SET PEEL OFF
SET CUTTER OFF
SET PARTIAL_CUTTER OFF
SET TEAR ON
CLS
CODEPAGE 1252
TEXT 778,179,"TAHOMAB.TTF",180,10,10,"CODE"
TEXT 778,146,"TAHOMAB.TTF",180,10,10,"DESC."
TEXT 778,110,"TAHOMAB.TTF",180,10,10,"MRP"
BARCODE 740,73,"128M",41,0,180,3,6,"!1051234567890"
TEXT 650,25,"TAHOMAB.TTF",180,5,5,"1234567890"
TEXT 676,179,"TAHOMAB.TTF",180,10,10,":"
TEXT 675,110,"TAHOMAB.TTF",180,10,10,":"
TEXT 676,146,"TAHOMAB.TTF",180,10,10,":"
TEXT 654,179,"TAHOMAB.TTF",180,10,10,"D1000265"
TEXT 654,146,"TAHOMAB.TTF",180,10,10,"SHIRT"
TEXT 653,110,"TAHOMAB.TTF",180,10,10,"1299/-"
TEXT 538,108,"0",180,6,6,"(Incl. of all taxes)"

TEXT 378,179,"TAHOMAB.TTF",180,10,10,"CODE"
TEXT 378,146,"TAHOMAB.TTF",180,10,10,"DESC."
TEXT 378,110,"TAHOMAB.TTF",180,10,10,"MRP"
BARCODE 340,73,"128M",41,0,180,3,6,"!1051234567890"
TEXT 250,25,"TAHOMAB.TTF",180,5,5,"1234567890"
TEXT 276,179,"TAHOMAB.TTF",180,10,10,":"
TEXT 275,110,"TAHOMAB.TTF",180,10,10,":"
TEXT 276,146,"TAHOMAB.TTF",180,10,10,":"
TEXT 254,179,"TAHOMAB.TTF",180,10,10,"D1000265"
TEXT 254,146,"TAHOMAB.TTF",180,10,10,"SHIRT"
TEXT 253,110,"TAHOMAB.TTF",180,10,10,"1299/-"
TEXT 138,108,"0",180,6,6,"(Incl. of all taxes)"
PRINT 1,1


What I have tried:

After running command I got I file copied..file also in the printer ques..but printing not happen
Posted
Updated 27-Jul-20 19:24pm

Quote:
How to print barcode in barcode sticker using prn file in VB.NET

What you want to do is a "raw print". This means to send the as is to the printer, without further windows formatting.
How The Raw Data is Printed[^]
Print Raw text from Vb.net using dot matrix printer - Stack Overflow[^]
Printing Directly to the Printer in VB.NET[^]
And previous similar question: printing text directly to printer from vb.net[^]
 
Share this answer
 
v2
Comments
Member 14514900 23-Jul-20 6:44am    
sir i want to print the barcode using this prn file.
Patrice T 23-Jul-20 8:05am    
Yes, the prn file is orders in the printer language, and you need to send it with no change to the printer.
That is raw print.
use type command to print txt file.

Shell("Type " & fstrFile & " > " & fstrprintername, vbMaximizedFocus)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900