Tenera IT blog
  • About

Category Archives: WPF

Showing and printing Barcodes in WPF

Posted on October 11, 2013 by PeterVD Posted in WPF

Recently I had to render barcodes in a WPF client and had to be able to print them as well.

On this project we were using DevExpress controls, but the Barcode control (at least till version 13.1) was only available for reporting. There was no ‘regular’ WPF control to display barcodes on screen.

I first tried using a Barcode font. I found the website of John T Barton with lots of info about barcodes. Downloaded the latest version of the EAN128 font from the website of Grand Zebu, but unfortunately I ran into problems with the first barcodes I tried (“MSN12345” and “MSN00000”). One of the characters created by the code from the site (to calculate checksum and some compression) wasn’t supported by the font.

After some extra research on the internet I quickly came across the Zen Barcode Rendering framework on Codeplex. This free framework looked like the answer to my problems/requirements.

Unfortunately, it targeted ASP.NET, SSRS and WinForms, but no WPF. So …. no luck there. But, as the framework is an open source project, I downloaded the code and started investigating if it would be possible to make some modifications so it could be used by WPF clients. Continue reading →

Barcode Printing WPF

BooleanToVisibilityConverter

Posted on January 31, 2012 by PeterVD Posted in Silverlight, WPF Leave a comment

Just a small piece of code which might come in handy in a Silverlight or WPF project: The typical boolean to System.Visibility converter.
Very often in one of your views, there is a piece of the view that must be shown or hidden in response to the value of a checkbox, for instance.

That’s where this converter comes in.
Continue reading →

Silverlight WPF

Tag cloud

Architecture Attributes Barcode Design Framework Navigational properties OO Printing PropertyGrid Reflection Remoting Serialization Silverlight WCF WinForms Work WPF

Categories

  • Architecture (3)
  • Reflection (2)
  • Silverlight (1)
  • Uncategorized (1)
  • WCF (1)
  • WinForms (1)
  • WPF (2)

Pages

  • About

Archives

  • October 2013
  • April 2013
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • June 2011

Categories

  • Architecture (3)
  • Reflection (2)
  • Silverlight (1)
  • Uncategorized (1)
  • WCF (1)
  • WinForms (1)
  • WPF (2)

WordPress

  • Log in
  • WordPress

CyberChimps WordPress Themes

© Tenera it blog