Use DataMatrix Font in ASP.NET web?

General discussion about Morovia barcode fonts, OCR/MICR fonts and postal fonts.

Use DataMatrix Font in ASP.NET web?

Postby DallasM on Fri Apr 27, 2012 2:44 pm

We bought Morovia DataMatrix Fonts, corporate license. We used in Crystal Reports and it worked very well. Now we want to move to our corporate web site and I wonder the easist way to do. I already created barcode string in ASP.NET application. How can I put the barcode to a web page?
DallasM
 

Re: Use DataMatrix Font in ASP.NET web?

Postby glitch on Fri Apr 27, 2012 3:08 pm

There are a number of ways to putting datamatrix barcode in a web page. For example, you can create barcode images and put it in a temp folder, then link that image in your web page.

If you already have the fonts installed on the client computer, you can write very simple HTML to display the barcode using font. The following shows a simple HTML that has the data matrix inside:

Code: Select all
<html>
<body>
<pre style="font-family:MRV DataMatrix5;font-size:6pt;line-height:100%;">
F4B7C3B29183B195A285F2B6E6E7A2A5B7B2C1B5
F4DDBE3C374A28853D75FAEB672277EB11A1C3B5
FF0898B08DB1D1D3DCB5FD44481F393436055C65
F07A071C1A89F2DFC535FAA623A43A37BE8B5885
F1715FDF1BB597B99D95F1FF59F9FDFD911BF7D5
F59491B792E3B0D4D7A5F5E6E7A2E591B7C6D295
F75A6340B2BF78FD7515FC8B6EC6FBF61B854CA5
F2BBC397A37E3CBC85C5F3BA25C0F982E695D5F5
F80DB4EF0A4F37D7A1E5F6CD80AEE173F7566855
F13393719B3799353DD5F9373B5399BD7B75D5D5
</pre>
</body>
</html>


In order to prevent line gaps, using css line-height:100%

Result in the browser:

datamatrix-barcode-string-browser.png
datamatrix-barcode-string-browser.png (14.78 KiB) Viewed 397654 times
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 198
Joined: Wed May 14, 2008 2:42 pm

Re: Use DataMatrix Font in ASP.NET web?

Postby DallasM on Fri Apr 27, 2012 3:10 pm

Thanks. We are still on DataMatrix Fontware 3. By changing the font-family and font-size, it worked beautifully on my computer.
DallasM
 


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest