Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import { Excel } from 'exceljs';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss']
- })
- export class AppComponent implements OnInit {
- ngOnInit(): void {
- this.runExcel();
- }
- title = 'exceljs0test';
- async runExcel() {
- // read from a file
- let workbook = new Excel.Workbook();
- let ws = await workbook.csv.readFile('ff');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment