How to serialize a GS1 DataMatrix

We’re currently created GS1 DataMatrix barcodes with this schema:

<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–>

(FNC1 + 01 + 0 + GTIN (13 NUMBER) + 17+ YYMMDD + 10 + LOTnumber + FNC1 + 21 + SERIAL NUMBER)

For the replacement of FIRST FNC1 code = please put ASCII code number 232 ,

​For the replacement of SECOND FNC1 code for carton = please put ASCII code number 29 ,

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

<![endif]–>What is the best way to send the second FNC1 to the Aspose.Barcode dll? The first FNC1 is created by the system and we don’t have to pass it to the dll. I’ve tried sending CHR(29) through a small VBScript and get returned “Invalid string”.

i.e. barcodeWrapper.codeText = trim(Replace(txtValue,“FNC1”,CHR(29)))

Thanks,

- Al

Hi Al,


Thank you for contacting support. We managed to replicate the error message while putting second FNC1 character. We have logged this issue under ticket id BARCODENET-34025 in our issue tracking system. Please also provide us your complete sample code text strings. It will be for confirmation purposes. Your post has also been linked to this issue. We’ll let you know once it is fixed. We’re sorry for the inconvenience caused.

Thanks for getting back to me so quickly. The code in question is: (01)08806622000624(17)160630(10)P3066FFNC1(21)000009

Hi Al,


Thank you for providing the sample code text. It appears as you don’t need to put FNC1 character on the second location. Aspose.BarCode API can encode and decode second FNC1 character automatically. Please check this sample code and result:

[C#]
BarCodeBuilder builder = new BarCodeBuilder(“(01)08806622000624(17)160630(10)P3066F(21)000009”, Symbology.GS1DataMatrix);
Bitmap image = builder.BarCodeImage;
BarCodeReader reader = new BarCodeReader(image);
if (reader.Read())
{
string s = reader.GetCodeText();
Console.WriteLine(“Text: {0}”, s);
}


Result:
Text: 01088066220006241716063010P3066F21000009

Please make sure that you are using the latest version of Aspose.BarCode for .NET 6.6.0. We hope, this helps.

This is great to know, thanks. We’ll be testing again next week and will make this change to our code.

Hi Al,


Thank you for replying us. Please be sure to inform us of your findings, especially in case the error message or any other inconvenience.

The issues you have found earlier (filed as BARCODENET-34025) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan