Questions tagged [phpoffice]

PHPOffice is an open-source collection of libraries used for reading and writing files in formats compatible with various "office" suites, such as Microsoft Office and OpenOffice.

242 questions
0
votes
1 answer

Insert Image PhpWord

I can add images using URL but not trying to get a local image file. $portada->addImage('earth.jpg'); Getting this error: Uncaught PHP Exception PhpOffice\PhpWord\Exception\InvalidImageException: "" at…
KaSkuLL
  • 531
  • 6
  • 27
0
votes
1 answer

PHPOffice/Common using PHPWord in codeigniter not found

They have updated the plugin and replace some shared class according to this: https://github.com/PHPOffice/PHPWord/releases and upon upgrading the phpword, I encountered this error. A PHP Error was encountered Severity: Error Message: Class…
woninana
  • 3,409
  • 9
  • 42
  • 66
0
votes
1 answer

if packagist says master build failing, If I install package with composer, will it work?

I'm kinda new to using composer (but I think it is awesome) so please pardon the noob question. Folks are requesting exports fancier than csv so I thought I'd install phpOffice excel using composer. But, the master is 'build failing' and the…
Mike Volmar
  • 1,927
  • 1
  • 22
  • 31
0
votes
1 answer

Generate PHPExcel Laravel Excel with many to many relations

I am working on an exam/quiz app and it creates tests/quizzes for users and now I must create a set of spreadsheets that contain data such as the present students in a given exam, grades charts and so on. Bu so far all I managed to create is a sheet…
Marco Santana
  • 121
  • 1
  • 13
0
votes
1 answer

PHPOffice/PHPExcel PHPExcel_Style_NumberFormat FORMAT_CURRENCY_USD_SIMPLE correct way to use this.

I am trying to use FORMAT_CURRENCY_USD_SIMPLE . I am able to use dates, integer and general succefully. But i am having problem with this. My Cell content can be like this. Here you can see, I am using "$75.00" is my cell content. I am putting $…
Jaimin MosLake
  • 655
  • 1
  • 12
  • 30
0
votes
1 answer

How can I type from right to left with phpword

I need to write in word document in right to left direction .. any help? I've uploaded the file "phpword" from http://phpword.codeplex.com/SourceControl/list/changesets?branch=default
user3474011
0
votes
1 answer

Creating pdf from docx rendering library issue

If you know smth about this theme please leave a comment. I am trying to get pdf file from docx using phpoffice/word. But i cant make it real because for whole day testing i get only this error: PHP Fatal error: Uncaught exception…
Kirill
  • 11
  • 2
  • 4
0
votes
1 answer

laravel excel, is there a better way than a thorough mime type check to verify an uploaded file is in fact a spreadsheet?

I have a tool which allows a user to upload a spreadsheet, and then I parse the spreadsheet with Laravel-Excel. My issue is, how can I check that the file is a valid excel file before attempting to parse it? I looked in the PHPOffice/Laravel-Excel…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
0
votes
1 answer

Shade the area below line chart - PHPpresenatation

I am making the PPT using PHPpresentation library. In that I have create the line chart, but am unable to color the area below the line. this i how it is coming. but i want something like this Thanks in advance.
0
votes
0 answers

Couldn't able to generate PDF from .docx using PHPWord

I'm using PDFWord for generating a dynamic document. The .docx and .html is generating perfectly but I'm not able to generate .pdf (I've tried both DomPDF and TCPDF). Here is my code sample: // Saving the document as OOXML file... $objWriter =…
-1
votes
0 answers

in localhost xlsx export is working good but in hosting(using Hostinger) shows class not fount class already exist in ci3

An uncaught Exception was encountered Type: Error Message: Class "PhpOffice\PhpSpreadsheet\Spreadsheet" not found Filename: /home/u764710592/domains/pemserp.com/public_html/sandbox/application/controllers/Reports.php Line Number: 77 Backtrace: File:…
-1
votes
0 answers

Export Excel file cannot open

Exported file cannot open it says file format or file extension is not valid
-1
votes
3 answers

PHP: print for loop index to data size dynamic by $i value

Please how can i achieve something like this: A-FIRSTNAME B-LASTNAME C-MIDDLENAME D-PHONE her is my code
Michael Codes
  • 135
  • 1
  • 10
-1
votes
1 answer

Why am i getting empty page on PHPword while using HTMLtoOpenXML?

I am trying to make a website witch people submits a form. One part of this form is using ckeditor to get input from user. Becasuse of data that is coming from ckeditor is html you need to turn html to openxml to use tamplatingprocessor of phpword…
-1
votes
1 answer

How can I read .doc file and get particular words from it in php

I want to read a doc file and get some result from it. for example: If I have a file - file.doc and it has something like Resume Name: john carter Address: USA I am working as a php developer Then I want something like: array( 'name' => john…
Dharmesh patel
  • 654
  • 1
  • 12
  • 23
1 2 3
16
17