~html
click printSelectedInvoices();
~typescript
import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
printSelectedInvoices(){
invoiceArray.forEach((invoice) => {
var invoicePdf = {
// DESIGN
};
pdfMake.createPdf(invoicePdf).open({});
})
}
"Currently, this is open the invoice count tabs and can print individual. this should be one print dialog and print all invoices. Does anyone have any idea how to do this? please help me."