1D 및 선형 바코드 생성 방법
IronBarcode를 사용하면 자동 검증 및 준수 검사와 함께 간단한 C# 코드를 사용하여 Code 128, GS1-128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, UPC-E, Intelligent Mail, MSI, Codabar, DataBar와 같은 모든 주요 1D 바코드 포맷을 생성할 수 있습니다. 필요에 맞는 적합한 형식을 찾기 위해 지원되는 바코드 형식의 전체 목록을 탐색할 수 있습니다.
선형 바코드는 정보 전달을 위한 산업 표준으로 남아 있습니다. 이것들은 빠르고 신뢰할 수 있으며 거의 모든 스캐너와 작동합니다. 이러한 바코드는 복잡한 이미지 처리가 필요하지 않으므로 소매점 계산대나 컨베이어 벨트와 같은 고속 환경에서 뛰어납니다.
주요 과제는 특정 필요에 맞는 올바른 포맷을 선택하는 것입니다. 요구 사항에 따라 배송 라벨에는 데이터 밀도가 높은 Code128, 작은 제품에는 크기가 컴팩트한 EAN8 또는 우편 서비스에 대한 엄격한 형식이 요구되는 IntelligentMail 바코드가 필요할 수 있습니다. IronBarcode는 이러한 모든 포맷을 효율적으로 신뢰성 있게 생성하는 데 도움을 줍니다. 이 라이브러리는 기존 시스템과의 통합을 위한 다양한 출력 데이터 형식도 지원합니다.
이 가이드는 IronBarcode를 사용하여 주요 1D 형식을 생성하는 방법과 일반적인 사용 사례을 다룹니다.
빠른 시작: 첫 번째 1D 바코드 생성
IronBarcode의 간단한 API를 사용하여 문자열에서 Code128 바코드를 생성하고 이를 JPEG 이미지로 저장하십시오. 즉시 시작하세요 - 데이터를 제공하고, 인코딩과 크기를 선택하고, 이미지 파일을 작성하십시오.
-
1IronBarcode를 NuGet Package Manager로 설치하십시오
-
2다음 코드 조각을 복사하여 실행하세요.
IronBarCode.BarcodeWriter.CreateBarcode("HELLO-WORLD-123", BarcodeEncoding.Code128, 250, 100).SaveAsJpeg("MyFirstBarcode.jpg");IronBarCode.BarcodeWriter.CreateBarcode("HELLO-WORLD-123", BarcodeEncoding.Code128, 250, 100).SaveAsJpeg("MyFirstBarcode.jpg")IronBarCode.BarcodeWriter.CreateBarcode("HELLO-WORLD-123", BarcodeEncoding.Code128, 250, 100).SaveAsJpeg("MyFirstBarcode.jpg") -
3실제 운영 환경에서 테스트할 수 있도록 배포하세요.
오늘 프로젝트에서 IronBarcode 사용을 시작해보세요 무료 체험
IronBarcode를 사용하여 1D 및 선형 바코드를 생성하는 방법
- 바코드를 생성하기 위해 IronBarcode C# 라이브러리를 다운로드하세요
CreateBarcode로 문자열 값을 사용해 바코드를 생성하세요BarcodeEncoding으로 바코드 유형을 지정하십시오SaveAsJpeg을 사용하여 바코드를 이미지 또는 다른 포맷으로 저장하십시오
어떻게 1D 및 선형 바코드를 생성합니까?
선형 일차원 바코드는 가변 폭의 선과 공백을 사용하여 수평으로 데이터를 저장합니다. QR 코드와 같은 이차원 바코드는 정보가 이차원으로 표시되는 사각형 격자를 사용합니다. 이차원 코드는 URL이나 연락처 카드와 같은 더 많은 데이터를 수용할 수 있지만, 일차원 바코드는 짧은 영숫자 문자열로 제한됩니다.
이 단순함 덕분에 일차원 바코드는 더 빠르게 스캔할 수 있습니다. 이는 표준 레이저 스캐너와 보편적으로 호환되며, 이를 고속 소매업 및 물류 환경에 이상적으로 만듭니다. 고용량 스캐닝 애플리케이션을 다룰 때 성능 최적화를 위해 읽기 속도 옵션을 탐색하세요.
가장 많이 지원되는 포맷과 IronBarcode로 이를 만드는 방법을 살펴보겠습니다.
Code-128 바코드를 어떻게 생성합니까?
Code 128 바코드는 내부 물류 및 배송 라벨에 자주 사용됩니다. 전체 128 문자 ASCII 범위를 지원하여 표준 숫자와 영어 텍스트를 작은 공간에 효율적으로 압축합니다. 이로 인해 Code 128은 창고 관리 시스템과 재고 추적에 이상적이며 공간은 제한되지만 데이터 밀도는 중요한 경우에 적합합니다.
하지만 추가 확장 없이 유니코드 또는 비 라틴 문자 지원은 기본적으로 제공하지 않습니다. 중국어나 아랍어와 같은 언어의 복잡한 문자를 처리할 수 없으며, 데이터를 잘못 해석하여 잘못된 결과를 초래할 수 있습니다. 유니코드 지원이 필요한 애플리케이션은 유니코드 바코드 작성 안내서를 참조하세요.
어떤 코드가 필요합니까?
IronBarcode는 Code-128 생성을 간편하게 만들어 줍니다: Create 메서드를 호출할 때 두 번째 매개변수로 BarcodeEncoding.Code128을 전달한 후 이미지를 내보내세요. 다양한 형식과 옵션으로 바코드 이미지를 생성하는 방법에 대해 더 알아보세요.
using IronBarCode;
// Specify Code 128 Format
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode("https://ironsoftware.com/csharp/barcode/", BarcodeEncoding.Code128);
// Add barcode value text below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save it as JPG
barcode.SaveAsJpeg("code128-sample.jpg");using IronBarCode;
// Specify Code 128 Format
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode("https://ironsoftware.com/csharp/barcode/", BarcodeEncoding.Code128);
// Add barcode value text below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save it as JPG
barcode.SaveAsJpeg("code128-sample.jpg");Imports IronBarCode
' Specify Code 128 Format
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode("https://ironsoftware.com/csharp/barcode/", BarcodeEncoding.Code128)
' Add barcode value text below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save it as JPG
barcode.SaveAsJpeg("code128-sample.jpg")Imports IronBarCode
' Specify Code 128 Format
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode("https://ironsoftware.com/csharp/barcode/", BarcodeEncoding.Code128)
' Add barcode value text below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save it as JPG
barcode.SaveAsJpeg("code128-sample.jpg")출력 결과는 어떻게 나타나나요?

