Web Application Printing Strategy II

Posted on March 21, 2009. Filed under: Java, PHP | Tags: , , , |

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.

  1. 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”
  2. 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.
  3. 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.


Free Website Hosting

Advertisement

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.