Taken from http://drupal.org/node/42599

Thought it really needed to be here as well.

  // load a second copy of the view -- unfortunate but we don't have access
  // to the existing one.
  $view = views_get_view('VIEWNAME');

  // the array() indicates no arguments, which will provide the summary view.
  // We also don't want the pager for this view.
  print views_build_view('embed', $view, array(), false, false);