This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RevisionUnidadComponent.ngfactory.js:673 ERROR Error: Cannot find control with name: 'proyecto_practica.pdf' | |
at _throwError (vendor.js:62846) | |
at setUpControl (vendor.js:62754) | |
at FormGroupDirective.push../node_modules/@angular/forms/fesm5/forms.js.FormGroupDirective.addControl (vendor.js:65983) | |
at FormControlName.push../node_modules/@angular/forms/fesm5/forms.js.FormControlName._setUpControl (vendor.js:66584) | |
at FormControlName.push../node_modules/@angular/forms/fesm5/forms.js.FormControlName.ngOnChanges (vendor.js:66505) | |
at checkAndUpdateDirectiveInline (vendor.js:58218) | |
at checkAndUpdateNodeInline (vendor.js:59486) | |
at checkAndUpdateNode (vendor.js:59448) | |
at debugCheckAndUpdateNode (vendor.js:60082) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": | |
[ | |
{ | |
"data":{ | |
"name":"Documents", | |
"size":"75kb", | |
"type":"Folder" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.sizeFont{ | |
size: 15px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getPDF = async (template, data, helpers = '', header = '', footer = '') => { | |
try { | |
return client.render({ | |
template: { | |
content: template, | |
recipe: 'phantom-pdf', | |
engine: 'handlebars', | |
helpers: helpers, | |
phantom: { | |
header: header, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getPDF = async (template, data, helpers = '', header = '', footer = '') => { | |
try { | |
return client.render({ | |
template: { | |
content: template, | |
recipe: 'phantom-pdf', | |
engine: 'handlebars', | |
helpers: helpers, | |
phantom: { | |
header: header, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getXLSX = async (template, data, helpers = '') => { | |
try { | |
console.log(data) | |
return client.render({ | |
template: { | |
content: template, | |
recipe: 'html-to-xlsx',//'xlsx',// | |
engine: 'handlebars', | |
helpers: helpers, | |
}, |