One of our client’s requirements was, to dynamically send messages to printer based on content; this promoted me to write a custom print adapter for Biztalk Server 2004.
This print adapter is quite similar to SMTP Adapter wherein you can send messages to but does not pull any messages for BizTalk processing.
Currently adapter is having fontface, fontsize and Printer Name as a configurable parameters but its printing functionalities can be enhanced by modifying Printer.cs file which simply implements System.Drawing.Printing.PrintDocument.
Before installing Printer adapter you should be having Custom Adapter
Microsoft BizTalk Server 2004 Adapter for Printing is available for download here.
Steps to install Print Adapter.
1. Extract Printing Adapter to C:\Program Files\Microsoft BizTalk Server 2004 Adapter for Printing\.
2. Import PrintAdapter.reg.
3. Add the New Adapter from Biztalk Administrator Console.
4. Create a send port and configure Print Adapter as per your printer name.
Make sure the Biztalk Host(s) are bounced.
*** Prerequisites ***
I have used Microsoft BizTalk Server 2004 Adapter Wizard (from GotDotNet) to generate skeleton code for print adapter.
I am thankful to John Callaway (the instructor, of BizTalk Deep Dive training courses in the UK) for encouraging me to write a custom adapter for printing.
Thanks Arun for your support, please increase “hit count” for his blog ;) http://www.arunrocks.com/