PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.16k stars 2.68k forks source link

Class 'PhpOffice\Common\Text' not found #1126

Closed avinash1785 closed 6 years ago

avinash1785 commented 6 years ago

I am getting below mentioned error:

Fatal error: Class 'PhpOffice\Common\Text' not found in E:\xampp\htdocs\PHPWord-develop\src\PhpWord\Style\AbstractStyle.php on line 164

I have also installed composer after that I am getting this error.

Thanks, Avinash

troosan commented 6 years ago

if you installed using composer, you should have in your vendor directory phpoffice/common/... which contains this class

avinash1785 commented 6 years ago

Thank you for your help, Could you please let me know with an example how to repeat the first row of the table on each page of a Word document. I have tried with the below mentioned option, but table header is not repeating on the second page.

$fancyTableFirstRowStyle = array('borderBottomSize' => 18, 'borderBottomColor' => '0000FF', 'bgColor' => '66BBFF', 'tblHeader' => true);

Thank you, Avinash

troosan commented 6 years ago

@avinash1785 please do not hijack a thread to ask all your questions. Even better, ask you question on StackOverflow, you'll have a lot more people reading your question.

As far as I read the documentation it's indeed with tblHeader that you repeat a row on each page. I have not tested it myself, please ask on SOF with a more complete code sample.

javanmohamad commented 6 years ago

How can I use Asian characters with this class

juanjulio21 commented 4 years ago

Good evening that error comes out when I am integrating with codeigniter3

seanhuxioaowei commented 3 years ago

do we have another way to get the PhpOffice/Common. which contain the Text Class ?