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?

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
<pre style="font-family:MRV DataMatrix5;font-size:6pt;line-height:100%;">

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

Result in the browser:

datamatrix-barcode-string-browser.png (14.78 KiB) Viewed 249274 times
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
Support Engineer
Posts: 197
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.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest