在我使用的控制器中。
$this->load->library("PHPExcel");
它在本地机器上工作,但在主服务器上有错误...
Error : NetworkError: 500 Internal Server Error
Fatal error: Class 'PHPExcel_Shared_String' not found in Autoloader.php on line 36
问题会是什么?
感谢您在Adv. .
我在PHPExcel中得到以下错误:
Fatal error: Class 'PHPExcel' not found in [...]/PHPExcel/Reader/Excel5.php on line 587
这很奇怪,因为我还没有在网上搜索过它。PHPExcel在它的原始位置工作,该位置上传到一个HTTPS服务器(在那里一切正常),也就是我复制它的地方。
在PHPExcel中实际出现错误的那一行:
$this->_phpExcel = new PHPExcel;
如有任何想法或建议,我们将不胜感激,谢谢!
我想使用phpExcel,但在运行脚本时出现以下错误:
Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'Multibyte function overloading in PHP must be disabled for string functions (2).' in D:\Apache\htdocs\phpExcel\Classes\PHPExcel\Autoloader.php:34 Stack trace: #0 D:\Apache\htdocs\phpExcel\C
我正在使用PHPExcel为我的PHP应用程序生成一个列表。
//Nothing significant before if
if($type == "StudentList")
{
PHPExcel $ex = new PHPExcel();
$ex->getProperties()->setTitle("Student List.xlsx");
//rest of the code follows
在行PHPExcel $ex = new PHPExcel();时,我看到一个错误:unexpected T_VARIABLE。我已经包含了PHP
我使用PHPExcel来使用php生成xl。我不是加载xl工作表,而是使用
$phpExcel = new PHPExcel();
$phpExcel->getActiveSheet()->setTitle("My Sheet");
我想使用phpExcel使用$phpExcel->setActiveSheetIndexByName("2");设置活动工作表
但是我得到了一个错误的setActiveSheetIndexByName not defined function.
请帮帮忙
问题很简单:如何用PHP Excel加载这个Excel工作簿()而不抛出任何错误?
我使用以下代码(或多或少是文档中解释的mwe ):
$inputFileType = 'Excel2007';
$inputFileName = path_to/wftda-stats-book.xlsx';
//Create a new Reader of the type defined in $inputFileType
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
//Load $inputFi
我使用创建PowerPoint演示文稿,其中包含图表。我打算将图表数据编辑(与嵌入excel工作表)。
我刚到图书馆,还在努力弄清楚到底该怎么做。示例文件夹中有一些有用的示例,但是“示例8”(用PHPExcel绘制的图表)不起作用。
它给了我以下错误
PHPExcel has not been loaded. Include PHPExcel.php in your script,
e.g. require_once 'PHPExcel.php'.
我理解这可能意味着我还需要安装并将其与PhpPowerpoint集成。但我想不出怎么做到的。
到目前为止我尝试过的事物,
将
我正在尝试读取excel文件。但它显示了我的错误。我试过了。
set_include_path(get_include_path() . PATH_SEPARATOR . 'Classes/');
/** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php';
// Set the Excel file name and path
$inputFileName = 'uploads/aaa.xlsx'; // this is 2007 new format.
// Read your
我有一个excel文件,我想使用php excel将该文件转换为pdf。使用以下代码:
namespace frontend\controllers;
use PHPExcel;
use PHPExcel_IOFactory;
use PHPExcel_Settings;
use PHPExcel_Style_Alignment;
use yii\web\Controller;
class ExportsController extends Controller
{
public function actionIndex()
{
$inputFile = \Y