Skip to content

Inventory system doesn't create the word document #1403

Closed
@carlosvr90

Description

@carlosvr90

I`m trying to make this system to make a word archive and save it.. but at first it said that string was a special character.. so i just change it from:

"use PhpOffice\PhpWord\Shared\String;"
to "use PhpOffice\PhpWord\Shared\String as POString;"

and i changed it too when the string was.. so i press to get the word file but it doesn't work.. just throw me this:

Fatal error: Uncaught Error: Class 'PhpOffice\PhpWord\Shared\String' not found in C:\xampp\htdocs\texmom\PhpWord\Element\Text.php:139 Stack trace: #0 C:\xampp\htdocs\texmom\PhpWord\Element\Text.php(59): PhpOffice\PhpWord\Element\Text->setText('PROVEEDORES') #1 [internal function]: PhpOffice\PhpWord\Element\Text->__construct('PROVEEDORES', Array) #2 C:\xampp\htdocs\texmom\PhpWord\Element\AbstractContainer.php(145): ReflectionClass->newInstanceArgs(Array) #3 [internal function]: PhpOffice\PhpWord\Element\AbstractContainer->addElement('Text', 'PROVEEDORES', Array) #4 C:\xampp\htdocs\texmom\PhpWord\Element\AbstractContainer.php(112): call_user_func_array(Array, Array) #5 C:\xampp\htdocs\texmom\report\providers-word.php(16): PhpOffice\PhpWord\Element\AbstractContainer->__call('addtext', Array) #6 {main} thrown in C:\xampp\htdocs\texmom\PhpWord\Element\Text.php on line 139

(proveedores means providers in spanish) just a name.

any clue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions