cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShadowTech
Post Prodigy
Post Prodigy

Printing specific fields in a gallery item to specified network printer

Hello,

 

Scenario:

 

I want a user to be able to click on an icon within a gallery item which will then print predefined fields within the gallery item. User must be able to choose a network printer to print to.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
MarkCDWNR
Frequent Visitor

Hi,
This may be able to be adapted for your requirements.
Add an icon to your gallery.

MarkCDWNR_0-1669677575087.png


Set the OnSelect of the icon in your gallery to 

Set(printstring,ThisItem.field1&", "&ThisItem.field2&", "&ThisItem.field3...)

this creates the variable with the required printable text.
Add a new screen from Scenarios (Portrait Print)

MarkCDWNR_2-1669677682277.png

 


Create an HtmlText field with default of printstring on the new screen

MarkCDWNR_1-1669677625256.png

 


and there you have it.

You could add formatting to the HtmlText or split it into several variables and create a one page report with your preferred layout.

The Print() function will open your normal print preview screen and your user can then select the network printer as normal.

Hope it helps

View solution in original post

1 REPLY 1
MarkCDWNR
Frequent Visitor

Hi,
This may be able to be adapted for your requirements.
Add an icon to your gallery.

MarkCDWNR_0-1669677575087.png


Set the OnSelect of the icon in your gallery to 

Set(printstring,ThisItem.field1&", "&ThisItem.field2&", "&ThisItem.field3...)

this creates the variable with the required printable text.
Add a new screen from Scenarios (Portrait Print)

MarkCDWNR_2-1669677682277.png

 


Create an HtmlText field with default of printstring on the new screen

MarkCDWNR_1-1669677625256.png

 


and there you have it.

You could add formatting to the HtmlText or split it into several variables and create a one page report with your preferred layout.

The Print() function will open your normal print preview screen and your user can then select the network printer as normal.

Hope it helps

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,837)