dcsimg
Results 1 to 3 of 3

Thread: How to print a label directly to a printer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    21

    How to print a label directly to a printer

    Hi everyone

    I need some advice on a label that i need to create.

    I need to create the label in a given format and the text has to go in given places and I do not want to use crystal
    report if i can help it)

    how can I create with in the program the label and then print it directly to the printer (so the user does not have to see a preview of the labels (but they can select what printer to print the labels to)

    I have made a few very basic labels in crystal report but this label has to be perfect

    I would need to place labels as well as a image on the label

    the size of the label is
    width : 6 cm
    height : 3.5cm

    if anyone can help me with example code (just so i can get my head around how it works) or point me to a website that shows a example or even a YouTube video I would be most grateful.

    Andy

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,599

    Re: How to print a label directly to a printer

    Printing in Windows Forms is done using GDI+ through the PrintDocument class. I suggest that you start here to learn how it works. Merrion is our local printing guru so you may find other useful threads of his in the VB.NET CodeBank forum. To get to them, open that forum page, sort by Thread Starter and then navigate to about page 23. Once you know the principles, you can make an attempt to put them into practice and, if you encounter specific issues along the way, ask specific questions about them.

  3. #3
    Frenzied Member
    Join Date
    Dec 2014
    Location
    VB6 dinosaur land
    Posts
    1,153

    Re: How to print a label directly to a printer

    Are you meaning to print to a normal printer (e.g., HP Laserjet) or an actual label printer (e.g., Zebra, Intermec, Sato, etc)?

    If the latter than you normally just create the format in some label making software (e.g., Nicelabel) and then your .Net program downloads that format file to the printer and then will send the separate commands to select the desired format and fill in the appropriate fields.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width