Avatar of Manfred35
Manfred35
Flag for undefined asked on

PRINT OR SEND EPL COMMAND FROM VBA ACCESS2010

Hello to all developpers from an ACCESS developper. I want to send EPL command from VBA ACCESS 2010 - I found many information about other platforms that i cant make work on my VBA solution. The less i would appeciate would to be able to send a EPL command file to my usb Zebra printer. Send command directly to the printer would be better. Can someone help me. I cant think that such a simple thing seems to be so hard.
ZEBRA 2844 - USB - WINDOWS 7 64 - EPL COMMAND FILE is OK manually
Thank you .
Microsoft AccessMicrosoft DOSPrinters and Scanners

Avatar of undefined
Last Comment
Jim Dettman (EE MVE)

8/22/2022 - Mon
Jim Dettman (EE MVE)

Out on the net you'll find a bunch of free file to printer utilties out there.  I use PrintFile, written by Peter Lerup.

WIthin Access, I generate a file to disk using the correct print driver with it's output set to file.  I then take that file output and pass it to the printer using the PrintFile utility.

Not quite sure what's involved in printing directly to a port.  Years ago, I know it was as simple as a COPY using the /b switch for binary mode.  Not sure if that would work with a USB port or not.

Jim.
ASKER CERTIFIED SOLUTION
Jim Dettman (EE MVE)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Manfred35

ASKER
Thank you very mutch JDettman you give me one more way for searching. After dowloading printfile I am trying this line in the immediate windows but doesnt do anything. I continue testing and tell the result.
The command:
Shell "C:\0PciSvr\PrFile32.exe /q C:\0PciSvr\TLP2844a.txt"
Jim Dettman (EE MVE)

I would test with it manually first.  It supports drag and drop.  So just with explorer open, drag your file on top of it and see if it does what you want.

If it does, then I would leave it running all the time and have it in "spool" mode, which means it's always looking at a directory and when it sees a file appear, it will print it.  Then you just need to move a file there.

If you do not want to do that, I am sure there is a way to get it to work with Shell().

Jim.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Manfred35

ASKER
Sorry i just forgot to reset the printer, it seems to work now. I continu some test and tell you.
Thank you.
Manfred35

ASKER
Finally it was the best solution for my actual need. Thank you very much. Sorry for the little delay for my response. BY
Jim Dettman (EE MVE)

Not a problem.  Just glad to hear your up and running!

Jim.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.