web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is it possible to copy...
Power Apps
Unanswered

Is it possible to copy excel tables in power app text input field ?

(0) ShareShare
ReportReport
Posted on by 10

Requirement is to copy excel tables and paste it in text input field as table with borders. We trying to append the text input field to send email as body.

 

We tried in rich text editor, but it is not allowing the border lines while paste in power app. 

Categories:
I have the same question (0)
  • AndrewR1 Profile Picture
    1,572 Moderator on at

    You could try using the HTML text control and then using this create a table and input your data directly in to the HTML? for Example: 

    "<table>
     <tr>
     <th "&TDStlye&">Company</th>
     <th "&TDStlye&">Contact</th>
     <th "&TDStlye&">Country</th>
     </tr>
     <tr>
     <td "&TDStlye&">Alfreds Futterkiste</td>
     <td "&TDStlye&">Maria Anders</td>
     <td "&TDStlye&">Germany</td>
     </tr>
     <tr>
     <td "&TDStlye&">Centro comercial Moctezuma</td>
     <td "&TDStlye&">Francisco Chang</td>
     <td "&TDStlye&">Mexico</td>
     </tr>
     <tr>
     <td "&TDStlye&">Ernst Handel</td>
     <td "&TDStlye&">Roland Mendel</td>
     <td "&TDStlye&">Austria</td>
     </tr>
     <tr>
     <td "&TDStlye&">Island Trading</td>
     <td v>Helen Bennett</td>
     <td "&TDStlye&">UK</td>
     </tr>
     <tr>
     <td "&TDStlye&">Laughing Bacchus Winecellars</td>
     <td "&TDStlye&">Yoshi Tannamuri</td>
     <td "&TDStlye&">Canada</td>
     </tr>
     <tr>
     <td "&TDStlye&">Magazzini Alimentari Riuniti</td>
     <td "&TDStlye&">Giovanni Rovelli</td>
     <td "&TDStlye&">Italy</td>
     </tr>
    </table>"

    AndrewR1_0-1694775932078.png

     


    Where TDStlye = Onstart of the app 

    Set(TDStlye, "style='border: 1px solid black;'")

    I would recommend setting up variables for the Styles and then insetting them like above as then you have one place for and changes need otherwise yo would need to make the change across all the TDs

     

    You would have to tweak the styling to suit what you want but this is a good way of approaching this  as the html table can then be directly inserted in to the email. 

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

     

    Many Thanks
    Andrew




Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard