473,721 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About barcode printer printing with PrintDocument object

Hi all!

I have made an application for printing simple barcode labels using
PrintDocument object, and it's working fine.

Barcode printer that I use is attached to the computer, and this
computer has drivers installed for this printer, and this printer is
shared for the network.

Question 1:

How can I hide or disable "Collate" -checkbox of the PrintDialog object,
because labels are roll of labels in the barcode printer, and in this
case "Collate" -checkbox is just amazing users.

Anyway I need to use PrintDialog object for copies amount.

Question 2:

Now there is new need for individual serial numbers, which in this means
when user want to print for example 5 labels then each of those labels
should contain next individual serial number in it's content.

So is it possible to do this using PrintDocument object, or should I
call for example PrintDocument printing using (For i As Integer = 1 To
5) loop to generate every individual label? Any ideas would be appreciated.

--
Thanks in advance!

Mika
Nov 21 '05 #1
3 6313
Mika,
Does your printer read ZCode?

Doug

"Mika M" <mahmik_nospam@ removethis_luuk ku.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi all!

I have made an application for printing simple barcode labels using
PrintDocument object, and it's working fine.

Barcode printer that I use is attached to the computer, and this
computer has drivers installed for this printer, and this printer is
shared for the network.

Question 1:

How can I hide or disable "Collate" -checkbox of the PrintDialog object,
because labels are roll of labels in the barcode printer, and in this
case "Collate" -checkbox is just amazing users.

Anyway I need to use PrintDialog object for copies amount.

Question 2:

Now there is new need for individual serial numbers, which in this means
when user want to print for example 5 labels then each of those labels
should contain next individual serial number in it's content.

So is it possible to do this using PrintDocument object, or should I
call for example PrintDocument printing using (For i As Integer = 1 To
5) loop to generate every individual label? Any ideas would be appreciated.
--
Thanks in advance!

Mika

Nov 21 '05 #2
Doug Bell wrote:
Mika,
Does your printer read ZCode?

Doug
What is ZCode ??? A kind of barcode I assume. My application does not
read any barcodes, it just prints barcode labels. I'm using Code39- and
normal human readable fonts with PrintDocument object.

In the beginning I made my application at office for Intermec 3440
barcode printer, and set it up for Zebra TLP3844-Z. I found Windows
drivers for both of those printers, and needed only change top- and
left- margins althought they are not same kind of printers at all.

"Mika M" <mahmik_nospam@ removethis_luuk ku.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi all!

I have made an application for printing simple barcode labels using
PrintDocume nt object, and it's working fine.

Barcode printer that I use is attached to the computer, and this
computer has drivers installed for this printer, and this printer is
shared for the network.

Question 1:

How can I hide or disable "Collate" -checkbox of the PrintDialog object,
because labels are roll of labels in the barcode printer, and in this
case "Collate" -checkbox is just amazing users.

Anyway I need to use PrintDialog object for copies amount.

Question 2:

Now there is new need for individual serial numbers, which in this means
when user want to print for example 5 labels then each of those labels
should contain next individual serial number in it's content.

So is it possible to do this using PrintDocument object, or should I
call for example PrintDocument printing using (For i As Integer = 1 To
5) loop to generate every individual label? Any ideas would be


appreciated.
--
Thanks in advance!

Mika


Nov 21 '05 #3
Mika,

The Zebra printer will read ZCode.

Z stands for Zebra.

This printer dialog box issue is more than likely due to you using the wrong
driver. Intermec should also be able to provide you with the correct
drivers.

Intermec have a lot of sales people that don't have too much depth but they
should have someone that can help.

ZCode supports barcodes and other features like incrementing.

They used to sell an application called bartender that allows label design
and printing. It comes in various level but we found the basic level was
what we needed to construct the original label formats. by printing it to a
file it gave us the ZCode that we could then edit. Intermec said this could
not be done and we would need the enterprise version.

For example, to create a barcode for "1234" in ZCode ZPL II code is:

^F020,10^B3^FD1 234^FS

It is pretty easy to follow.
20 dots right, 10 dots down, Code 39, data =1234

You can download the ZPL II programming guide.

Try printing your label to a file, openning it in a text editor and then
trying to work out what it is doing and change what you need to.

^SN is the code to tell the printer to increment a data field starting at X
incrementing by Y

I think we had some issues with drivers originally but the main issue was
the lack of technical ability in Intermec. We still have issues with the
Hand Helds they provide (different versions of the OS etc)


"Mika M" <mahmik_nospam@ removethis_luuk ku.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Doug Bell wrote:
Mika,
Does your printer read ZCode?

Doug


What is ZCode ??? A kind of barcode I assume. My application does not
read any barcodes, it just prints barcode labels. I'm using Code39- and
normal human readable fonts with PrintDocument object.

In the beginning I made my application at office for Intermec 3440
barcode printer, and set it up for Zebra TLP3844-Z. I found Windows
drivers for both of those printers, and needed only change top- and
left- margins althought they are not same kind of printers at all.

"Mika M" <mahmik_nospam@ removethis_luuk ku.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi all!

I have made an application for printing simple barcode labels using
PrintDocume nt object, and it's working fine.

Barcode printer that I use is attached to the computer, and this
computer has drivers installed for this printer, and this printer is
shared for the network.

Question 1:

How can I hide or disable "Collate" -checkbox of the PrintDialog object,
because labels are roll of labels in the barcode printer, and in this
case "Collate" -checkbox is just amazing users.

Anyway I need to use PrintDialog object for copies amount.

Question 2:

Now there is new need for individual serial numbers, which in this means
when user want to print for example 5 labels then each of those labels
should contain next individual serial number in it's content.

So is it possible to do this using PrintDocument object, or should I
call for example PrintDocument printing using (For i As Integer = 1 To
5) loop to generate every individual label? Any ideas would be


appreciated.
--
Thanks in advance!

Mika


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2027
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar actions or set variables. We are interested in doing this inline (no pop-up dialog box). Specifically, where how would I replace the following properties/methods of the old Printer objects. Printer.NewPage Printer.TextHeight Printer.TextWidth
1
1772
by: Alejandra Parra | last post by:
In my code, I print a dataSet ' get grid's PrintDocument object Dim pd As System.Drawing.Printing.PrintDocument pd = flexgrid.PrintParameters.PrintDocument() ' set up the page (landscape, 1.5" left margin) With pd.DefaultPageSettings ..Landscape = False ..Margins.Left = 50 Dim a As New Printing.PaperSize("Carta", 850, 1100)
0
1808
by: Tessa | last post by:
We're using PrintDocument.Print method in a web application to print (ie not on the client) (on Windows 2003) Get InvalidPrinterException: System.Drawing.Printing.InvalidPrinterException: Tried to access printer '\\SAM\BrotherH' with invalid settings. at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal() at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings) at...
0
3254
by: Tessa | last post by:
Is there any security reason why you cannot print to a network printer from ASP.NET under IIS6 on Windows 2003 server? I'm using ASP.NET code to print to a server print queue using PrintDocument.Print() (.NET framework v 1.1) I can print to a local printer plugged into LPT1 on the web server, but not to a network printer. The same printing code to a network printer works in a .NET web app when
4
3166
by: Rob T | last post by:
I have a small VB program that has a printing module...very simple....and works great. However, If I try to print to a generic printer, I get the following error: "The data area passed to a system call is too small". I found the following article, that I assume is similar to my problem, which is of little help: http://support.microsoft.com/default.aspx?scid=kb;en-us;822779 Any suggestions?
3
4014
by: Alejandra Parra | last post by:
In my code, I print a dataSet ' get grid's PrintDocument object Dim pd As System.Drawing.Printing.PrintDocument pd = flexgrid.PrintParameters.PrintDocument() ' set up the page (landscape, 1.5" left margin) With pd.DefaultPageSettings ..Landscape = False ..Margins.Left = 50 Dim a As New Printing.PaperSize("Carta", 850, 1100)
7
20717
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change printer's physical margins using VB coding? Cheers -- Osmotion Blue
2
3901
by: Kool-Aide | last post by:
Alright, here goes...When I put a menu strip on the windows form I can double click the exit button to go to the source page and it takes me to the on click exit blah blah blah and you would put Application.Exit(); Alright well what would I put for the print preview and the print and Save and saveas and open and new? I can't find anything for these. I am new at this and I am sure I am not going in the correct order to learn this stuff but I...
1
5414
by: amcgary | last post by:
Hello, I am trying to print a System.Drawing.Printing.PrintDocument to a dot matrix printer using C# .NET. I have created an instance of the PrintDocument and create a event handler for the PrintPage property of the PrintDocument. PrintDocument document = new PrintDocument(); document.PrintPage += new PrintPageEventHandler(pd_PrintInvoicePage); document.Print(); However, when I try to print to the dot matrix printer the printer...
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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
9215
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
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5981
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
4484
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...
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
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.