PowerTools PlusPak for Windows Forms 8.0J
GS1Composite クラス
メンバ  使用例 

GS1Composite バーコードの設定を示します。
構文
Public Class GS1Composite 
   Inherits GrapeCity.Win.BarCode.ValueType.ValueBase
public class GS1Composite : GrapeCity.Win.BarCode.ValueType.ValueBase 
使用例

次のサンプルコードは、GrapeCity.Win.BarCode.GcBarCodeGS1Composite コーデックを使用する方法と、GS1Composite のプロパティの設定例を示します。

private void CreateGS1CompositeBarCode()
{
    // Create 2 GcBarCode controls to show CCA and CCB BarCode.
    
    //gcBarcode1 uses CCA BarCode.
    GcBarCode gcBarCode1 = new GcBarCode();
    gcBarCode1.Type = BarCode.ValueType.BarType.RSSExpandedStacked;
    gcBarCode1.GS1Composite.Type = BarCode.Options.GS1Composite.GS1CompositeType.CCA;
    gcBarCode1.GS1Composite.Value = "11121130105000KG";
    gcBarCode1.Value = "Grape of Xi'an China";
    gcBarCode1.Location = new Point(0, 450);

    //gcBarcode2 uses CCB BarCode.
    GcBarCode gcBarCode2 = new GcBarCode();
    gcBarCode2.Type = BarCode.ValueType.BarType.RSS14Stacked;
    gcBarCode2.GS1Composite.Type = BarCode.Options.GS1Composite.GS1CompositeType.CCB;
    gcBarCode2.GS1Composite.Value = "171301011000310" + GrapeCity.Win.BarCode.Options.GS1Composite.FNC1 + "Apple";
    gcBarCode2.Value = "0123456789";
    gcBarCode2.Location = new Point(300, 450);

    // Add the GcBarCode controls to the form
    this.Controls.Add(gcBarCode1);
    this.Controls.Add(gcBarCode2);
}
Private Sub CreateGS1CompositeBarCode()
    ' Create 2 GcBarCode controls to show CCA and CCB BarCode.

    'gcBarcode1 uses CCA BarCode.
    Dim gcBarCode1 As New GcBarCode()
    gcBarCode1.Type = BarCode.ValueType.BarType.RSSExpandedStacked
    gcBarCode1.GS1Composite.Type = BarCode.Options.GS1Composite.GS1CompositeType.CCA
    gcBarCode1.GS1Composite.Value = "11121130105000KG"
    gcBarCode1.Value = "Grape of Xi'an China"
    gcBarCode1.Location = New Point(0, 450)

    'gcBarcode2 uses CCB BarCode.
    Dim gcBarCode2 As New GcBarCode()
    gcBarCode2.Type = BarCode.ValueType.BarType.RSS14Stacked
    gcBarCode2.GS1Composite.Type = BarCode.Options.GS1Composite.GS1CompositeType.CCB
    gcBarCode2.GS1Composite.Value = "171301011000310" + GrapeCity.Win.BarCode.Options.GS1Composite.FNC1 + "Apple"
    gcBarCode2.Value = "0123456789"
    gcBarCode2.Location = New Point(300, 450)

    ' Add the GcBarCode controls to the form
    Me.Controls.Add(gcBarCode1)
    Me.Controls.Add(gcBarCode2)
End Sub
継承階層

System.Object
      GrapeCity.Win.BarCode.Options.GS1Composite

プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

GS1Composite メンバ
GrapeCity.Win.BarCode.Options 名前空間

Send Feedback