GSI-128 바코드는 어떻게 생성합니까?
GS1-128은 Code 128 위에 적용되는 추가 데이터 형식입니다. GS1-128의 주요 장점은 전 세계적으로 일관된 데이터 해석이 가능해 오해와 모호성을 없앤다는 점입니다. 이 표준화는 제품이 다양한 회사와 국가 간에 이동하는 공급망 관리에 필수적입니다.
그러나 엄격한 형식 지정 때문에 숨겨진 제어 문자 누락이나 잘못된 필드 길이로 인해 바코드가 규정을 준수하지 않게 됩니다. GS1-128 형식에서 문제가 발생하면 일반적인 문제를 해결할 수 있도록 도움을 주는 GS1-128 문제 해결 가이드를 참조하세요.
GS1-128이 요구하는 형식은 무엇입니까?
바코드 스캐너는 제품 코드의 정보를 식별하는 숫자 접두어로 되어 있는 애플리케이션 식별자(AI)를 사용합니다. 이 식별자를 이해하는 것은 글로벌 공급망 전반에 걸쳐 호환되는 준수 바코드를 만드는 데 중요합니다.
GS1-128은 다음과 같은 네 부분의 데이터 구조를 따릅니다:
(숫자 접두사 01) GTIN (글로벌 품목 번호): 제품이 무엇인지 식별하는 고유 제품 ID. 정확히 14자리 숫자여야 합니다. 제품 코드가 더 짧은 경우, 앞에 0을 추가해 길이를 맞춥니다. 예를 들어, 123456789012는 00123456789012가 됩니다.
(숫자 접두사 10) 배치/로트: 제품의 배치 또는 로트 번호. 1에서 20자의 영숫자 문자. 바코드 중간에 있을 때는 스캐너가 끝나는 지점을 알 수 있도록 FNC1 분리 문자가 필요합니다. 바코드 끝에 있는 경우 분리자가 필요하지 않습니다.
(숫자 접두사 17) 유통기한: 제품의 유통기한. YYMMDD 형식에 따라 6자리로 고정됩니다. 예를 들어, 251231은 2025년 12월 31일입니다. 연도는 2자리로 표시하며, 슬라이딩 윈도 방식으로 세기를 결정합니다.
(숫자 접두사 21) 일련 번호: 고유한 개별 단위를 식별하는 제품의 일련 번호. 1-20자의 가변 길이 영숫자.
IronBarcode로 GSI-128을 어떻게 생성합니까?
GS1-128 바코드를 생성하는 것은 간단합니다; Create를 호출할 때 두 번째 매개변수로 BarcodeEncoding.Code128GS1을 전달하세요.
아래 예제는 네 가지 속성을 모두 포함하여 GS1-128을 완벽하게 준수하는 값을 보여주며, 이미지를 내보냅니다.
using IronBarCode;
// Valid GS1-128 String: GTIN + Expiry + Batch + Serial Number
string gs1Value = "(01)01234567890128(17)251231(10)BATCH001(21)111111";
// Create the barcode
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(gs1Value, BarcodeEncoding.Code128GS1);
// Display the value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("gsi128-sample.jpg");using IronBarCode;
// Valid GS1-128 String: GTIN + Expiry + Batch + Serial Number
string gs1Value = "(01)01234567890128(17)251231(10)BATCH001(21)111111";
// Create the barcode
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(gs1Value, BarcodeEncoding.Code128GS1);
// Display the value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("gsi128-sample.jpg");Imports IronBarCode
' Valid GS1-128 String: GTIN + Expiry + Batch + Serial Number
Dim gs1Value As String = "(01)01234567890128(17)251231(10)BATCH001(21)111111"
' Create the barcode
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(gs1Value, BarcodeEncoding.Code128GS1)
' Display the value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("gsi128-sample.jpg")Imports IronBarCode
' Valid GS1-128 String: GTIN + Expiry + Batch + Serial Number
Dim gs1Value As String = "(01)01234567890128(17)251231(10)BATCH001(21)111111"
' Create the barcode
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(gs1Value, BarcodeEncoding.Code128GS1)
' Display the value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("gsi128-sample.jpg")GSI-128 출력이 어떻게 보입니까?

