为了账号安全,请及时绑定邮箱和手机立即绑定

输出来的图片变成乱码?

$objDrawing=new PHPExcel_Worksheet_Drawing();

$objDrawing->setPath($dir."/image/1.jpg");

$objDrawing->setWorksheet($objsheet);

$objWrite=PHPExcel_IOFactory::createWriter($objPHPExcel,'Excel5');

$objWrite->save('php://output');


正在回答

2 回答

https://m.vk.com/topic-210967729_48609810
https://m.vk.com/topic-210967729_48609813
https://m.vk.com/topic-210967729_48609817
https://m.vk.com/topic-210967729_48609820
https://m.vk.com/topic-210967729_48609823
https://m.vk.com/topic-210967729_48609826
https://m.vk.com/topic-210967729_48609828
https://m.vk.com/topic-210967729_48609832
https://m.vk.com/topic-210967729_48609835
https://m.vk.com/topic-210967729_48609837
https://m.vk.com/topic-210967729_48609838
https://m.vk.com/topic-210967729_48609842
https://m.vk.com/topic-210967729_48609844
https://m.vk.com/topic-210967729_48609846
https://m.vk.com/topic-210967729_48609849
https://m.vk.com/topic-210967729_48609853
https://m.vk.com/topic-210967729_48609857
https://m.vk.com/topic-210967729_48609864
https://m.vk.com/topic-210967729_48609868
https://m.vk.com/topic-210967729_48609872
https://m.vk.com/topic-210967729_48609875
https://m.vk.com/topic-210967729_48609880
https://m.vk.com/topic-210967729_48609884
https://m.vk.com/topic-210967729_48609887
https://m.vk.com/topic-210967729_48609891
https://m.vk.com/topic-210967729_48609894
https://m.vk.com/topic-210967729_48609899
https://m.vk.com/topic-210967729_48609903
https://m.vk.com/topic-210967729_48609907
https://m.vk.com/topic-210967729_48609914
https://m.vk.com/topic-210967729_48609919
https://m.vk.com/topic-210967729_48609923
https://m.vk.com/topic-210967729_48609930
https://m.vk.com/topic-210967729_48609935
https://m.vk.com/topic-210967729_48609940
https://m.vk.com/topic-210967729_48609945
https://m.vk.com/topic-210967729_48609949
https://m.vk.com/topic-210967729_48609953
https://m.vk.com/topic-210967729_48609958
https://m.vk.com/topic-210967729_48609964
https://m.vk.com/topic-210967729_48609970
https://m.vk.com/topic-210967729_48609975
https://m.vk.com/topic-210967729_48609979
https://m.vk.com/topic-210967729_48609983
https://m.vk.com/topic-210967729_48609988
https://m.vk.com/topic-210967729_48609993
https://m.vk.com/topic-210967729_48609998
https://m.vk.com/topic-210967729_48610003
https://m.vk.com/topic-210967729_48610005
https://m.vk.com/topic-210967729_48610008
https://m.vk.com/topic-210967729_48610014
https://m.vk.com/topic-210967729_48610018
https://m.vk.com/topic-210967729_48610025
https://m.vk.com/topic-210967729_48610030
https://m.vk.com/topic-210967729_48610034
https://m.vk.com/topic-210967729_48610037
https://m.vk.com/topic-210967729_48610042
https://m.vk.com/topic-210967729_48610046
https://m.vk.com/topic-210967729_48610052
https://m.vk.com/topic-210967729_48610056
https://m.vk.com/topic-210967729_48610059
https://m.vk.com/topic-210967729_48610065
https://m.vk.com/topic-210967729_48610073
https://m.vk.com/topic-210967729_48610079
https://m.vk.com/topic-210967729_48610083
https://m.vk.com/topic-210967729_48610087
https://m.vk.com/topic-210967729_48610091
https://m.vk.com/topic-210967729_48610094
https://m.vk.com/topic-210967729_48610097
https://m.vk.com/topic-210967729_48610100
https://m.vk.com/topic-210967729_48610106
https://m.vk.com/topic-210967729_48610113
https://m.vk.com/topic-210967729_48610116
https://m.vk.com/topic-210967729_48610120
https://m.vk.com/topic-210967729_48610125
https://m.vk.com/topic-210967729_48610131
https://m.vk.com/topic-210967729_48610135
https://m.vk.com/topic-210967729_48610138
https://m.vk.com/topic-210967729_48610142
https://m.vk.com/topic-210967729_48610146
https://m.vk.com/topic-210967729_48610153
https://m.vk.com/topic-210967729_48610158
https://m.vk.com/topic-210967729_48610161
https://m.vk.com/topic-210967729_48610164
https://m.vk.com/topic-210967729_48610171
https://m.vk.com/topic-210967729_48610177
https://m.vk.com/topic-210967729_48610182
https://m.vk.com/topic-210967729_48610188
https://m.vk.com/topic-210967729_48610191
https://m.vk.com/topic-210967729_48610194
https://m.vk.com/topic-210967729_48610198
https://m.vk.com/topic-210967729_48610201
https://m.vk.com/topic-210967729_48610206
https://m.vk.com/topic-210967729_48610211
https://m.vk.com/topic-210967729_48610215
https://m.vk.com/topic-210967729_48610219
https://m.vk.com/topic-210967729_48610222
https://m.vk.com/topic-210967729_48610227
https://m.vk.com/topic-210967729_48610233
https://m.vk.com/topic-210967729_48610238
https://m.vk.com/topic-210967729_48610240


0 回复 有任何疑惑可以回复我~

$objDrawing->setPath($dir."/image/1.jpg");这一行有问题

$objDrawing->setPath($dir."/image/"."1.jpg");这样改

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

输出来的图片变成乱码?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信