To print to a barecode printer, I need to send to it a simple text from Navision.
I tried the next :
1/ Suppress the margins, and have only one textbox in one section : the printer can't print
2/ create a text file and send it to the printer thrue SHELL command : my printer driver dosen't run in DOS mode..
Anyone have an idea ?
Thanks to all...
My candle burns by both ends, it will not last the night,
But oh my foes and oh my friends, it gives a lovely light
0
Comments
You can also use the generic printer-driver and print the text.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
When i print the text from notepad => OK
From wordpad => the printer can't print
from Navision => the printer can't print
From a DOS COmmand => the printer can't print
But oh my foes and oh my friends, it gives a lovely light
This is how I use a Zebra printer.
Do It Yourself is they key. Standard code might work - your code surely works.
Do It Yourself is they key. Standard code might work - your code surely works.
http://www.mibuso.com/dlinfo.asp?FileID=341
:-)
But as Shenpen wrote, it seems that you have another problem... but I do not know which printer you are using...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Because sometimes it causes error to the printer. Printer will not print even when you send commands through the DOS like "ECHO Hello World > LPT1". If you are sending commands to printer then you must test every commands that you pass to it, test the commands if it is executed properly to the printer.
We have a problem printing from Navision through a network printer (Zebra 2844 EPL) ](*,) :-k
Does anyone know how to write a command that will copy a .txt-file to this network-printer ?????
TY
/Skyggeman
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We can not print using the following command: ](*,)
shell('command.com' , '/c' , 'copy c:\filename.txt \\server\printername');
Can you help =D>
/Skyggeman
If not, maybe you should try to send a FF-char (=FormFeed=ASCII 12) to the printer.
You might also try to use the PRINT command.
You might try to connect the printer to LPT1 and use copy [file] Lpt1:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I am storing the return value in a variable to make it run modally (i.e. to make the Navision code wait until finished). Maybe this is your problem. Make sure all SHELL calls are modal this way.
Besides, isn't there a proper software for Zebra which can import exported data?
1/ we build the text file from navision
2/ we write a batch file
3/ we execute this batch file within Navision
the text in the batch file is something like :
echo PRINT \\disk\directory$\filetext.txt
I know, there is obviously an easier method... this is only a way to do..
But oh my foes and oh my friends, it gives a lovely light
Besides, exactly the same way of thinking than mine
And we delete all file after the job.
But oh my foes and oh my friends, it gives a lovely light
I Place a button control in the Item card form. I want to send the Item
number directly to the BarCode printer and take the print out.Its a Network
Printer and port is LPT1.Priner is ZDesigner TLP 2844.
What we do for this.Pls help me....
regards,
Jayasankar