Users frequently request to produce reports that include images stored in a SharePoint libary. I also need to be able to produce a PDF report from grouped data i.e. nested galleries.
Survey app scenario:
User completes a survey that consists of multiple observations for a single asset. Several images are uploaded per observation.
They would like to click a button to email or print a report with this data. Neither the PDF or Print functions are able to do this.
Asset Number 1
- Observation 1
- image 1
- image 2
-Observation 2
- image 1
Asset Number 2
- Observation 1
- image 1
-Observation 2
- image 1
-Observation 3
- image 1
- image 2
- image 3
I made a simple test to see if I could display a gallery containing images sourced from a SharePoint library in the PDF viewer. I also sent the PDF output as an email. In both cases the images don't appear.
The image control in the gallery uses ThisItem.Thumbnail.Medium. Below is a screenshot showing the PDF viewer with the output of the PDF function and no images. If I change the image source to an image stored in the app it works.
I don't know if I'm doing something wrong here but this seems like an obvious omission.
btnPDF.OnSelect
Set(
gblPDFOutput,
PDF(
Gallery1,
{ExpandContainers: true}
)
);
Office365Outlook.SendEmailV2(
User().Email,
"PDF",
"PDF from Power Apps",
{
Attachments: Table(
{
Name: "Test.pdf",
ContentBytes: gblPDFOutput
}
)
}
)
@Rosrivera , that's correct. I have now built a Flow that does this by getting the base64 of the images and building a HTML table of the data which is emailed to the client for printing.
Unfortunately there's no free method that I know of to produce a PDF containing lots of images. The OneDrive conversion is limited to 2MB which is rapidly exceeded when adding images.
It would be awesome if we could produce multi page PDFs containing images direct from Power Apps. Ideally utilising nested galleries.
I think it can be posible only with automate.
Stay up to date on forum activity by subscribing.
WarrenBelz
770
Most Valuable Professional
stampcoin
494
MS.Ragavendar
399