GSI-128 형식 오류를 어떻게 수정합니까?
문자열이 GS1-128 표준을 준수하지 않으면 IronBarcode는 예외를 발생시킵니다. 위 테이블을 사용하여 문자열 값을 확인하고 해당 내용을 수정하세요.

Code 39 바코드를 어떻게 만듭니까?
Code 39는 초기의 영숫자 바코드 표준 중 하나로, 신뢰성이 높은 것으로 알려져 있습니다. 자동차 및 방위 산업 분야에서 흔히 사용됩니다. 문자와 숫자를 체크 디지트 없이 인코딩할 수 있는 능력 덕분에 다른 수단을 통해 데이터 무결성이 검증되는 환경에서는 단순하다는 장점이 있습니다.
그러나 Code 39는 제한된 문자 집합을 가지고 있습니다. 대문자 영어 문자, 숫자, /, ., -, 등의 기호만 허용합니다. 표준 모드는 소문자를 지원하지 않습니다. 표준 및 확장된 Code 39 바코드를 읽는 방법에 대한 정보는 Code 39 읽기 가이드를 참조하세요.
Code 39에 필요한 코드는 무엇입니까?
Code39를 생성하려면 Create를 사용할 때 두 번째 매개변수로 BarcodeEncoding.Code39를 전달하세요.
다음은 예시입니다.
using IronBarCode;
// Specify Code39 Format
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode("IRON-1234", BarcodeEncoding.Code39);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("code39.jpg");using IronBarCode;
// Specify Code39 Format
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode("IRON-1234", BarcodeEncoding.Code39);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("code39.jpg");Imports IronBarCode
' Specify Code39 Format
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode("IRON-1234", BarcodeEncoding.Code39)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("code39.jpg")Imports IronBarCode
' Specify Code39 Format
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode("IRON-1234", BarcodeEncoding.Code39)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("code39.jpg")Code 39 출력이 어떻게 보입니까?

왜 Code 39 오류가 발생하나요?

문자열이 Code39 표준을 준수하지 않으면 IronBarcode가 이 예외를 발생시킵니다.
Code 93 바코드를 어떻게 생성하나요?
Code 93은 Code 39 개선판으로, 알파벳과 숫자가 필요한 공간이 제한된 물류 및 전자 부품 라벨링에 일반적으로 사용됩니다. 개선된 밀도는 공간이 중요한 소형 전자 부품에 적합합니다.
전체 ASCII 문자, 대문자 알파벳, 숫자 및 기호를 허용합니다. Code 39보다 높은 밀도를 제공합니다.
Code 93에 필요한 코드는 무엇인가요?
Code93를 생성하려면 Create를 사용할 때 두 번째 매개변수로 BarcodeEncoding.Code93을 전달하세요:
using IronBarCode;
// Valid Input: Uppercase A-Z, 0-9, specific symbols
string code93Value = "ELEC-COMP-99";
// Create Code 93
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(code93Value, BarcodeWriterEncoding.Code93);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("code93.jpg");using IronBarCode;
// Valid Input: Uppercase A-Z, 0-9, specific symbols
string code93Value = "ELEC-COMP-99";
// Create Code 93
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(code93Value, BarcodeWriterEncoding.Code93);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("code93.jpg");Imports IronBarCode
' Valid Input: Uppercase A-Z, 0-9, specific symbols
Dim code93Value As String = "ELEC-COMP-99"
' Create Code 93
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(code93Value, BarcodeWriterEncoding.Code93)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("code93.jpg")Imports IronBarCode
' Valid Input: Uppercase A-Z, 0-9, specific symbols
Dim code93Value As String = "ELEC-COMP-99"
' Create Code 93
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(code93Value, BarcodeWriterEncoding.Code93)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("code93.jpg")Code 93 출력은 어떤 모양인가요?

