I am using laravel 9 and using Maatwebsite. I want to make watermark in excel. Here I did
class myExport implements FromView, WithEvents ,WithDrawings
{
public function view(): View
{
return view('report');
}
public function drawings()
{
$drawing = new Drawing();
$drawing->setName('Background Text');
$drawing->setDescription('This text ');
$drawing->setPath(public_path('assets/img/draft.png'));
$drawing->setCoordinates('A1');
return [$drawing];
}
But this image not appears in background. Also it will be ok if I set any text
Thanks in advance.............
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire