Can't Display File In Content Area of Page

Topics: User Forum
Jul 9, 2013 at 9:29 PM
PHPExcel 1.7.9
PHP version 5.3.21

I'm able to display .xlsx files in the browser which was my intent but the webpage design is completely removed when they are displayed. Is there a way to display the excel file within the content area of a page? Here is my code:
$matches = glob("path/to/file/File_Name*");
if ($matches){
    $data = ($matches[0]);
} else {
echo "The system could not find the file specified.";

// Create new PHPExcel object
$objPHPExcel = new PHPExcel();

    $inputFileType = 'Excel2007';
    $inputFileName = $data;
    $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
    $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'HTML');