CodaBar 바코드를 어떻게 생성하나요?
Codabar는 인쇄 품질이 좋지 않은 경우에도 신뢰할 수 있으며 혈액은행 및 도서관에서 널리 사용됩니다. 오류에 강한 형식이므로 저품질 프린터를 사용하거나 마모가 발생하는 환경에 적합합니다.
가변 길이지만 제한된 문자 집합. 0-9까지의 숫자와 (-, $, :, /, ., +) 기호만 포함합니다. 시작/종료 문자인 A, B, C, D는 시작 또는 끝을 나타냅니다. 이 문자들은 바코드 중간에 나타날 수 없습니다.
CodaBar에 필요한 코드는 무엇인가요?
Codabar를 생성하려면 Create를 사용할 때 두 번째 매개변수로 BarcodeEncoding.Codabar를 전달하세요:
using IronBarCode;
// Valid Input: Numbers 0-9 and symbols -$:/.+ IronBarcode automatically appends by A, B, C, or D
string codabarValue = "10500200";
// Create Codabar
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(codabarValue, BarcodeWriterEncoding.Codabar);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("codabar.jpg");using IronBarCode;
// Valid Input: Numbers 0-9 and symbols -$:/.+ IronBarcode automatically appends by A, B, C, or D
string codabarValue = "10500200";
// Create Codabar
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(codabarValue, BarcodeWriterEncoding.Codabar);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("codabar.jpg");Imports IronBarCode
' Valid Input: Numbers 0-9 and symbols -$:/.+ IronBarcode automatically appends by A, B, C, or D
Dim codabarValue As String = "10500200"
' Create Codabar
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(codabarValue, BarcodeWriterEncoding.Codabar)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("codabar.jpg")Imports IronBarCode
' Valid Input: Numbers 0-9 and symbols -$:/.+ IronBarcode automatically appends by A, B, C, or D
Dim codabarValue As String = "10500200"
' Create Codabar
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(codabarValue, BarcodeWriterEncoding.Codabar)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("codabar.jpg")CodaBar 출력은 어떤 모양인가요?

왜 CodaBar에서 오류가 발생하나요?
입력에 문자가 포함되어 있으면 IronBarcode는 숫자 값만 허용한다고 예외를 발생시킵니다.

DataBar 바코드를 어떻게 생성하나요?
GS1 DataBar (이전 명칭 RSS-14)는 더욱 컴팩트하며, 제품 식별 번호를 위해 설계되었습니다. 전통적인 바코드가 너무 많은 공간을 차지하는 신선 농산물 같은 작은 품목에 유용합니다. 새로운 형식 주요 업데이트에서 새로운 형식 기능에 대해 더 알아보세요.
GS1-128과 마찬가지로, 엄격한 인코딩 형식을 가지고 있습니다. 전방향 변형은 단지 제품 코드 속성만 포함합니다.
GS1-DataBar에 필요한 형식은 무엇인가요?
(숫자 접두사-01) GTIN (글로벌 품목 번호): 고유한 제품 ID. 정확히 14자리 숫자여야 합니다.
GS1 DataBar 코드를 어떻게 생성하나요?
GS1 DataBar를 생성하려면 CreateBarcode를 사용할 때 두 번째 매개변수로 BarcodeWriterEncoding.DataBar를 전달하세요:
using IronBarCode;
// Valid Input: Exactly 14 digits (GTIN). IronBarcode will calculate and append the correct check digit
string databarValue = "0123456789012";
// Create GS1 DataBar
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(databarValue, BarcodeWriterEncoding.DataBar);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("databar.jpg");using IronBarCode;
// Valid Input: Exactly 14 digits (GTIN). IronBarcode will calculate and append the correct check digit
string databarValue = "0123456789012";
// Create GS1 DataBar
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(databarValue, BarcodeWriterEncoding.DataBar);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("databar.jpg");Imports IronBarCode
' Valid Input: Exactly 14 digits (GTIN). IronBarcode will calculate and append the correct check digit
Dim databarValue As String = "0123456789012"
' Create GS1 DataBar
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(databarValue, BarcodeWriterEncoding.DataBar)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("databar.jpg")Imports IronBarCode
' Valid Input: Exactly 14 digits (GTIN). IronBarcode will calculate and append the correct check digit
Dim databarValue As String = "0123456789012"
' Create GS1 DataBar
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(databarValue, BarcodeWriterEncoding.DataBar)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("databar.jpg")DataBar 출력은 어떤 모양인가요?

