Web Application Printing Strategy II
On my first write, I told 5 ways about how to add print support to a web application. And this is the 4th way in detail about how to do that.
4. Print Text Using Separate software handler. (Customer MIME Handler)
We can do this by using windows client behaviour that associate file to sort of application. So, this is the steps to do that.
- Create data format which will be printed. and what i have done was , adding some binaries character to text data. So I will have “some binary char + som text to print”
- Create application which will be associated to data format.The job of the application is print data every time it open or accept any data file. In my case , I have create it using visual basic. I will include the application here next time.
- Associate data file with application by open it.
if you using windows, you can easily do that by :
- double clicking the file
- windows will ask what application to use
- then pick the application you’ve created.
After this, the association created between your custom file and custome application will be also valid on web browser. So, when web browser download some dataformat/file that same with your custom data file it will redirect to your custom application and it will print your report.







