Phpexcel exported Excel parts save download related issues

Source: Internet
Author: User
Phpexcel exported Excel parts save download problems
Phpexcel the exported Excel file automatically saves the project folder, how can the exported file be downloaded to the specified location through the Web page

------Solution--------------------
There's no way to do that. The server cannot proactively download the browser, nor can it specify a location to save.
Users can only access this Excel file, and manually specify a save location
------Solution--------------------
$objWriter->save (' php://output '); to the browser

$objWriter->save ($filename);//This will be saved directly to the folder without prompting for download.

So you have to choose the first way.
------Solution--------------------
Http://www.henshiyong.com/archives/312.html
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.