Forum


Replies: 7   Views: 3736
Createliststyle inside a table
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by webdzinez  · 15-10-2013 - 23:03

I am creating a list and adding it as a ml fragment like so:



$myCarsList = $docx->addList($carsList, array('rawWordML' => true, 'val' => 1, 'font' => 'Times New Roman'));



$entityfragments[] = $docx->createWordMLFragment(array($myCarsList));



 



And displaying this fragment in a table. How do I use Createliststyle to provide a custom style to the list I am creating?



 



Thanks


Posted by webdzinez  · 15-10-2013 - 23:41

$listStype [0] = array('left'=>390, 'type'=>'bullet', 'hanging'=>150);

        $docx->createListStyle('mycars', $listStype);



$myCarsList = $docx->addList($carsList, array('rawWordML' => true, 'val' => 'mycars', 'font' => 'Times New Roman'));



 



This works, however the bullets are very small 


Posted by jorgelj  · 16-10-2013 - 09:08

Hello,



You can create a DOCX with the styles and import them using importStyles and importSingleNumbering methods.



Regards.


Posted by webdzinez  · 16-10-2013 - 13:43

Thanks for the answer. Does that mean that this is not possible with createStyle method, especially if we need larger bullet size or different bullet shape (square e.g.). Just wanted to understand the ability better so that can make the other method default. 



 



Thanks


Posted by jorgelj  · 17-10-2013 - 09:35

Hello,



Could you attach or send the document?. We'd like to test it to fix any issue.



Regards.


Posted by webdzinez  · 18-10-2013 - 16:50

Hi sent the documents to the support address i had. please confirm you have received them.



 



Thanks


Posted by jorgelj  · 21-10-2013 - 09:43

Hello,



We have sent you an email.



Regards.