EAN-13 바코드를 어떻게 생성하나요?
EAN-13은 전 세계 소비자 제품에 사용되는 표준 소매 바코드로, 가장 널리 사용되는 형식 중 하나입니다. 소매 애플리케이션을 위해 브랜드 요구 사항을 충족시킬 수 있도록 바코드 스타일을 사용자 정의하는 방법을 탐색하세요.
EAN-13은 엄격한 라이선스가 필요합니다. 고유한 바코드 생성을 위해 GS1 회사 접두사를 라이선스하지 않으면 EAN-13 번호를 공용으로 생성할 수 없습니다. 13자리 숫자만 포함합니다. 라이선스 정보는 라이선싱 페이지를 방문하세요.
EAN-13은 특정 형식 규칙을 가지고 있습니다.
EAN-13에 필요한 형식은 무엇인가요?
EAN-13 바코드는 네 부분으로 구성됩니다:
GS1 접두사 (첫 3자리): 보통 등록 국가를 식별하는 GS1 회원 조직을 식별합니다. 예시: 000-019 (미국/캐나다 - UPC 호환), 500-509 (영국), 450-459 (일본).
제조업체 코드: GS1에서 부여한 가변 길이 코드입니다.
제품 코드: 특정 품목에 대해 제조업체에서 부여합니다.
체크 디지트 (마지막 자리): Modulo 10 알고리즘을 사용하여 처음 12자리에서 계산됩니다. 정확한 스캐너 읽기를 보장합니다.
EAN-13 코드는 어떻게 생성하나요?
EAN-13을 생성하려면 Create를 사용할 때 두 번째 매개변수로 BarcodeEncoding.EAN13을 전달하세요:
using IronBarCode;
// Valid Input: 12 digits (library calculates 13th check digit) or full 13 digits.
string ean13Value = "4006381333931";
// Create EAN-13
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(ean13Value, BarcodeWriterEncoding.EAN13);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("ean13.jpg");using IronBarCode;
// Valid Input: 12 digits (library calculates 13th check digit) or full 13 digits.
string ean13Value = "4006381333931";
// Create EAN-13
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(ean13Value, BarcodeWriterEncoding.EAN13);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("ean13.jpg");Imports IronBarCode
' Valid Input: 12 digits (library calculates 13th check digit) or full 13 digits.
Dim ean13Value As String = "4006381333931"
' Create EAN-13
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(ean13Value, BarcodeWriterEncoding.EAN13)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("ean13.jpg")Imports IronBarCode
' Valid Input: 12 digits (library calculates 13th check digit) or full 13 digits.
Dim ean13Value As String = "4006381333931"
' Create EAN-13
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(ean13Value, BarcodeWriterEncoding.EAN13)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("ean13.jpg")EAN-13 출력은 어떻게 보이나요?

EAN-13 형식 오류는 어떻게 수정하나요?
IronBarcode는 비숫자 값에 대해서 예외를 발생시킵니다.

EAN-8 바코드는 어떻게 생성하나요?
EAN-8은 풀 사이즈 바코드가 너무 많은 공간을 차지하는 소형 소비재 제품을 위한 축소된 EAN-13 버전입니다. 포장 공간이 제한적인 연필과 화장품에 흔합니다.
Code 128 또는 Code 39와 달리, EAN-8은 임의의 숫자 대신 특정 지정 접두사를 사용합니다.
EAN-8은 엄격한 8자리 형식을 사용합니다: 7개의 데이터 숫자와 1개의 체크 디지트. 숫자만 사용할 수 있습니다.
EAN-8에 필요한 코드는 무엇인가요?
EAN-8을 생성하려면 Create를 사용할 때 두 번째 매개변수로 BarcodeEncoding.EAN8을 전달하세요:
using IronBarCode;
// Valid Input: 7 digits (library calculates 8th check digit).
string ean8Value = "1234567";
// Create EAN-8
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(ean8Value, BarcodeWriterEncoding.EAN8);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("ean8.jpg");using IronBarCode;
// Valid Input: 7 digits (library calculates 8th check digit).
string ean8Value = "1234567";
// Create EAN-8
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(ean8Value, BarcodeWriterEncoding.EAN8);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("ean8.jpg");Imports IronBarCode
' Valid Input: 7 digits (library calculates 8th check digit).
Dim ean8Value As String = "1234567"
' Create EAN-8
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(ean8Value, BarcodeWriterEncoding.EAN8)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("ean8.jpg")Imports IronBarCode
' Valid Input: 7 digits (library calculates 8th check digit).
Dim ean8Value As String = "1234567"
' Create EAN-8
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(ean8Value, BarcodeWriterEncoding.EAN8)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("ean8.jpg")EAN-8 출력은 어떻게 보이나요?

EAN-8 길이 오류는 왜 발생하나요?
입력에 8개 이상의 숫자 문자가 포함된 경우, IronBarcode는 EAN-8이 8자를 필요로 한다는 예외를 발생시킵니다.

