Could I use "window.print()" after template show data is ready?

I would like to show the docs on the template and auto printing with window.print()

<template name="hello">
   {{data}}
</template>

Template.hello.helpers({
  data: function(){
      // do something
      return myData;
  }
})

Could I use window.print() with this example?
Please help me.