Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not merging cell in excel using php #81

Open
rahul1303 opened this issue Jul 24, 2015 · 0 comments
Open

not merging cell in excel using php #81

rahul1303 opened this issue Jul 24, 2015 · 0 comments

Comments

@rahul1303
Copy link

i am using PHPExcel class to merge cell in .csv excel file. My code is running without any error but it is not merging my cell in excel file. I have read all the solution on google.,but still unable to figure it out whats wrong in it.Below is my code . I am working over xampp.


getActiveSheet()->mergeCells('A18:E22'); //code to merge the cells if(strtolower(end($chk_ext))=="csv") //this if loop will save some data in excel file { $fp=fopen($fname, "w"); $seperator=""; $comma=""; $seperator ="1,2,3,4,5,6"; $seperator .="\n"; $value12345=fputcsv($fp,explode(',',$seperator)); //insert data in excel file } fclose($fp); //close file }

?>


        <br/>
        <a href="<?php echo $fname; ?>" target="_blank">Download csv file</a>
        <?php
    }
    else
    {
        echo "value not supported";
    }

}
?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant