 |
|
|
 |
|
 |
Hi,
I would like to know if it is possible to print Asian Characters using EPL2. I am doing a copy in Dos to LPT1 port, however the printer (LP 2844) is not printing the UTF-8 chinese characters but all the rest is printed.
Is it possible to use this framework to push the UTF-8 characters to the LPT1 port?
-ben
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
Can you tell me, if xebra printer could print a char "=" as separator in TRACK I, if it is possible, can you say me How I do it?.
Saludos desde la mitad del mundo
VICENTE ORTIZ ENLACE INFORAMTICO QUITO - ECUADOR
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello everyone! as you can see from subject, the antivirus installed on the company's pc is blocking the process that creates the file stream. Can anyone tell me what process should be specified as an exception in the antivirus rules, so that it wouldn't be blocked.
To be more specific, i'm attaching the code from
_SafeFileHandle = CreateFile(printerPath, GENERIC_WRITE, 0, SA, OPEN_EXISTING, 0, 0)
'Create file stream Try _outFile = New FileStream(_SafeFileHandle, FileAccess.Write) _fileWriter = New StreamWriter(_outFile) Catch ex As Exception
The _safefilehandle=CreateFile returns "Nothing", and the try..catch block returns exception:
Invalid handle. Parameter name: handle
------------------------- from antivirus event log:
Access to object C:\WINNT\System32\spool\PRINTERS\00004.SPL was blocked by rule Anti-virus Standard Protection:Prevent remote creation/modification of executable and configuration files. ------------------------- Thanks, Mihai.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi
Can anyone please help. When I have got the Printer attacted to the clients machine and I try to print I get the error invalid handle message. I am assuming its a permission issue can anyone help?
Thanks
Kind Regards,
Salma
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi All,
I just wanted to post the solution to the problem in the web congig file I had to set the identity impersonate=True with a domain username and password. The syntax is as follows.
Hope this helps someone
Salma
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have configured my QL 420 Printer to print the EPL language.
When i tried ur test application to print some simple barcode, it is not printing. But it prints the Printer.pcx image very well.
The Label whatever i give is not being converted as barcode. What could be the problem.
Please help me to solve this issue.
Sriram
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
 |
You have to make sure that you have the font for the BarCode text in your fonts folder in the windows folder.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
Hoping you help, when I run your code, thanks by the way, I am getting an unhandled handle, vs2005 says that the line = New FileStream(hPortP, FileAccess.Write) is deprecated and a safehandle should be used could you please explain?
Thanks
|
| Sign In·View Thread·PermaLink | 3.00/5 (6 votes) |
|
|
|
 |
|
 |