Intelligent Mail 바코드를 어떻게 생성하나요?
Intelligent Mail 바코드(IMB)는 미국 우체국의 표준으로, 우편물 분류 및 추적을 자동화합니다. 전통적인 너비 변조 바코드와 달리, IMB는 높이 변조된 막대를 사용합니다. 편지 및 평평한 우편물에 대한 자동화 가격 할인을 위해 필수입니다. 특정 숫자 길이만 지원합니다: 20, 25, 29, 또는 31 자리.
정보를 정의하는 특정 숫자 접두사를 사용합니다.
Intelligent Mail에 필요한 형식은 무엇입니까?
(앞의 2자리) 바코드 ID: 바코드 식별자입니다. 반드시 2자리 숫자여야 합니다. 일반적으로 표준 상업용 우편의 경우 00입니다.
(다음 3자리) 서비스 유형 ID(STID): 우편물 등급(예: First Class, Marketing Mail) 및 서비스(예: 주소 수정, 추적)를 정의합니다. 우편 할인에 중요합니다.
(다음 6 또는 9자리) 발송인 ID(MID): USPS에서 귀사의 회사에 할당한 6자리 또는 9자리 번호입니다.
(다음 6 또는 9자리) 일련 번호: 개별 우편물을 식별합니다.
(마지막 0, 5, 9, 11자리) 라우팅 코드: 배송 ZIP 코드입니다.
Intelligent Mail 코드는 어떻게 생성하나요?
IMB를 생성하려면 Create를 호출할 때 두 번째 매개변수로 BarcodeEncoding.IntelligentMail을 전달하세요:
using IronBarCode;
// Valid Input: 20, 25, 29, or 31 digits.
// Format: Barcode ID(2) + Service(3) + Mailer ID(6/9) + Serial(9/6) + Routing Zip(0/5/9/11)
string imbValue = "00270123456200800001";
// Create Intelligent Mail
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(imbValue, BarcodeWriterEncoding.IntelligentMail);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("imb.jpg");using IronBarCode;
// Valid Input: 20, 25, 29, or 31 digits.
// Format: Barcode ID(2) + Service(3) + Mailer ID(6/9) + Serial(9/6) + Routing Zip(0/5/9/11)
string imbValue = "00270123456200800001";
// Create Intelligent Mail
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(imbValue, BarcodeWriterEncoding.IntelligentMail);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("imb.jpg");Imports IronBarCode
' Valid Input: 20, 25, 29, or 31 digits.
' Format: Barcode ID(2) + Service(3) + Mailer ID(6/9) + Serial(9/6) + Routing Zip(0/5/9/11)
Dim imbValue As String = "00270123456200800001"
' Create Intelligent Mail
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(imbValue, BarcodeWriterEncoding.IntelligentMail)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("imb.jpg")Imports IronBarCode
' Valid Input: 20, 25, 29, or 31 digits.
' Format: Barcode ID(2) + Service(3) + Mailer ID(6/9) + Serial(9/6) + Routing Zip(0/5/9/11)
Dim imbValue As String = "00270123456200800001"
' Create Intelligent Mail
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(imbValue, BarcodeWriterEncoding.IntelligentMail)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("imb.jpg")Intelligent Mail 출력은 어떻게 보이나요?

Intelligent Mail 형식 오류는 어떻게 수정하나요?
형식이 올바르지 않으면 IronBarcode가 예외를 발생시킵니다. 문자열 값을 위의 형식과 비교하고 수정 후 다시 시도하십시오.

MSI 바코드를 어떻게 생성하나요?
MSI는 소비자 제품에서는 거의 사용되지 않으며, 주로 소매 선반 태그와 창고 재고 관리에 일반적입니다. 그 단순함과 신뢰성으로 인해 내부 운영에서 인기가 있습니다. MSI 인식 문제 확인은 MSI 바코드 문제 해결 가이드를 참조하세요.
MSI는 숫자 전용입니다; 문자나 기호는 허용되지 않습니다. 가변 길이로, 일반적으로 10-15 자리입니다.
MSI에 필요한 코드는 무엇인가요?
MSI를 생성하려면 Create를 호출할 때 두 번째 매개변수로 BarcodeEncoding.MSI를 전달하세요:
using IronBarCode;
// Valid Input: Numeric digits only. Variable length.
string msiValue = "1234567890";
// Create MSI
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(msiValue, BarcodeWriterEncoding.MSI);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("msi.jpg");using IronBarCode;
// Valid Input: Numeric digits only. Variable length.
string msiValue = "1234567890";
// Create MSI
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(msiValue, BarcodeWriterEncoding.MSI);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("msi.jpg");Imports IronBarCode
' Valid Input: Numeric digits only. Variable length.
Dim msiValue As String = "1234567890"
' Create MSI
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(msiValue, BarcodeWriterEncoding.MSI)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("msi.jpg")Imports IronBarCode
' Valid Input: Numeric digits only. Variable length.
Dim msiValue As String = "1234567890"
' Create MSI
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(msiValue, BarcodeWriterEncoding.MSI)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("msi.jpg")MSI 출력은 어떻게 생겼나요?

