您(Did)知道可以使用Microsoft Word创建自己的条形码吗?创建自己的条形码实际上很酷而且很容易做到。拥有条形码后,您可以将其粘贴到您想要的任何东西上,然后使用物理条形码扫描仪(barcode scanner)或通过下载应用程序使用智能手机扫描它们。
有几种不同类型的条形码,我将尝试向您展示如何免费创建尽可能多的条形码。为了创建某些类型的条形码,您需要专门的商业软件,所以我不会提及这些。最常见的一维条码有Code 39、Code 128、UPC-A、UPC-E、EAN-8、EAN-13等。二维条码包括DataMatrix、PDF 417和 QR 码。
为了创建条形码,您必须在系统上安装条形码字体(barcode font),然后在任何支持Word、WordPad等字体的程序中使用该字体。
下载条码字体
第一步是下载条形码字体(barcode font)并将其安装在您的系统上。您可以在Google中搜索条形码字体(barcode font),也可以从以下这些站点下载所需的字体。我对大多数人的建议是使用Code 39、Code 128或QR 码(QR code)字体,因为它们是最受欢迎和最容易扫描的。
Code 39最适合非常短的文本,只有几个字符。使用Code 39(Code 39)时,您会注意到条形码很快就会变得很长。Code 128 可以处理更多的文本,并且条形码将保持相对较小。使用二维码,您可以存储大量数据,并且根据数据量,正方形的大小会变大。
但是,在Word(Word)中使用条形码有一些注意事项。大多数一维条形码需要条形码中的开始和停止字符才能进行扫描。对于Code 39,您所要做的就是在文本的前后添加(front and back)开始符号(start symbol)(*) 。
例如,如果您下载Code 39条码,那么您将键入*Hello*以创建一个可扫描的条码,该条码将在扫描时读取单词Hello。如果要在Code 39条码中包含空格,则必须使用等号 (=)。因此,您必须在 Word 中键入*Hello=John*才能在扫描时获取文本Hello John 。
对于Code 128,事情没那么简单。除了开始和停止符号之外,您还需要一些特殊的校验和字符。不幸的是,您不能自己输入这些内容,必须先将文本编码为正确的格式,然后将其粘贴到Word中。我将引导您完成以下步骤。
使用QR code s 和Word,主要问题是每个代码方块(code square)最终只能是一个字母。这是因为它是Word中的一种字体,这意味着每个字母都必须有自己的字符。因此,当使用QR 码(QR code)字体时,像 hello这样的五个字母单词在(letter word)Word中将如下所示:(Word)
一个二维码(QR code)实际上可以存储大量数据,但前提是您使用第三方软件或使用免费的在线条码生成器生成(free online barcode generator)二维码(QR code)。如果您要使用Word,您将不得不使用一个仅存储一个字母、数字或符号的(number or symbol)QR 码(QR code)。
代码 39:
http://www.barcodesinc.com/free-barcode-font/
http://www.idautomation.com/free-barcode-products/code39-font/
代码 128:
http://www.dafont.com/code-128.font
http://www.jtbarton.com/Barcodes/Code128.aspx
http://www.barcodelink.net/barcode-font.php
二维码:
http://www.dafont.com/qr-font-tfb.font
安装条码字体
下载字体后,它通常会包含在ZIP 存档(ZIP archive)中。转到Explorer中的下载文件夹,右键单击存档并选择Extract All。
打开文件夹,您可能会看到几个文件,其中一个以TTF结尾,代表True Type Font。双击(Double-click)字体文件(font file),会弹出一个窗口,显示不同大小的条形码字体(barcode font)。
单击顶部的安装按钮,字体将安装到(Install)C:\Windows\Fonts文件夹中。您必须关闭Word并重新打开它才能看到安装的新字体。
根据您下载的条形码字体(barcode font),您可能只会在字体列表中看到条形码,或者您会在右侧看到条形码的名称和图片。您的条形码字体(barcode font)现已安装并可以使用!
在 Word 中生成条形码
现在让我们进入有趣的部分。让我们首先在Word(Word)中生成Code 39条形码。为此,我下载并安装了IDAutomation Code 39字体,它将您键入的文本添加到条形码的底部。所有其他的都只显示条形码,但我将这个用于教学目的。
首先继续并在条形码中输入您想要的文本。例如,让我们输入*John=Doe*,如下所示。
继续,将字体大小增加到更大的值,例如 20 或 28。现在选择文本,然后从列表中选择Code 39字体。文本应自动转换为条码,您将在底部看到此特定条码的文本。
您会注意到等号已转换为条形码中的空格。您现在有一个可扫描的代码 39(code 39)条码!这很容易。跳至(Skip)扫描条码(Scanning Barcodes)部分,了解如何使用智能手机应用程序(smartphone app)对其进行扫描。
现在让我们尝试创建Code 128条形码。首先(First)从上面的列表中选择一个Code 128字体,下载并安装它。完成此操作后,您必须访问以下网站将文本编码(encode your text)为适当的格式。
在要编码(Data to Encode)的数据框中输入文本,然后单击左上角的Code 128按钮。(Code 128)编码文本(Encoded Text)框将生成适当的文本,然后您可以将其复制并粘贴到Word中。确保(Make)将字体大小增加到 48 或 72。
现在选择文本并将(text and change)其更改为您安装的Code 128 条形码字体。(barcode font)它应该创建一个漂亮的条形码,然后您可以对其进行扫描。我遇到的唯一问题是Code 128条码中的空格。使用在线编码器(online encoder)时,它使用特殊字符作为空格,但是当我将其转换为条形码时,特殊字符仍然存在并且没有转换为空格。无法弄清楚如何解决它,所以如果你弄明白了,请告诉我们!
对于 QR 码或任何其他类型的条形码,也可以执行相同的过程。条形码编码器网站(barcode encoder website)也可用于生成Code 93、UPC-E和其他条形码格式。
扫描条码
如果您有物理条码扫描仪(barcode scanner),您显然可以使用它来扫描您的条码,但如果您将其作为个人家庭项目(home project)进行,您可能没有一个可以放置。在这些情况下,您可以在手机上下载免费的条码扫描应用程序来扫描您的条码。
这些应用程序的真正好处还在于,您可以在计算机上创建条形码并使用应用程序对其进行扫描,然后再将其打印出来。通过这种方式,您可以先检查以确保它们是可扫描的。
我在 iPhone 上最喜欢的应用程序是Beep,这是一个非常简单的条码扫描器(barcode scanner),支持多种不同类型的条码。它快速、免费且运行良好。
当它扫描条形码时,它会告诉您条形码的类型(代码 39、128(Code 39)等),并会在左上角显示文本。至于Android,我自己没用过,但是Google Play Store里有很多应用,大家可以尝试不同的。
希望本指南足以让您开始使用Word中的条形码。如果您遇到麻烦,请随时发表评论,我会尽力提供帮助。享受!
Use Microsoft Word as a Barcode Generator
Did you know that you can use Microsoft Word to create your own barcodes? Сreating your own barcodes is actυally kind оf cool and рretty easy to do. Once you have а barcode, you can stick it onto anything yоu want and then sсan them using a physicаl barcode scanner or with your smartphone by downloading an aрp.
There are several different types of barcodes and I’ll try to show you how to create as many of them as possible for free. In order to create certain types of barcodes, you need specialized commercial software, so I won’t mention those. The most common 1D barcodes are Code 39, Code 128, UPC-A, UPC-E, EAN-8, EAN-13, etc. 2D barcodes include DataMatrix, PDF 417 and QR codes.
In order to create a barcode, you have to install a barcode font onto your system and then use that font in any program that supports fonts like Word, WordPad, etc.
Download Barcode Font
The first step is to download a barcode font and install it on your system. Either you can search Google for barcode fonts or you can download the one you want from these sites below. My suggestion for most people is to use Code 39, Code 128 or QR code fonts as they are the most popular and the easiest to scan.
Code 39 is best for very short text, just a few characters. You’ll notice the barcode becomes very long very quickly when using Code 39. Code 128 can handle a lot more text and the barcode will remain relatively small. With QR codes, you can store a lot of data and the size of the square will get bigger depending on the amount of data.
However, there are a few caveats about using barcodes in Word. Most 1D barcodes require a start and stop character in the barcode for it to be scannable. For Code 39, all you have to do is add the start symbol (*) to the front and back of the text.
For example, if you download a Code 39 barcode, then you would type *Hello* to create a scannable barcode that will read the word Hello when scanned. If you want to include a space in a Code 39 barcode, you have to use the equals symbol (=). So, you would have to type *Hello=John* in Word to get the text Hello John when scanned.
For Code 128, it’s not that simple. In addition to start and stop symbols, you also need some special checksum characters. Unfortunately, you can’t type these on your own and will have to first encode the text into the proper format and then paste it into Word. I’ll walk you through the steps below.
With QR codes and Word, the main problem is that each code square will end up being only one letter. This is because it’s a font in Word and that means each letter has to have its own character. So a five letter word like hello will look like this in Word when using a QR code font:
A single QR code can actually store a lot of data, but that is only if you generate the QR code using third-party software or using a free online barcode generator. If you’re going to use Word, you’ll have to live with one QR code storing just one letter, number or symbol.
Code 39:
http://www.barcodesinc.com/free-barcode-font/
http://www.idautomation.com/free-barcode-products/code39-font/
Code 128:
http://www.dafont.com/code-128.font
http://www.jtbarton.com/Barcodes/Code128.aspx
http://www.barcodelink.net/barcode-font.php
QR Code:
http://www.dafont.com/qr-font-tfb.font
Install Barcode Font
Once you have downloaded the font, it will normally be included in a ZIP archive. Go to your downloads folder in Explorer, right-click on the archive and choose Extract All.
Open the folder and you might see several files, one of them ending in TTF, which stands for True Type Font. Double-click on the font file and a window will pop up showing you the barcode font in different sizes.
Click on the Install button at the top and the font will be installed into the C:\Windows\Fonts folder. You will have to close Word and reopen it in order to see the new font installed.
Depending on which barcode font you download, you may see just the barcode in the list of fonts or you will see a name and then a picture of the barcode to the right. Your barcode font is now installed and ready to use!
Generating Barcodes in Word
Now let’s get to the fun part. Let’s start by generating a Code 39 barcode in Word. To do this, I downloaded and installed the IDAutomation Code 39 font, which adds the text that you type to the bottom of the barcode. All of the other ones just show the barcode, but I’m using this one for instructional purposes.
First go ahead and type the text you want in your barcode. For example, let’s type *John=Doe* as shown below.
Go ahead and increase the size of the font to something bigger like 20 or 28. Now select the text and then select the Code 39 font from the list. The text should automatically be converted into a barcode and you’ll see the text at the bottom for this particular barcode.
You’ll notice that the equals sign has been converted into a space in the barcode. You now have a scannable code 39 barcode! It’s pretty much that easy. Skip down to the Scanning Barcodes section to learn how you can scan it using a smartphone app.
Now let’s try creating a Code 128 barcode. First pick a Code 128 font from the above list, download it and install it. Once you do that, you have to go to the following website to encode your text into the appropriate format.
Type in the text in the Data to Encode box and then click on the Code 128 button at the top left. The Encoded Text box will generate the appropriate text, which you can then copy and paste into Word. Make sure to increase the size of the font to 48 or 72.
Now select the text and change it to the Code 128 barcode font you installed. It should create a nice looking barcode, which you can then scan. The only issue I ran into was spaces in Code 128 barcodes. When using the online encoder, it uses a special character for the space, but when I converted that to a barcode, the special character remained and wasn’t converted into a space. Couldn’t figure out how to fix it, so if you figure it out, let us know!
The same process can be done for QR codes or any other type of barcode. The barcode encoder website is also useful for generating Code 93, UPC-E and other barcode formats.
Scanning Barcodes
If you have a physical barcode scanner, you can obviously just use that to scan your barcodes, but if you’re doing this as a personal home project, you might not have one laying around. In these cases, you can download free barcode scanning apps on your phone to scan your barcodes.
What’s really nice about these apps too is that you can create the barcode on your computer and scan them using the app before you even print them out. This way you can check to make sure they are scannable first.
My favorite app on the iPhone is Beep, a very simple barcode scanner that supports many different types of barcodes. It’s fast, free and works really well.
When it scans a barcode, it’ll tell you the type of barcode (Code 39, 128, etc) and it’ll show you the text at the top left. As for Android, I haven’t used any myself, but there are many apps in the Google Play Store, so feel free to try out different ones.
Hopefully, this guide was enough to get you started with barcodes in Word. If you run into trouble, feel free to post a comment and I’ll try to help. Enjoy!