473,394 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Writing EPL/ZPL file directly to the Printer ... Any Clues

alpnz
113 100+
Hi,
I am involved with a labelling application, which at the moment prints labels on thermal printers, via the windows driver. This can be frustratingly slow. Most thermal printers have an ASCII command set which enables the simple copying of files directly to the printer port. The result is instant printing of labels. A much more satisfactory result in a busy environment. The command set allows the setting of variables on template files, and indeed allows the uploading and storage of template files on the printer. Once installed those templates can be printed with a few bytes of data passed to the printer, including the variables. Has anyone "Been there done this", as I would like some help, re the most efficient way of achieving this.
Basically I wish to create a text file, using the printers command language and using code within access, set the variables, I then wish to issue a DOS copy to COM2 command, which I do not seem to be able to find much about in VB help index.
Nov 28 '06 #1
2 11737
NeoPa
32,556 Expert Mod 16PB
Does the Shell command hold out any hope?
Using it with Copy does involve a complicated call using CMD.Exe or Command.Com.
Shell Function


Runs an executable program and returns a Variant (Double) representing the program's task ID if successful, otherwise it returns zero.

Syntax

Shell(pathname[,windowstyle])

The Shell function syntax has these named arguments:

Part Description
pathname Required; Variant (String). Name of the program to execute and any required arguments or command-line switches; may include directory or folder and drive. On the Macintosh, you can use the MacID function to specify an application's signature instead of its name. The following example uses the signature for Microsoft Word:
Shell MacID("MSWD")
windowstyle Optional. Variant (Integer) corresponding to the style of the window in which the program is to be run. If windowstyle is omitted, the program is started minimized with focus. On the Macintosh (System 7.0 or later), windowstyle only determines whether or not the application gets the focus when it is run.
Nov 28 '06 #2
NeoPa
32,556 Expert Mod 16PB
For help on using the CMD.exe command type CMD /? from a Command prompt. You're looking to use the /C switch with COPY.
Nov 28 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: MouseHart | last post by:
I have written a small VB program which lists my music files on my computer, but I can't get it to print exactly the way I want it to. The data is viewed on screen in an MSFlexGrid named...
1
by: Ellie | last post by:
I'm stumped. We're building a Struts app running on Websphere on Win2k, with a SQL Server backend. They want pdf files stored in the database; they're in there as Image datatypes. My mission is...
0
by: Harry Simpson | last post by:
I'm trying to grab printer status for a printer with WMI I got a mo("PrinterState").tostring of "128" for a paused HP printer. What is "128" equate to? It did give a mo("PrinterStatus").tostring...
0
by: notregister | last post by:
Hi, as u can see frm my subject heading, let say i just plug in an usb printer into my pc...without installing any drivers, 1)how do i send a printfile(test.prn) directly to the printer? 2)How...
1
by: notregister | last post by:
ref : article ID 298141 Hi i have implement this part into my program, how do i recieve information whether the printer has printed out correctly so that i can carry on to my next phase? is...
1
by: David Templet | last post by:
I have a C# application that generates its reports in HTML. After it creates the report, it opens it in IE so it can be viewed or printed. I would like to add the ability to print the report...
1
by: pigge79 | last post by:
Hi there, We are thinking of developing a product that needs to be able to parse data printed via some printer driver. The data will then be used to fill a PDF form. We believe the printer...
2
by: MAx | last post by:
Hi guys, I am a c++ newbee and i am trying to write a file to a default printer. Please have a look at the code below and let me know if it'll work. I know that similar code in C will work. I...
7
by: RB0135 | last post by:
Hi All, I have some Windows BMP, 1BPP, monochrome files that I need to get the raw data from to load a graphics buffer on a Roll Printer (which I know can be done). Lets forget about the Roll...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.