UPC-A 바코드를 어떻게 생성하나요?
UPC-A는 미국과 캐나다의 표준 소매 바코드입니다. EAN-13의 12자리 하위 집합입니다. 북미 슈퍼마켓 제품에 가장 많이 사용됩니다. 광범위한 채택으로 인해 북미 시장에서 필수적입니다.
EAN-13처럼, 주로 할당되며 생성되는 것이 아닙니다.
UPC-A는 정확히 12개의 숫자를 포함하고 있습니다. 문자는 허용되지 않습니다.
UPC-A에 필요한 형식은 무엇인가요?
숫자 시스템 문자 (1): 제품 유형을 식별합니다(일반 소매 제품은 0, 1, 6, 7, 8, 중량이 가변적인 제품은 2, 의약품은 3, 쿠폰은 5).
제조업체 코드 (5): GS1에서 부여합니다.
제품 코드 (5): 제조업체에서 부여합니다.
체크 디지트 (1): 모듈로 10 체크섬을 계산합니다.
UPC-A 코드를 어떻게 생성하나요?
UPC-A를 생성하려면 Create를 호출할 때 두 번째 매개변수로 BarcodeEncoding.UPCA를 전달하세요:
using IronBarCode;
// Valid Input: 11 digits (library calculates 12th check digit) or full 12 digits
string upcaValue = "01234567890";
// Create UPC-A
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(upcaValue, BarcodeWriterEncoding.UPCA);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG
barcode.SaveAsJpeg("upca.jpg");using IronBarCode;
// Valid Input: 11 digits (library calculates 12th check digit) or full 12 digits
string upcaValue = "01234567890";
// Create UPC-A
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(upcaValue, BarcodeWriterEncoding.UPCA);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG
barcode.SaveAsJpeg("upca.jpg");Imports IronBarCode
' Valid Input: 11 digits (library calculates 12th check digit) or full 12 digits
Dim upcaValue As String = "01234567890"
' Create UPC-A
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(upcaValue, BarcodeWriterEncoding.UPCA)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG
barcode.SaveAsJpeg("upca.jpg")Imports IronBarCode
' Valid Input: 11 digits (library calculates 12th check digit) or full 12 digits
Dim upcaValue As String = "01234567890"
' Create UPC-A
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(upcaValue, BarcodeWriterEncoding.UPCA)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG
barcode.SaveAsJpeg("upca.jpg")UPC-A 출력은 어떻게 생겼나요?

UPC-A 길이 오류가 발생하는 이유는 무엇인가요?
IronBarcode는 숫자 자릿수가 13을 초과할 경우 오류를 발생시킵니다.

UPC-E 바코드를 어떻게 생성하나요?
UPC-E는 작은 소매 포장, 예를 들어 소다 캔처럼 전체 12자리 UPC-A가 너무 큰 경우에 사용되는 압축된 UPC-A 버전입니다. 압축 알고리즘은 동일한 정보를 약 절반의 공간에 인코딩합니다.
UPC-A처럼, 엄격하게 숫자입니다. 문자나 기호는 허용되지 않습니다.
UPC-E에 필요한 코드는 무엇인가요?
UPC-E를 생성하려면 Create를 호출할 때 두 번째 매개변수로 BarcodeEncoding.UPCE를 전달하세요:
using IronBarCode;
// Valid input: 8 digits or less in which the last digit is a check digit
// IronBarcode automatically calculates the check digit if only 7 digits are provided.
string upceValue = "0123456";
// Create UPC-E
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(upceValue, BarcodeWriterEncoding.UPCE);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("upce.jpg");using IronBarCode;
// Valid input: 8 digits or less in which the last digit is a check digit
// IronBarcode automatically calculates the check digit if only 7 digits are provided.
string upceValue = "0123456";
// Create UPC-E
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(upceValue, BarcodeWriterEncoding.UPCE);
// Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode();
// Save as a JPG file
barcode.SaveAsJpeg("upce.jpg");Imports IronBarCode
' Valid input: 8 digits or less in which the last digit is a check digit
' IronBarcode automatically calculates the check digit if only 7 digits are provided.
Dim upceValue As String = "0123456"
' Create UPC-E
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(upceValue, BarcodeWriterEncoding.UPCE)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("upce.jpg")Imports IronBarCode
' Valid input: 8 digits or less in which the last digit is a check digit
' IronBarcode automatically calculates the check digit if only 7 digits are provided.
Dim upceValue As String = "0123456"
' Create UPC-E
Dim barcode As GeneratedBarcode = BarcodeWriter.CreateBarcode(upceValue, BarcodeWriterEncoding.UPCE)
' Stamp barcode value below the barcode
barcode.AddBarcodeValueTextBelowBarcode()
' Save as a JPG file
barcode.SaveAsJpeg("upce.jpg")UPC-E 출력은 어떻게 생겼나요?

UPC-E 길이 오류를 어떻게 수정하나요?
IronBarcode는 숫자 자릿수가 8을 초과할 경우 오류를 발생시킵니다.

