I am trying to export the screen into A4 Size pdf via email, its working fine - it exports into pdf.
BUT the size is disturbed into 2 pages and even the font is not good looking.
My screen
On button select,I am using the below code :
Office365Outlook.SendEmailV2(
User().Email,
"Subject to be here PowerApp of serial " & FindSerialNo.Text,
"Email to be here of powerapp",
{
Attachments: Table(
{
Name: "ServiceDataRepo.pdf",
ContentBytes: PDF(A4pdf,{Size:PaperSize.A4,Margin:"0.25inch 0.25inch 0.25inch 0.25inch",Orientation:PaperOrientation.Portrait,ExpandContainers:true})
}
)
}
)
The result in the acrobat pdf viewer is as below, it as broken into 2 pages as well the font is disturbed:
Please guide, how to achieve the requirement,
Note : I tried, all the put into a container and tried to change the size of pixel to match with A4size , but the disadvantage in the container, once you insert any thing inside the container, it will not allow you to move, it keep next to next, I mean you cannot break the container controller.
Note2 : This test I am doing, if successful, I want to make a edit form, data to written and retrieved via patch and then user can export as a A4 size.
once you insert any thing inside the container, it will not allow you to move-- Have you tried using a normal container instead of a Horizontal or vertical container ?
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional