Hi, I recently started use the power apps with one project in mind.
The app has three screens, in the first you can visualize the items from a sharepoint list, which is the base of the whole project, you're able to change and insert new itens including one image per item.
At the second you can visualize a kind of preview of the pdf (that is where the problem starts), the structure is basically:
MainScreen1_1
|-ScreenContainer1_1
| |-TableNameContainer1_1 (here we have a little "tittle bar" with the "back" btn and the generate btn)
| | |-btnGerar_1 (the generate btn)
| |-BodyContainer1_1
| |-InfoContainer (the important info is here)
| |-HeaderRelatorio (shows the user, location and date
| |-MainInfoRelatorio
| |-PDFbody_1 (here the data is exibited, its a Vertical Gallery, inside of it we have the labels, with the data and the image)
When the btnGerar_1 is clicked, the app should creat a Pdf with the whole content from the Containers and Gallery, but he is doing a kind of print, it only gets the info that is actually being visualized on the screen
btnGerar_1 has the following code:
Set(varPDF; PDF(
InfoContainer; {
ExpandContainers: true;
Orientation: PaperOrientation.Landscape;
Size: PaperSize.A4;
Margin: "10pt, 25pt, 10pt, 25pt";
DPI: 100
}));;
Notify("O PDF foi gerado com sucesso!"; NotificationType.Success);;
Office365Outlook.SendEmailV2(
"email@example.com.br";
"PDF teste";
"Segue PDF Rel teste";{Attachments:
Table({Name:"PDFhealthCheck.pdf"; ContentBytes:varPDF
})});;
Notify("O Email com sucesso!"; NotificationType.Success);;
Can somebody help me? or give some ideia?
Tks,
DK.