1D 바코드의 다양한 종류는 무엇인가요?
| 이름 | 형식 | 일반적인 사용 | 제한 및 함정 |
|---|---|---|---|
| 코드 128 | 영숫자 전체 ASCII 128 지원. 가변 길이. 고밀도. | 내부 물류, 배송 라벨, 자산 추적, ID 카드. |
|
| GS1-128 | 구조화된 영숫자 선행 FNC1과 애플리케이션 식별자(예: (01))가 포함된 Code 128. | 글로벌 공급망 (월마트/아마존), 팔레트 라벨, EDI. |
|
| 코드 39 | 영숫자(제한됨) 대문자 A-Z, 0-9 및 -. $ / + % space. | 자동차 (AIAG), 방위 산업 (LOGMARS), 레거시 산업 ID. |
|
| 코드 93 | 영숫자 Code 39와 비슷하지만 밀도가 더 높습니다. | 전자 (PCB), 캐나다 우편, 내부 제조. |
|
| 코다바 | 숫자 + 기호 0-9 및 - $ : /. +. 시작/종료 문자: A, B, C, D. | 혈액 은행, 도서관, FedEx 항공 운송장 (레거시). |
|
| GS1 데이터바 | 숫자(14자리) GTIN-14만 인코딩합니다. 매우 작습니다. | 낱개 농산물(과일 스티커), 작은 화장품, 의료 바이알. |
|
| EAN-13 | 숫자(13자리) 국가 + 제조업체 + 제품 + 체크 디지트. | 전 세계 소매 판매시점관리(POS) (슈퍼마켓). |
|
| EAN-8 | 숫자(8자리) 데이터 7자리 + 체크 디지트 1자리. | 작은 소매 패키지 (껌, 연필). |
|
| Intelligent Mail | 숫자(20, 25, 29, 31자리) 높이가 변조된(4-상태) 막대. | 미국 우편물 분류 및 자동화. |
|
| MSI (플레시) | 숫자 전용 가변 길이. | 소매 선반 태그, 창고 보관함. |
|
| UPC-A | 숫자(12자리) 데이터 11자리 + 체크 디지트 1자리. | 북미 소매 판매시점관리(POS). |
|
| UPC-E | 숫자(6자리) 압축 형식. | 미국/캐나다의 소형 소매 포장(소다 캔). |
|
자주 묻는 질문
IronBarcode를 사용하여 C#에서 1D 바코드를 생성할 때의 주요 이점은 무엇입니까?
IronBarcode는 자동 유효성 검사 및 규정 준수 점검과 같은 기능을 갖춘 Code 128, EAN-13, UPC-A와 같은 다양한 1D 바코드 형식을 생성할 수 있는 간단한 API를 제공하여 C# 애플리케이션에서 효율적이고 신뢰할 수 있는 바코드 생성을 이상적으로 만듭니다.
IronBarcode를 사용하여 바코드를 어떻게 만들 수 있습니까?
BarcodeWriter.CreateBarcode 메서드를 사용하여 데이터를 제공하고, 바코드 인코딩 유형을 선택한 후 JPEG와 같은 이미지 형식으로 저장하여 바코드를 생성할 수 있습니다.
IronBarcode로 배송 라벨 바코드에 어떤 형식을 사용해야 하나요?
배송 라벨에는 코드 128이 권장되며, 데이터 밀도가 높아 압축된 공간에 적합하며 광범위한 문자를 인코딩할 수 있습니다.
IronBarcode는 1D 바코드에서 유니코드 또는 비라틴 문자를 처리할 수 있나요?
IronBarcode는 Code 128과 같은 형식에서 ASCII의 전체 128문자 범위를 기본적으로 지원하지만, 중국어나 아랍어와 같은 언어에 필요한 유니코드 또는 특수 문자 지원을 위해 추가 기능이 필요합니다.
UPC-A와 UPC-E 바코드의 차이점은 무엇입니까?
UPC-A는 북미 소매업에서 일반적으로 사용되는 12자리 바코드인 반면, UPC-E는 압축 알고리즘을 사용하여 제한된 공간에 맞춘 작은 패키지(예: 소다 캔)에 적합한 더 컴팩트한 6자리 버전입니다.
IronBarcode로 EAN-13 바코드를 생성하기 위한 규정은 무엇입니까?
EAN-13 바코드는 GS1 회원 조직 및 제품 코드를 식별하는 특정 접두사를 가진 13자리 형식이 필요하며, 고유한 글로벌 식별자를 보장하기 위해 GS1과의 라이선스 계약을 준수해야 합니다.
GS1-128 바코드의 형식 오류를 어떻게 해결할 수 있나요?
바코드 문자열이 FNC1 문자로 시작하고 올바르게 형식화된 응용 식별자를 포함하는 GS1-128 표준을 따르는지 확인하십시오. IronBarcode는 비규격 문자열에 대해 예외를 발생시켜 사용자가 GS1-128 문제 해결 가이드를 사용하여 문제를 해결할 수 있도록 돕습니다.
자동차 산업에 적합한 코드 39의 이점은 무엇입니까?
코드 39는 알파벳 숫자 데이터를 체크 디지트 없이 인코딩할 수 있어, 다른 방법으로 데이터 무결성이 확인되는 환경을 단순화하기 때문에 자동차 산업에서 선호됩니다.
IronBarcode는 다양한 출력 형식을 어떻게 처리합니까?
IronBarcode는 생성된 바코드를 JPEG와 같은 다양한 출력 형식으로 저장할 수 있어 유연한 내보내기 옵션을 통해 기존 시스템과의 간단한 통합을 보장합니다.
USPS 애플리케이션에 지능형 메일 바코드를 사용해야 하는 이유는 무엇입니까?
지능형 메일 바코드는 USPS 표준으로, 우편물 분류를 최적화하고 추적을 가능하게 하며, 특정 숫자 길이가 필요하여 규정 준수를 보장하고 우편 할인 자격을 획득합니다.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.