Here is a online guide that can help you on 2d data matrix creating. Recently, I have tested my friend recommended image barcode creating suite, which enables users to creare and generate both linear and 2d barcodes on image and document page, including data matrix generation. I am a programmer using visual basic, so I used its vb.net barcode creation tools, and I can share the 2d datamatrix barcode generation sample codes with you, you can simply copy these codes within your vb project or convert them into c# codes if you are developer using Visual C#. Of cause, you need to make some specifications as your needs. Besides, if you still want to generate other popular 2d barcodes, like qr code and pdf 417, see the related post article.
Dim reImage As REImage = REFile.OpenImageFile("c:/Sample.png", New PNGDecoder())
Dim barcode As New DataMatrix()
'create a datamatrix barcode
'encode data into Data Matrix barcode
' set module size
'set barcode printing resolution
'set rotate
'draw barcode on REImage with location x and y
For 2d matrix creation issue. I just fond such tutorial on CodeProject, but it was to create 2 dimensional matrix using C#:
Introduction to dynamic two dimensional arrays in C++ - CodeProject
Best regards.
I don't understand any of these replies about "dynamic matrix creation." The SAS/IML language is a full programming language with the ability to allocate sapce for matrices, loop over elements, create mathematical formulas, make assignments, etc.
I don't understand why someone would need to use C#, C++, or any other external language to create a matrix. If I am missing something, please explain what you want to do and I'll try to show how you can do it in SAS.
You are enumerating all the combinations . Check GRAYCODE() . You can use it in either IML or Data step .
data _null_;
array x[4];
n=dim(x);
k=-1;
nsubs=2**n;
do i=1 to nsubs;
rc=graycode(k, of x
put i 5. +3 k= x
end;
run;
Xia Keshan
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.