IronBarcode 문제 해결 MSI 바코드를 인식할 수 없습니다 IronBarCode가 MSI 바코드를 인식하지 못함 커티스 차우 업데이트됨:8월 19, 2025 다운로드 IronBarcode NuGet 다운로드 DLL 다운로드 무료 체험 시작하기 LLM용 사본 LLM용 사본 LLM용 마크다운 형식으로 페이지를 복사하세요 ChatGPT에서 열기 ChatGPT에 이 페이지에 대해 문의하세요 제미니에서 열기 제미니에게 이 페이지에 대해 문의하세요 Grok에서 열기 Grok에게 이 페이지에 대해 문의하세요 혼란 속에서 열기 Perplexity에게 이 페이지에 대해 문의하세요 공유하다 페이스북에 공유하기 트위터에 공유하기 LinkedIn에 공유하기 URL 복사 이메일로 기사 보내기 This article was translated from English: Does it need improvement? Translated View the article in English 문제 IronBarcode 라이브러리를 사용하여 MSI 바코드를 생성할 때, BarcodeReader.Read 메서드가 생성된 MSI 바코드를 읽을 수 없는 경우가 발생하여 빈 스캔과 바코드에서 기대했던 값을 얻지 못할 수 있습니다. 해결책 BarcodeReader.Read가 MSI 바코드를 읽을 수 있도록 하기 위해, Read 메서드에 대한 보조 선택적 BarcodeReaderOptions 매개변수를 제공해야 합니다. BarcodeReaderOptions 내에서, ExpectedBarcodeTypes 값을 할당하여 우리가 읽으려고 하는 바코드 유형을 명시적으로 지정합니다. 이렇게 하면, Read 메서드는 IronBarCode에서 생성된 MSI 바코드뿐만 아니라 외부 MSI 바코드도 인식할 수 있습니다. 아래는 BarcodeReaderOptions를 BarcodeReader.Read에 적용하는 빠른 예시입니다. 코드 예제 // Creating MSI Barcode with the value "12345" var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.MSI); // Save barcode as image myBarcode.SaveAsImage("msi.png"); // Reading MSI var barcodeReaderOptions = new BarcodeReaderOptions { // Assigning BarcodeEncoding.MSI to ExpectBarcodeType to ensure that IronBarcode expects MSI type barcodes specifically ExpectBarcodeTypes = BarcodeEncoding.MSI, }; // Read barcode with additional barcodeReaderOptions from above var barcodeResults = BarcodeReader.Read("msi.png", barcodeReaderOptions); // Using a for loop and print out the result foreach (BarcodeResult result in barcodeResults) { Console.WriteLine(result.Text); // Output: 12345 } // Creating MSI Barcode with the value "12345" var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.MSI); // Save barcode as image myBarcode.SaveAsImage("msi.png"); // Reading MSI var barcodeReaderOptions = new BarcodeReaderOptions { // Assigning BarcodeEncoding.MSI to ExpectBarcodeType to ensure that IronBarcode expects MSI type barcodes specifically ExpectBarcodeTypes = BarcodeEncoding.MSI, }; // Read barcode with additional barcodeReaderOptions from above var barcodeResults = BarcodeReader.Read("msi.png", barcodeReaderOptions); // Using a for loop and print out the result foreach (BarcodeResult result in barcodeResults) { Console.WriteLine(result.Text); // Output: 12345 } $vbLabelText $csharpLabel 예제에서는 먼저 새로운 BarcodeReaderOptions 변수를 인스턴스화한 다음, ExpectedBarcodeTypes를 BarcodeEncoding.MSI 열거형으로 설정하여 IronBarcode에 MSI 바코드를 기대하도록 지시합니다. 그 후, barcodeResults가 BarcodeResults 배열을 반환하면서 각 결과를 루프를 통해 텍스트 값을 얻도록 하여, 바코드 값 12345를 for 루프 내에서 출력합니다. 커티스 차우 지금 바로 엔지니어링 팀과 채팅하세요 기술 문서 작성자 커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다. 커티스는 개발 분야 외에도 사물 인터넷(IoT)에 깊은 관심을 가지고 있으며, 하드웨어와 소프트웨어를 통합하는 혁신적인 방법을 연구합니다. 여가 시간에는 게임을 즐기거나 디스코드 봇을 만들면서 기술에 대한 애정과 창의성을 결합합니다. 시작할 준비 되셨나요? Nuget 다운로드 2,108,094 | 버전: 2026.3 방금 출시되었습니다 무료 체험 시작하기 NuGet 무료 다운로드 총 다운로드 수: 2,108,094 라이선스 보기 아직도 스크롤하고 계신가요? 빠른 증거를 원하시나요? PM > Install-Package BarCode 샘플을 실행하세요 실이 바코드로 변하는 모습을 지켜보세요. NuGet 무료 다운로드 총 다운로드 수: 2,108,094 라이선스 보기