How to print label print

Here I want to print a label print in web application. For that I prefer Example of HTMLviewer printing. But here the issue I want to print Text as well as barcode on that HTMLViewer. Please any one tell me how to do this ??