Skip to content

Instantly share code, notes, and snippets.

View pablonarvaez20152016's full-sized avatar

Pablo Francisco Narvaez T pablonarvaez20152016

View GitHub Profile
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)
{
"data":
[
{
"data":{
"name":"Documents",
"size":"75kb",
"type":"Folder"
},
<!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;
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,
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,
@pablonarvaez20152016
pablonarvaez20152016 / funcionesReporte.js
Last active September 17, 2020 20:00
The image uploaded to excel with the recipe htmltoxlsx is not visible, while the recipe xlsx works correct
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,
},