Manual For MW6 DataMatrix ASP.Net Component


Index:

Installation and Testing

MW6 DataMatrix ASP.Net Component can add professional quality 2D barcode image to your ASP.Net web application.  Do the following procedures for installation and testing.

  1. Copy the MW6DataMatrixASPNet.dll to the bin folder of the IIS server. For example, you can copy MW6DataMatrixASPNet.dll to the folder C:\Inetpub\wwwroot\bin

  2. Copy Demo.html, CreateImgVB.aspx, CreateImgCS.aspx, Show.aspx to a folder of the IIS server. For example, you can create one folder "C:\Inetpub\wwwroot\MyFolder" and copy those 4 files to this folder.

  3. Enter the URL of Demo.html to your browser for verifying whether DataMatrix ASP.Net component is working or not. For example, you can enter http://localhost/MyFolder/Demo.html for testing it on the IIS server itself.  

Back to Top


 

Methods and Properties

Methods:

  • void Render(Graphics RenderG, Rectangle AreaRC)
    Send DataMatrix barcode image to the device graphics specified by RenderG,  the barcode is drawn in the specific rectangle indicated by AreaRC. 

Properties:

  • BarColor: Bar color and text color, the default is black.
  • BackColor: Background color, the default is white.
  • Data: The message encoded by the barcode, the default is "12".
  • CellSize: The size for the basic cell module in CM, the default is 0.1CM.
  • Orientation: The orientation of barcode with 4 options, the default is value 0 indicating 0 degree.
    • 0 indicating 0 degree
    • 1 indicating 90 degrees
    • 2 indicating 180 degrees
    • 3 indicating 270 degrees
  • HandleTilde: Indicates whether the DataMatrix barcode should process the tilde(~) character or not, the default is FALSE.
    • ~1: is used to represent the FNC1 code.
    • ~2 : is used to represent the Structured Append and must be followed by a 3-digit number between 1 and 255.
    • -3: is used only at the very beginning of the symbol for the reader programming purpose.
    • ~5: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 05 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
    • ~6: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 06 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
    • ~7NNNNNN: is used to specify the Extended Channel and NNNNNN is a value between 000000 and 999999.
    • ~dNNN: is used to represent the ASCII character with the value of NNN.

Back to Top