How to print block generated by views in the tpl file? I have a block with name: "Share Product"(block number 5) generated by my view with name: "main_product_deal". In this view i have 9 blocks.

Now in my .tpl file i need to print this block.

I have seen the function 'module_invoke' but not working.
My code is:

//On my tpl file
&lt;?php    
$block = module_invoke('views','block','view',"main_product_deal-block_5");
print $block['content'];
?&gt;


I working in drupal 6.x. Is it correct my code? Or exist another solution?
Note: I can not set the block in the administration, because I'm programming certain things in the tpl

Thanks :D
Have you tried views_embed_view()?
http://drupalcontrib.org/api/drupal/contributions!views!views.module/function/views_embed_view/6