Excuse me @bjrmatos, could you example the embed Excel render
on iframe/web component
?
I do need this option
T
thearabbit
@thearabbit
0
Reputation
6
Posts
1114
Profile views
0
Followers
0
Following
Posts made by thearabbit
-
RE: How to render api `Excel, PDF and Html` on `Meteor + Vue`?
-
RE: How to render api `Excel, PDF and Html` on `Meteor + Vue`?
Thanks for your reply, waiting you...
-
RE: jsreport-client dosn't work on server (TypeError: Cannot read property 'then' of undefined)
What it difference
jsreport-browser-client-dist
? -
RE: How to render api `Excel, PDF and Html` on `Meteor + Vue`?
Now work find for
HTML and PDF
when i usedjsreport-browser-client-dist
But don't work with
Excel View
-
How to render api `Excel, PDF and Html` on `Meteor + Vue`?
I abse on
Meteor + Vue
.
I don't understand render reportapi
such asexcel, pdf, html
My code:- Vue Template
<template> <div> <p> <el-button @click="getReport">Get Report</el-button> </p> <div> {{ reportRender }} </div> </div> </template> -------- methods: { getReport() { axios .get('/api/jsreport') .then(function(response) { this.reportRender = response }) .catch(function(error) { console.log(error) }) }, },
- Server
import { WebApp } from 'meteor/webapp' import express from 'express' import request from 'request' const appEx = express() appEx.get('/api/jsreport', (req, res) => { let body = { template: { shortid: 'SJtztNP4Q', recipe: 'chrome-pdf', }, options: { 'Content-Disposition': 'attachment; filename=myreport.pdf', }, } let options = { uri: 'http://localhost:5488/api/report', method: 'POST', json: body, } request(options).pipe(res) }) WebApp.connectHandlers.use(appEx)
Please help me