We help IT Professionals succeed at work.
Get Started

DEF files in VB.Net

Last Modified: 2012-05-12
Hi. I am wondering what is the best way to create DEF file or something like that to use it for printer definitions.

I am using RawPrinterHelper with escape codes, Cutter, Double Font, Codepage...etc

For the moment i have all these definitions hardcoded for three different POS printers but I want another way of adding new definitions that won't be dependant on the exe file.

For example, Create new definition file, Copy in certain directory and exe will find all files in that directory, user will select the one that match her/his printer and then exe reads that definition file so that new printer can use all the options that needs.

I need some pointers, and I want to avoid INI or XML files. If I can compile that, but use it in my exe that would be great.  I don't want to be able to read that file in Notepad.

Thank you for your hekp.
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE