Exporting to excell

QuestionsExporting to excell
David Mills asked 10 years ago

I am grtting this error

Fatal error: Cannot use object of type jqgrid as array in C:xampphtdocslifestreamfamily_grid.php on line 151

this code is causing it…

// export XLS file
// export to excel parameters – range could be "all" or "filtered"
$grid["export"] = array("format"=>"xls",
"filename"=>"my-file",
"heading"=>"Export to Excel Test",
"range"=>"filtered");

I copied this froma demo.
what am I doing wrong,?

1 Answers
Abu Ghufran answered 10 years ago

Looks like you are referring wrong variable in setting options.

If $grid = new jqgrid(), then you should use some other var for set_options param. $grid->set_options( …. );

Your Answer

9 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?