473,799 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

alpnz
113 New Member
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 11779
NeoPa
32,579 Recognized Expert Moderator MVP
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,579 Recognized Expert Moderator MVP
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
5742
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 "TextGrid" and the following code will send it to a printer, but I was hoping to be able to send it to either a text file or directly to a Word for Windows file. Private Sub Command34_Click() Dim X%
1
4071
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 to grab the pdf(s) from the resultset and send it/them directly to the user's printer. I've found some nifty command-line solutions that allow printing of a FILE, but I'm looking for a solution that basically allows me to print a...
0
309
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 of 1 = "paused" which was correct but it took a while to display the correct state. When I un-paused the printer, I got a mo("PrinterState").tostring of "0". What is "0" equate to? It got a mo("PrinterStatus").tostring of 0. Is "0" mean ok,...
0
1003
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 do i know the printername? if i have similar printer connected to my pc... 3) how do i send the file to only one of the printer?
1
2602
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 it all right if there is no indication on my windows when i start this printing process, because it will be another week before i get my actual printer. currently i have been testing it without a printer and when i run the program, it would just...
1
5313
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 directly from the application, but I haven't found an easy way to do this. I am probably making it overly complicated, but this is what I am doing right now: 1. Instance an "AxWebBrowser" control 2. Navigate the browser control to the report HTML...
1
1640
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 solution will be best as there are multiple applications that we need to retrieve data from. This is a brand new area for us, so I'm basically wondering if there is any out-of-the-box printer drivers that create files with a structure that we can...
2
4414
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 was wondering how will the associated driver react..... #include <iostream> #include <fstream>
7
8219
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 Printer in this equation as I am not sure I am getting the correct "raw" image from the file. However, when I print what I think is the raw data, I get the image size, but the information within the image looks nothing like it should be, and...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10268
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10031
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.