Print Screen in Power Apps - Print Form & Gallery
Вставка
- Опубліковано 23 лип 2024
- In this tutorial video, you will learn how to Print any screen in Power Apps using the Print() function. We will create a simple Print button and call the print function to print the entire PowerApps screen. We will also explore how to print all items in a gallery. We are provided with 2 new screen layouts to print PowerApps screen in Portrait and Landscape Mode. Note:
These features are currently available in preview environments with release cadence frequent in targeted tenants. I will update here as this feature becomes GA (generally available).
#PowerApps #Print #PrintForm
Table of Contents:
00:00 - Intro
00:21 - Portrait & Landscape Print Templates
00:51 - Print screen using the new print function
01:38 - Hide controls in Print Screen
02:41 - Print settings
04:00 - Print screen with gallery - add print button
06:09 - Print form in Power Apps
06:36 - Print all records in Gallery
11:54 - Print screen with multiple Power Apps controls
12:32 - Subscribe - Наука та технологія
This is so great! Can’t wait for it to roll out for everyone. Thank you for the “next level” tips you shared Reza. You pack so much great content into brief videos - amazing 🤩
Thanks for the amazing feedback. I always try to do something different.
Thanks, very good video
This is great! So good to see the use of expressions to this extent. Thank you, Reza for all your efforts to make this look so easy.
My pleasure!
This is going to help my users so much with their Galleries. One of the most asked for requests I get, and normally I output to CSV and let them deal with. Thanks for the preview
100% Agreed
That's fantastic!! Thank you! When I wrote my PowerApp last summer I was so sad that I couldn't do stuff like this, and now this tutorial is great, and so easy to understand! Thank you!
Thank you for watching. New features are being added to Power Apps at a rapid pace.
So excited!! I've been waiting for this so long and so have my clients! Thanks for a great video....so happy I'm subscribed!
Thanks for subbing!
Nice work Reza - lovely work-around for the full gallery printing!
Thank you so much 😀
Brilliant tutorial - excellent content as and when you need it, explained simply. As always from Reza!
Much appreciated!
Awesome video, thank you so much Reza, this is just what I have been looking for!
Glad to hear!
This feature was much awaited.. Thanks Reza for sharing.
My pleasure!
Your Channel made my life easier many times. Thanks so much. Great video and you explain in a very nice way in all of your videos.
So happy to hear that. Thanks so much for watching and liking the videos.
You're the man Reza! This was very helpful, thank you!!!
My pleasure!
Awesome! thank you for sharing. Can't wait for this feature to be rolled out
You are most welcome.
Thank you Reza! Very useful..I like the full gallery priniting approach 😊
You're welcome 😊
Great videos...
Thanks a TON............
by going through your videos my learning graph is going high n high speedily.
Keep making these videos.
A lot of learning always with respect to industry requirements with proper step by step explainations.👍🏼
Wow! I am so happy to hear such feedback.
I will keep going as long as my subscribers keep me going.
@@RezaDorrani definitely it will keep going up n up
@@raj7sam Thank You
Mate! you save me day. I being trying everything to get a nice report printing for our app. Cheers
Great to hear!
Amazing video.Amazing your style of teaching too.Will help us a lot.
It's my pleasure
Very nice feature and well explained. Thanks Reza
Thank You
Amazing!!! Thank you Reza.
Thanks for listening
Thanks for the amazing content!
Thanks for watching Shriya
Thanks @Reza, very informative content 👌
Glad to hear that! Thanks for watching.
Great - as always!!!
Thank You
Awesome Work @Reza Dorrani thanks for sharing your great knowledge
My pleasure
Another wonderful video - Thank you so much! I was going to ask a question about hiding things when printing.
When I use Not(Parent.Printing) on the visible property of a datacard - I get an error "The function 'Not' has some invalid arguments. However while I was typing up the question I had the idea to replace Parent with the screen name. eg: Not(EditScreen.Printing). And it Worked!
I thought I would still post it here in case anyone else had that issue.
Parent of a datacard is the form control. We will need reference of the Screen. For data cards, you would have to use Not(ScreeName.Printing)
Wow!! Currently I am using the html table and json parsing to get soft copy. This feature is going to help me a lot. Nicely explained as usual.
Thanks for watching and I do agree that this feature will help a lot.
Hi raza when I am writing the gallery hight formula it's getting circular referance error
@@RezaDorraniHi raza when I am writing the gallery hight formula it's getting circular referance error
@@khasimshaik2606 I have not come experienced this issue and hence not sure what the cause for it could be.
I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
@@RezaDorrani I resolved raza in tepmplate size property formula is there I remove the formula and passed static value then it works
Dude you are amazing thank you
Thanks Kyle
As always the best!
Thanks :)
Well done Reza. Thanks
You are most welcome
Great Reza, I can already propose future of the app to my users..
Glad to hear that
Excellent, thanks 🙏
You are welcome!
Great tutorial as always. I just tried in my tenant and it works like a charm.I would be great if you could email a pdf version as well
Print preview has option to save as pdf.
Excellent. Thanks.
Most welcome
Great feature. Great video.
Thanks for watching!
This is awesome Reza. I guess the next Print() tutorial should be about "Printing paginated galleries" :)
:)
Thanks for screen resize tip..👏
Welcome 😊
Many thanks for sharing - game changing feature, which I see is available to me... must buy more ink!.. :-)
Glad it was helpful!
Thank you for the preview Reza! Does this function support a direct printing experience without opening a dialog box?
Been waiting for a feature like this for warehouse label printing, but currently we had to switch a Power Automate Flow through PrintNode and print RAW data (ZPL) for a Zebra label printer but the benefit was that it allowed for a direct printing action on the OnSelect of a button trigger to this flow. You get a quick label printing set up without opening the dialog, or potentially connect it to other behavioural functions.
Thanks for watching.
It will launch the print preview.
Excellent work, as always. Happy to have gotten this already (I never get stuff that's not GA). Is there a way to make multiple pages print? If my gallery is more than what will fit on one page, it only prints the one page.
This feature currently does not support printing multiple pages.
Yes, if gallery has more records than page size, it will cut it off. Only single page printing supported in this version.
Thanks Amazing Reza
Most welcome 😊
That's the great function
It surely is
Great video Reza! Always learning from your video! just another question ,how do you make the text bigger when you hover it ?
Gallery has a property called Transition. Set that to Pop.
Hi Reza, thanks for this, this is truly helpful as I'm able to work this on my first form. Is there a way or do you have another video that will consolidate 3forms(3different list) into 1screen to print? Thanks
Print only supports single page printing. I do not have a video on the scenario mentioned. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hi Reza, your content is really great and helpful. Do you know if it's possible to use print programmatically in the background ?
my use case is I would like to generate a PDF copy of the power apps form as is and send it as attachement. I've seen your video about generating PDF and that will work but I will have to manually recreate the form HTML which I don't really want.
Check out the new pdf function - ua-cam.com/video/sK3WsjQiqcQ/v-deo.html
Sehr gut 😀
Danke
Very nice. Thanks for the very good summary and tips again.
Do you know if there will be a possibility to print several Screens at once? So the Print Dialog displays several pages for printing?
It is single page at this time.
Thank you Reza
Most welcome
Hi! This was a great help! Can you please also provide a guide about the more data topic you mentioned in the video?
Its been over a year I did this video. I don’t recollect which data topic. If there was a gallery or data source I connected, Im sure there will be videos I have done on them. You would need to check the videos on my channel.
Great content! Do you know if there are any possibility to print the records in different pages? Thank you so much in advance. This content helps a lot!
Print function only supports single page prints.
Hi Reza - this is awesome, I just implemented it and works fine while I was in Canvas apps mode. When I embed my Canvas app to a Model-driven app still works fine but when I hit my Print button, the Preview don't show up. Any work-around for this? Thanks a lot.
There are a lot of limitations. I believe this currently only works with Canvas Apps and that too on the browser only.
Thanks for the video. Is there a workaround to print (save as PDF) multiple screens together, and automatically merge into 1 single PDF?
Print function only supports single screen. For multiple screens you would have to call flow, generate html and then convert to pdf.
Hey Reza, great Tutorial! Especially the workaround regarding the limitation to print pages that exceed the active sceen. Have you figured out a method to implement this workaround for formviewer-outputs or just for galleries? Currently i am struggeling to make a formviewer with many output values able to be printed to multiple pages. Thanks!
I believe it is possible however we would be limited to the length of a single A4 page size since print only supports single page printing.
@@RezaDorrani Thanks for the quick response! Too bad, would still be an improvement, but i might just have to wait for Microsoft to natively implement this feature.
Hi Reza, this is amazing. I would love to see a tutorial on using this with command of print to PDF and then a flow to email it. Could this help bypass the HTML coding of the data? that would be a real game changer.
Surely would be a game changer. The current feature only allows to print.
Another great video Reza Thank you. I cant believe though MS does not support multiple page print what if i have a gallery with 100 lines and its a report that needs to be printed and signed is it impossible without using flow ?
Currently, flow is the better option for multi page data.
Hello Thanks for the guidelines, I couldn't find the gallery you placed in your application, as a table does not appear these functions. Could you explain me?
The gallery is connected to a SharePoint list. You can style the gallery the way you like.
Here is my video on gallery designs - ua-cam.com/video/bnC8u3gdWss/v-deo.html
Your videos are so great that I like them before I finish watching them.
I have a question.. is it possible to orient page to landscape even if the form is in portrait ?
Thanks for following my channel and I appreciate all the feedback.
You will have to modify the height and width of the page when in printing mode to orient page to landscape even if the form is in portrait.
Thanks Reza.. very informative video...
Could you suggest how to print in case we have selected Scrollable vertical Screen and we have different labels/controls plus gallery's in same screen?
print function only supports single page printing as of now.
I would have to try out scrollable vertical screen scenario to provide any guidance.
I will recommend you check on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Thanks Reza
Thanks for watching
Good day, Great video Reza!I am trying to build a similar application but I am a begginer. I was wondering if you have a video showing how to built a gallery with the template like this one with table (with few paramethers) and if the user want to see the complete form he can click and access. Do you have it?
I do have videos on the gallery.
Check ua-cam.com/video/bnC8u3gdWss/v-deo.html & ua-cam.com/video/aKsNOsGj72A/v-deo.html
Awesome Reza,
But i was wondering, can it also been done without having the top bar with the dropdown and labels ect... ?
Just only the data.
thank you
For that you would need to hide elements using the trick shown in video. Something related to Printing function or property.
Thanks Reza. How would you apply this to use something like a receipt printer or label printer (restricted to number on a screen).
I don't believe the print function has that capability.
I will recommend checking on the forums at powerusers.microsoft.com/
@@RezaDorrani Yes I was thinking maybe adjust screen size to print dimensions. Can only print one label but might work
@@latrobe15 Good idea. Give it a try.
Excellent tutorial, and it helped me a lot. Any upcoming video about dealing with longer lists, and pagination? Thanks.
Thanks.
Waiting for multi page support on print function. Once that comes in, I will plan a video on it.
@@RezaDorrani Thanks. I was actually looking into this tutorial: ua-cam.com/video/LJJlomo0Kcc/v-deo.html. It is not exactly the same, but it gave me some ideas.
I thought you wanted for printing. I do have a paginated gallery video (which supports delegation*) - ua-cam.com/video/aKsNOsGj72A/v-deo.html
Legend ❤️
Thanks :) but Im no legend
@Rezza Thanks this is exactly what I needed. It works beautifully in Edit Mode but as soon as I publish, the printing of AllItems stops working. My app is built and deployed through MS Teams
I have not experienced any issues with published version. Have not tested in Teams though so not sure.
Hi Reza,
Great video, Thank you very much. I tried to use this in a model driven app page and when I click on the Print button I get in the preview not only the page but also the navigation pane of my model driven app. Any idea to print only the page ?
Best regards
Youcef
Check documentation on print function. It has plenty of limitations. I believe the model-driven behavior is one of them.
Thanks for this great tutorial. Do you know how we can print several pages from the Gallery or Form? I´m creating some Audits and the form has more than one page (type A4), so I´m trying to find one way to print more than one page. I really appreciate your comments and support. Cheers / Magno
Currently, only single page printing is supported. A new "export to pdf" feature is in the works, which may help.
Thanks again for the videos, they are extremely helpful. How would this work for long forms? I have a couple of forms in display mode that I would like to print, but it only prints a portion of it. Not being a gallery, as far as I know, I can't use CountRows. Any suggestion?
Print() function only supports single page print for now.
@@RezaDorrani Actually I would like to do is to fit the form into a single page. I know that may be difficult, as some "scaling" might be needed. Thanks for your great work! It has been extremely helpful for folks like that are new to PowwerApps.
@@ernestomartinez6422 You are most welcome and thank you for watching my videos.
Thanks for this great video. any ideas why there is a margin appearing on the right when using the print function? I'm trying this for forms but when the print preview is shown, there is always a margin appearing on the right, though on my app the form is already stretched to the sides of the screen. also when not in preview mode, when I try to use the actual app, the said margin is even bigger :(
No idea about that
Hi Reza,
Thanks for this video. It was really very helpful. I just want to ask you one thing, I have a long summary page which I have to print using this Print() functionality. But the contents are going beyond the A4 size page. The new page is not getting added. The data is getting trimmed once it is exceeding A4 size page height. Is there any way to bring the entire content into the multiple pages in this Print() Functionality?
The print() function only supports single page printing.
If you need multiple, then check my video on exporting power apps to pdf.
Thanks Reza... I will definitely check that out....
Great video! Is there a way to trick this into "printing" to a really long page? IE - a page 10 times longer than normal...
print function only supports single page printing at the moment.
Hope this feature improves soon.
Great advice of how to make this work on scrollable galleries. I am trying though to get this to work with nested galleries that are inside a container. is this possible because so far i am failing...
I have not done this with nested galleries hence not sure. May be check on forums in case someone has done something similar
powerusers.microsoft.com
Great Video , like we fitted the gallery can similar thing be done for a view form?
Can be done. You will have to play with the dimensions of the form.
Genius.
😊
Thanks Reza, This is great video to me . You explained about gallery scroll, can you explained the form scroll
I do not have a specific video on this scenario.
I will add this request to my backlog but will need a lot more folks requesting this topic to give it a higher priority.
Meanwhile, I will recommend checking the forums at powerusers.microsoft.com/ in case someone has done something similar.
That was a lifesaver, thank you!
Around 11:30 you said that it will try to print it all in one page. Any advice on how to prevent this ? The settings on my printing meny don't give me an option.
To be clear, I'd like all records to be printed on as many pages as needed, to make things clean and visible.
Print only supports single page printing. There is currently no option for multi page printing
It is much needed feature.I implemented something similar but it is not working while I am customizing SharePoint list form and there I am using this Print() function.Any solution would be helpful.
I am getting this on browser console-
Ignored call to 'print()'. The document is sandboxed, and the 'allow-modals' keyword is not set
It has limitations. Only supported for standalone Apps run on the browser. Wait for official blog post.
Reza, how great you are to show whoever wanna do the same. Your video shows manual printing the power apps screen one by one. Can we create a button to print (let's say) 50 barcoded labels in bulk?
Thanks!
I have not tried with barcode labels in bulk so not sure.
Thanks for Great Video!!! but... I just tried it but Height did not expand completely on Preview when the button was pressed. Is this implementation still working?
Height would be max height of print preview page. Cannot be extended beyond that.
Awesome Content Reza Thanks for Sharing such as awesome content and experience, quick question I have done all of your instructions but whenever I get into the print screen I only see the first record, I have a gallery and a subgallery on it but only shows the first record any help would be appreciate it Thanks and Keep Rocking
Thanks.
I have not come across this issue & will have to look at your App in action to know the cause of your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, I have watched this video which is great and I have set up my app to print a full A4 page of records from my gallery - however, it looks great when I am editing, but once published onto our SharePoint site, it only prints the first couple of records and cuts off the page. Do you have any advice on what I am missing? I am really struggling to work this one out. Your help would be greatly appreciated 😊
I will have to look at your App in action to know the reason for your issue. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Hi Reza, have you tested this with nested galleries too? Would love to hear from you!
I have not.
Keep in mind that print() currently only supports single page print.
So nested galleries would surely go past the single page height scenario.
Wonderful! it is perfect in PowerApps. But still not working for SharePoint list yet, any idea? thanks!
This video is with SharePoint list
This is great thank you so much.
But I have one question
Can we print multiple pages from there or simply it is trying to fit all data on single page?
Because I tried with large records it simply tried to fit all records in single page and therefore font size is decreasing.
Also getting some issues with width. While increasing records they are shifting towards left😢
Print only supports single page printing as of now.
You cannot print multiple pages at once.
Hi Reza , Thankyou so much for this video this helps a lot , I have a doubt I am able to print whole gallery in Edit mode but in Actual mode its showing only Screen Visible Records while printing .
Most welcome.
I have not come across the mentioned issue and hence not sure what the reason for your issue is. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Awesome stuff Reza! I've got a landscape gallery that doesn't fit on a single page - how can I get it to print on multiple pages?
Print does not support multiple pages
Really nice Reza tks so much!
Its possivel to print and save as .jpg file and move to Sharepoint library ?
Welcome!
I am not aware if it’s possible to do this.
This is awesome, Reza! You are amazing !! I can’t wait to propose this approach to customers! This is gonna save a lot of efforts of converting the data into PDF.
Having said that, does this print preview would also allow to save the content as pdf like it does normally in Windows?
Print preview has option to save as pdf.
Thanks Reza for sharing this. This feature will really help us a lot.
I have tried this feature in a scrollable gallery, however this is not printing the whole screen. Have you got a chance to try this feature in scrollable screen ?
This does not work in a scrollable screen.
Is it possible to create a flow with Power Automate to create Pdf Files (from this Print Screen) and save them in a sharepoint folder?
The print dialog has an option to save as pdf. The print function can only print a single page.
If you have more data, you would need to use flow. Check ua-cam.com/video/Da4do2DxmJE/v-deo.html
Hey, I used it for a gallery control in an app. This works fine when I am in the editor but when in the play mode it doesn't print the entire gallery. Any fixes to this?
I have used the following formula:
Screen Height: If(Self.Printing,HeaderGallery_2.TemplateHeight*CountRows(HeaderGallery_2.AllItems),Max(App.Height, App.MinScreenHeight))
Prints the whole gallery when in editor but just the screen when in play mode.
This is a known issue with the print function. Hope it gets fixed soon.
Hello, thank you for this video. Does print option works from mobile app?
Currently, I believe it only works on desktop.
Thanks so much for this video. Great tip Not(Parent.Printing) I used it for PDF send by mail. Can a apply this formulas of height for PDF send by email?
Pdf function does not give any control over height.
So this is an effective way of generating reports and saving/printing them as PDFs. Please share with us if there is another way to that end. Many thanks our Reza!
Here is another ua-cam.com/video/Da4do2DxmJE/v-deo.html
Hi Reza, Thank you for sharing your great work. Following steps shown in video, it works only in preview mode. When app is published the gallery height does not adjust to the records. Could you please help.?
It is a bug with the print function.
Ran into this today! So close to a solution with this. Thanks for the video though, well done as usual.
Hi Reza, I still get the scroll bar experience while printing, what can i do?
this is the code to the screen Height
If(Self.Printing,Gallery1.TemplateHeight*CountRows(Gallery1.AllItems)+Gallery1.Y, Max(App.Height, App.MinScreenHeight))
and
gallery height
If(Parent.Printing, Self.TemplateHeight*CountRows(Gallery1.AllItems),705)
but the scroll bar still show when i print
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Reza, Is there a way to do the self.TemplateHeight on a Form with a scroll experience not a Gallery with a scroll? The same properties dont seem to apply to a Form
@@RezaDorrani Bummer so theres no way to Print a 3 page form using the PowerApps print function and manipulate the height like a gallery to print it all?
@@brandonmaynard115 No. Even the gallery idea is limited to 1 page size.
Hey :) can i print the formular too or only the gallery? Cause there is now Self.TemplateHeight in the Form Mode. And my Form mode is scrollable too.
Form control is different. I do not have a video reference for it. I will recommend checking on forums at powerusers.microsoft.com in case someone has done something similar
Thanks Reza!!
Is there a way to export the data to PPT file?
I am not sure about that.
I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
hi Reza, i have tried exactly same as your example. I am getting proper print format when in Edit Experience. But when i run the App in "Play" experience, the print format just breaks for gallery. Any reason why. I verified all the formula and it is perfect and i do not have any issues in printing it when i run the app in Edit Mode.
There has been a bug in the print function evaluation since this video was released. It works in edit experience but not in the play mode of the App. I have not found any workaround for it.
Hi Reza, Thanks for your answer. My gallery PDF doesn't show up, part of it didn't appear on the PDF screen, how do I generate two PDF screens? display the rest of the spreadsheet on a second screen?
PDF Gallery? You mean gallery items? Splitting gallery items across multiple screens and then printing them individually will require some logic to fit n number of items per screen.
I would have to recreate your scenario to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
Hey Reza, It seems this functionality is only available when you are in preview mode as soon as you publish it and try to print it the height extension works but content does not what I mean is the content only upto your current screen height will be available for printing but printing height do increase for the page. Is it a known issue or am Idoing something wrong?
It is a known issue with the print function.
Can you print screen as image and save to sharepoint document library ? many thanks Reza
Print gives option to save as pdf which can be saved to doc lib (all must be done manually).