473,846 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print labels in c#????

I would like to know if exists a C# class or any methods
to print labels in different sizes like the labels in
Microsoft Word???


Nov 16 '05 #1
5 8419

There isn't anything in the framework itself that will handle this for
you. Basically, you will have to create a PrintDocument instance, and
handle all of the layout yourself.

There might be a third party component to do this as well.

Hope this helps.
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"thomaz" <su***@nce.ufrj .br> wrote in message
news:07******** *************** *****@phx.gbl.. .
I would like to know if exists a C# class or any methods
to print labels in different sizes like the labels in
Microsoft Word???


Nov 16 '05 #2
You could use the Crystal .NET reporting functionality. Crystal has
pre-defined report templates for most label types.

Nov 16 '05 #3
Implement your labels in MS Word and then call via Office Automation.
Or perhaps design the label as a windows form and print an image of the form
to the printer.

"thomaz" <su***@nce.ufrj .br> wrote in message
news:07******** *************** *****@phx.gbl.. .
I would like to know if exists a C# class or any methods
to print labels in different sizes like the labels in
Microsoft Word???


Nov 16 '05 #4
Nicholas... Or you can use Visual Studio as a code generator.


There isn't anything in the framework itself that will handle this for

you. Basically, you will have to create a PrintDocument instance, and
handle all of the layout yourself.<
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
If he's going to create a PrintDocument and handle the printing through
..NET code, he's probably better off creating a Crystal ReportDocument
and feeding it a DataSet object, then using the freebie Crystal.NET
designer to lay out the labels, since even the freebie designer has (or
you can get from the Crystal site) pre-defined label formats.

That's what our report designer guy does here. He's using nothing more
than the Crystal designer that comes with .NET and he tells me that
he's using Crystal's pre-defined label templates, and that they work

thomaz... if you decide to go this route, I can help you with the .NET
code, and maybe even find out where our report designer got the label
templates from.

Nov 16 '05 #6

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

Similar topics

by: Luis Serrano | last post by:
Hi all, I'm trying to generate labels to print in several different formats, all of them with their own height,width and page margins. We've got this done in MS Access 2000, using a designed report that fits with each label type, and reads a table dinamically generated. But the problem is page margins. Does Access store page margins and information of that kind within de report? Is there any kind of association between printer...
by: Fred | last post by:
Hi. Sorry, but I don't know where else to ask. I wrote a access shipping database and we currently use the web interface for DHL to print shipping labels. That means we have to manualy transpose shipto info to the DHL web interface to print the 8 x 11 labels. We ship between 0 and 20 packages a day. If I get DHL pinfeed DHL shipping labels and a matrix printer, can I just print the labels directly from my database instead of dealing...
by: John Smith | last post by:
Perhaps the wrong place to ask but...Friend has names and addresses in Microsoft Works Database...how can she print off address labels from this database? Thanks, John
by: Matthew Belk | last post by:
I am trying to print some 2x6 labels on a SATO CL408e thermal label printer. The 2x6 labels are arranged in "landscape" mode with 2 labels per "sheet." When I attempt to print "x" copies of a 1 page label document, I get "x" formfeeds and "x" wasted labels. Is there any way to manipulate the .NET printing engine to do a over-under 2-up landscape printing? I'm thinking no, but maybe there's a way. The printer has the ability to sense the...
by: ooooscar | last post by:
I'd like to make an application to print labels. I have to print an image and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#. My first thought is to make an acrobat "form" with the image and text, but I have to send a date in the label so I need to open the pdf and send the date into a field (variable), then I have to print n times the same label. Can anyone help me ? Thank's.
by: solar | last post by:
Is there a way that a user can set the position for a single label to print within an Access Label report? I guess I would like something like what is available in Word where the user can select the column and row position for the single label to be printed. I would like to be able to provide a form where the user selects the column and row position for the single label or default to the top left label.For example, the size of the labels...
by: peng | last post by:
Hi, I am development a project using C#.Net. Inside application, it needs to print labels on different Zebra label printers on the network. I used a shell script, but it only worked on the server machine locally. Anybody knows how to do it? Thanks, Peng
by: mikeyatsony | last post by:
Hi all... Is there a web for my ASP Web application tied to a SQL Server Express DB to print labels? I need a way to have reports printed from the user's browser. They wish to print labels for a mailing. Any thoughts would be great.
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available with the printer that i am printing to(Zebra TLP2844). When i open Word and look at the fonts available for the default printer, it does not show the fonts i want. If i cahnge the printer to the printer that
by: scotter86 | last post by:
Hi everyone, I have kind of an odd question. What I'm trying to do is have a program run when I want to print something. A little background on my situation is, I'm sharing a little thermal label printer. I want to be able to print labels from other computers. But when I do this, the labels just fly out of the printer and get tangled in a mess. Ideally what I want to happen is when I press print, the document is sent to the computer...
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...
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,...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.