Reference: Imports Microsoft.Win32.SafeHandles
Declare: Dim handle As SafeFileHandle
In your sub: 'Get unsafe pointer 'hPortP = New IntPtr(_hPort) 'convert Integer to IntPtr handle = New SafeFileHandle(New IntPtr(_hPort), True) 'Convert to safefilehandle
'Create file stream _outFile = New FileStream(handle, access)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, i this code is awesom it helped me a lot. Thx for publixhing it But, i still can't get round an issue here, u see, i need to write multiple lines (up to 4) on the label and then a barcode with human readeable data. What happens is that if i send a string like "hello\r\nJuanhello\r\nJuanhello\r\nJuan" to 1 command it writes it all in the same line and the letters overlap. So i send 1 command per word, that helped, but what actually happens it that it now writes the last word only (Juan) I'm thinking there might be a problem with the dimensions the printer gets to write the lines, like, is printing it all but not on the label...
i really ran outta ideas of how to fix this, and i cannot se nowhere in the code where the label's dimensions concerning the text only are, since the bar code prints perfectly
I'll be waiting for anything u can throw at me. thx btw: i'm writing this in c# .net!
Thx!!
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
This would be a reply to myself... Accostumed to work with wordprocessors and all, the thing is that i forgot that i was passing the same coordinates to every single line i wrote, therefore all lines were going to overlap!
my bad!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Great example and greatly appreciate the work. Can someone help with adding in variable and how to use what template? Basically I am working in VB.NET 2005 in creating a small application that pulls data from a SQL database and than print it to the label.
I was able to take the Zebra design label software to create a template call templabel.lbl with some variable. How would I specify so that ID textfield is tied to variable ID and so on?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Did you get an answer? If not, let me know I'll send you some code. YOU MUST read the EPL2 manual to lookup the rules: There is a section in there with an example.
Here is a sample EPL2 template:
There are bascally 4 sections. 1)initialization commands 2)Variables section 3)Others(anything else, captions , line etc...) 4) the variables data values section(this is the one that will get you!) The number of variables must be equal to the number of of values lines or else... You can use the same
REMOVE THIS LINE[ SECTION 1]: O D8 S2 ZT JF I8,0 OD REMOVE THIS LINE[ SECTION 2]: FK"FORMNAME" FS"FORMNAME" V00,40,N,"" V01,40,N,"" V02,25,N,"" Q812,24 q812 REMOVE THIS LINE[ SECTION 3]: A37,12,0,2,2,2,N,"CAT's NAME:" A405,43,0,3,1,1,N,"CAT'S WEIGHT:" A75,139,0,3,1,1,N,V00 A227,938,0,3,1,1,N,V01 A392,558,0,4,1,1,N,V02 FE FR"GEReturn" REMOVE THIS LINE[ SECTION 4]: ? V000DATAVALUE V001DATAVALUE V002DATAVALUE
REMOVE THIS LINE[ P1 = print 1 page P2 means print pages and so on.]: P1 FK"FORMNAME" REMOVE THIS LINE[ in FK"FORMNAME" the name quotes MUST be 8 chars or less]
I hope this helps
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
i was getting the same exception error, which was due to the CreateFile function returning a -1. This seemed to be caused by a bad lpFileName parameter (the first argument for the CreateFile function) So here are some measures to ensure the lpFileName is valid.
First, make sure that your printer is SHARED, even if it's on the local machine!!! This alone may be enough to solve the issue.
The following link http://www.answers.com/topic/createfile demonstrates how to prepend the \\?\UNC\ to the first parameter of the CreateFile function, which may resolve the issue for some of you as well. Ideally you want to end up with something like \\?\UNC\computer\printer
joshb
joshb@sane.ca -- syntactic is our elegance, incisive our disease --
|
| Sign In·View Thread·PermaLink | 1.33/5 (2 votes) |
|
|
|
 |
|
 |
Hi,
This code looks great, I am looking for something similar but for a Zebra P120i ID Card printer.. I've tried this code, but it sends a job to the queue, processes it, but does nothing...
Cheers
Nick
|
| Sign In·View Thread·PermaLink | 1.20/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
Hi! is there a way to retrieve values return from calling ~HS and ~HI. I don't know if i'm asking the correct question here.
(",)
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
 |
Thanks for the code, seems like it works great (mostly). I have tried this on two pc's and it worked flawlessly. I just tried it on another one, and I am getting the "Invalid handle" error.
I am using your dll files, and have tried a variety of handles from LPT1, "ipaddress/sharename", all which worked on the other computers but not this one. Any idea what might cause this?
|
| Sign In·View Thread·PermaLink | 1.75/5 (4 votes) |
|
|
|
 |
|
 |
Is it possible to use either the DLL or class as part of a web application to print labels on the server side? I have included it in a windows form without problems. In a web form, I get the following error messages:
with DLL: "Invalid handle. Parameter name: handle" at line: "print.StartWrite("\\M-shippingxp\\putaway")"
with VB class: "Invalid handle. Parameter name: handle " at line: "_outFile = New FileStream(hPortP, FileAccess.Write)"
Any help would be appreciated!
|
| Sign In·View Thread·PermaLink | 1.33/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
Hey! i have a similar problem. If i'm printing from a local application in works fine, even when printing to a shared printer on a different PC. When i try to print from my asp web site, it throws the "invalid parameter: handle" error.
How do i resolve this issue?
Mihai
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
If your web site runs on Windows Server 2008 most likely the error comes from insufficient rights NETWORK SERVICE has on accessing external resources. In this case the only solution I found was to create a normal user, and set pe application pool run on it. If this is not the case try to get the last IO error using:
System.ComponentModel.Win32Exception ex = new System.ComponentModel.Win32Exception(); errMsg = ex.Message;
and investigate from there...
Mircea
|
| Sign In·View Thread·PermaLink | 1.67/5 (3 votes) |
|
|
|
 |
|
|
 |