简体   繁体   中英

Change font size in php csv output

I have no idea how to change the font size for a specific code, since it has no echo etc. This is a module in Prestashop 1.5 and its php. All text in the code below should be font size 18, currently its 10..

    $addressdata .= ''.chr(13).chr(13);
        $addressdata .= utf8_encode((strlen(str_replace('-','',$address->company))>0 ? $address->company.chr(13) : ''));
        $addressdata .= utf8_encode($address->firstname.' '.$address->lastname.chr(13));
        $addressdata .= utf8_encode($address->address1.chr(13));
        $addressdata .= utf8_encode((strlen(str_replace('-','',$address->address2))>0 ? $address->address2.chr(13) : ''));
        $addressdata .= utf8_encode($address->postcode.' '.$address->city.chr(13));
        $addressdata .= $this->getCountryName($address->id_country, $order->id_lang).chr(13).chr(13);
        $addressdata .= ''.chr(13).chr(13);

You can not do formatting with CSV (font-size, color, etc ...). If you want to do the formatting you can use this biletec to generate XLS https://phpexcel.codeplex.com/

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM