php - phpexcel setprintara not working -


i need print selected area pdf. used

$phpexcelobj->getactivesheet()->getpagesetup()->setprintarea('f1:o56');

for setting print area. not working me. entire worksheet pdf.

that's because setprintarea() doesn't think.

when excel workbook opened in ms excel, it's possible print specified area of worksheet rather whole worksheet specifying print area. that's purpose of setprintarea() method, define that. applies when file saved excel file (excel5 or excel2007 writers), , opened again in ms excel.

it not apply other writers. not tell phpexcel save part of worksheet when using writer. writers save whole worksheet defined in phpexcel object, whether excel formats, or csv or html or pdf. if want save part of worksheet, you'll need remove parts of sheet don't want deleting rows , columns.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -