word generate test

This commit is contained in:
merdan 2022-09-16 16:15:06 +05:00
parent 0f7c1cdaf3
commit 1701b0b737
4 changed files with 54 additions and 7 deletions

View File

@ -183,7 +183,14 @@ public function upload(DocumentUploadRequest $request,$attachment_id)
}
public function downloadQuestionaire(){
//todo generate pdf
$headers = [
"Content-type"=>"text/html",
"Content-Disposition"=>"attachment;Filename=myGeneratefile.doc"
];
$content = view('oprosniki.business')->render();
return \Response::make($content,200, $headers);
}
}

View File

@ -0,0 +1,20 @@
<html>
<head><meta charset="utf-8"></head>
<body>
<p>
</p>
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
<table>
<tbody border="1">
<tr> TETS </tr>
</tbody>
</table>
</body>
</html>

View File

@ -0,0 +1,13 @@
<html>
<head><meta charset="utf-8"></head>
<body>
<p>My Blog Laravel 7 generate word document from html Example - Nicesnippets.com</p>
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
</body>
</html>

View File

@ -27,17 +27,24 @@
$content = '<html>
<head><meta charset="utf-8"></head>
<head><meta charset="utf-8"></head>
<body>
<body>
<p>My Blog Laravel 7 generate word document from html Example - Nicesnippets.com</p>
<p>
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
</p>
</body>
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
<table>
<tbody border="1">
<tr> TETS </tr>
</tbody>
</table>
</html>';
</body>
</html>';