Hi
i used PDF function ,while extracting data ,it is not showing properly .i checked all properties in Inputbox all are aligned properly.
any idea what was the problem
below is code:
Office365Outlook.SendEmailV2(
User().Email,
DataCardValue18.Text ,
"Your :'" & DataCardValue18.Text & "' .pdf is attached",
{
From: "abc@gmail.com",
Attachments: Table(
{
ContentBytes: PDF(
'screen1',
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.A4,
DPI: 150,
ExpandContainers: true
}
),
Name:DataCardValue18.Text & " .data.pdf"
}
)
}
);
Maybe increase the Height and see if that helps. This is about the screen print rendering the same as the screen view. The PDF function is new and I suspect has some initial bugs.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Height 1.2
Font size 8
Top 5 bottom 5
Not showing 2 lines here
What is the Height of the Text box and the font size ? Can you also post a wider/higher screenshot.
Yes only input text box it fits perfectly in screen.
What is it you are printing and does it fit on the page ?
i have followed the video (2) Power Apps PDF Function Introduction | Create PDF Documents from Screens, Galleries & Containers - YouTube
to save screen as PDF and send mail.
but here it is printing only 1st line from text inputbox but not showing 2nd line in pdf print.
but when i preview the app ,2nd line is visible.
any idea how to fix this
i used same code of yours ,but same problem 2 row line it is not showing ..if i use print() it is showing 2nd row line also.
i used multi line in properties
Hi @venky232 ,
This blog of mine should assist your here.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional