Skip to main content

[Software Review] Granular Print Control with Internet Explorer

[Software Review] Granular Print Control with Internet Explorer


Most of us developing web applications and JavaScript would have, in one time or another used window.print() to print the active document. And for most of the simple applications and plain vanilla documents, this would actually fit the needs excellently. However, there are a few business requirements that might dictate a more granular control over the printing, nature of printing (Unattended -- No Prompting), Custom Stylesheets, Nonstandard documents (like PDF).

When the need of accomodating such business requirements knock our door, I would say, there is neat little ActiveX From Meadco which answers the queries.

The Inspiration and Problem Requirements

The inspiration to dig deep into my memory on my use of MeadCo ScriptX Basic somewhere around in 2003 for a Fi-Serv group company based in California was a few queries last week in our forums about 'Unattended Printing'. By default, Internet Explorer would mandatorily throw open the Print Dialog and the user has to give his consent of sending the document to the printer. But when it comes to business applications like Banking, Library Management system etc, the user would be really irritiated to keep clicking OK button for each and every print request that he is enqueueing to the device.

The next salient example would be printing non-standard documents like PDF or Word. Currently, there is only option left. Link to the document and guide the user that he has to choose 'Print' from the document helpers' functionality. But with ScriptX, it provides a direct 'Print' command for such documents too. Of course, it internally downloads the document, calls the 'Print' function of the helper application, on behalf of us.

The Power-Features of ScriptX

A few of the features have been based from ScriptX Webpage here(

  1. Enabling ScriptX in our web applications is as easy as telling 1, 2, 3. Meadco provides a simple latest CAB file for free (Basic).
  2. Support for IE 7 Templates. Internet Explorer Print Templates had been one another way to circumvent the limitations of window.print(). But without ScriptX, using the Templates directly and manipulating them would mean a little tricky whirlpool.
  3. Support for Framed Pages
  4. Optional Preview Support
  5. Unattended Printing
If you are a tech-savvy user wanting more out of ScriptX, some of the advanced functions might be wanting for you. However, you may need to purchase appropriate license for the same.
  1. Queued Printing
  2. BatchMode
  3. Zoom Facility
  4. Non Standard documents like Document and PDF

I am sure this would be a quick eye-opener note for the programmers in getting a more powerful print solutions for thier web applications. It also provides a cleaner wrapper on Print Templates besides unlearning the retired Web Browser object which is not considered safe post Windows XP Service Pack 2.


Popular posts from this blog

Google NCR

Google NCRMost of you would be knowing about this trick in navigating to Google generic website. But I just came to know only a few days before and hence thought I would share the information with others too.
Whenever you type, Google automatically tries to redirect you to your country-specific website. For me, it always redirects to (Google India). But when we specifically want to navigate to Google Generic website for some reason, there are two ways to accomplish the same.Click the 'Go to' link at the bottom of the webpage that is displayed from prevent this redundant click, you can opt to type which would prevent the redirect from happening. The NCR stands for No Country Redirect. There is a brief discussion about this NCR over this forum.You may also like to check out Google help documentation regarding the country redirections from here.

Elegant 'MailTo' Replacement

Elegant 'MailTo' Replacement

MailTo tags have become a bane to all websites since spammers run spam robots which crawl the web to capture the email addresses, add to their catalogs and send spams to them. I just thought of sharing with others a simple JavaScript function which would trigger open the default email client instead of having mailto: embedded in the HTML Page.

Just have the following function included in your webpage

<script language='Javascript'>
function WriteMailTo(user,domain)
location.replace ('mailto:'+user+'@'+domain);

And whereever you want to invoke the mailto, just called WriteMailTo('user','') and the user's default email client should be launching (if configured) without any hassles.

Contacts import utility from Web2Project to Addressbook

I have been using Web2Project for planning my personal and professional tasks for a few years now. Now I have bifurcated the tools into the following:

Project PierAddress Book The only issue I had was to import my addressbook from Web2Project to AB. PP is a different animal. It does not serve as a comprehensive candidate for addressbook and hence I needed this bifurcation. 
I wrote up a following simple script to import the contacts to AB. The pre-requisite for this script is to hop on to PhpMyAdmin, export the contacts as a PHP array and then  modify the path in our import script to whatever you downloaded from PhpMyAdmin.
Our import script would explode the entries as SQL scripts into the browser window. Copy them and execute into PhpMyAdmin AB database to have the contacts imported.

Script URL: