cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drnemer
Helper I
Helper I

Extremely frustrated that i can't get my HTML table border to work!

So here is a pic of my canvas app.  Employees are creating a letter to send to clients.  The table is a checklist of what we need from our clients

 

after populating.PNG

I want to have the table borders collapse and be able to edit the table, but honestly I do not know how to do it without CSS.  

 

And I am especially confused as to why when i download to HTML and then convert to PDF that the whole image completely breaks down.  (see attachment)

 

this is my code. 

 

"<!DOCTYPE html>
<html>
<body>
<header><center><img src=https://i.imgur.com/kbBcrTP.png, width=160 height=100</center></header>
<p style='text-align:right'><font size=0.8 face=arial color=black>" & Today() & "</p>
<address><font size=0.8 face=arial color=black>
" & 'HOH Name'.Text & "<br> 
" & 'HOH Address'.Text & "<br>
" & 'HOH City, State ZIP'.Text & "<br>
</address>
<p><b><u><center><font size=0.8 face=arial color=black>Document Request Letter</center></u></b></p>

<p><font size=0.8 face=arial color=black>Dear Participant:</p>

<p><font size=0.8 face=arial color=black>Metro Housing|Boston is required to verify the incomes, expenses, and other information of applicants/participants for eligibility and continued occupancy in the rental assistance program.  In accordance with this obligation, you are required to supply the information requested below.</p> 

<p><font size=0.8 face=arial color=black>You must send or bring the requested documents/information to <u>1411 Tremont St, Boston, MA 02120</u>. The office is open daily from 8:45 AM to 5 PM. Please be aware that failure to submit the necessary documentation may result in the termination of your participation in the rental assistance program. If we do not receive the documents <b><u><font size=0.8 face=arial color=black>" & 'Due Date'.SelectedDate & "</b></u><font size=0.8 face=arial color=black>, we may begin the process of terminating you from the program.  We cannot accept pictures of these items. Please scan, fax, mail, email, or bring them into our office.</p>

<table border='2'; 
cellspacing='0';
width='100%'>" &
"<thead><tr><font size=0.8 face=arial Color=Black><th>Documents And Verifications</th><th>Member</th><th>Notes</th></thead>" &
"<tbody><font size=0.8 face=arial Color=Black>" &
Concat(ChecklistCol, "<tr><td>" & Label2 & "</td><td>" & Members & "</td><td>" & Notes & "</td></tr>") &
"</tbody></table>

<p><b><u><center><Font size=0.8 face=Arial color=black><Font size=0.8 face=Arial color=black>All requested documents must be submited and/or completed by " & 'Due Date'.SelectedDate & ".</center></u></b></p>

<p><font size=0.8 face=arial Color=Black>Your attention to this important matter is expected. If you have Any questions, please contact (617) 425-6611 or gateway@metrohousingboston.org</p>

<p><Font size=0.8 face=Arial color=black>Sincerely,</p>

<p><font size=0.8 face=arial Color=Black>Metro Housing|Boston Leased Housing Department</p>


<footer><center><Font size=0.6667 face=Arial color=black>1411 Tremont Street, Boston, MA 02120-3401</center></footer>
<footer><center><Font size=0.6667 face=Arial color=black>Phone 617-859-0400 | Toll-Free 800-272-0990 | info@MetroHousingBoston.org | MetroHousingBoston.org</center></footer>

</body>
</html>
"

 

I am completely lost as to what I can do to fix it and am beginning to feel like giving up because nothing seems to work. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @drnemer ,

Firstly I have found the PDF converter in OneDrive is not as "forgiving" as the HTML control in Power Apps to things like closing tags missing and I have found I needed to be very strict in the HTML discipline used. The second (which will not please you) is that the more complex the code, the more I have found it not producing the desired result. I do not use CSS (as I have simple forms), so cannot comment on this, however I have several forms with borders on tables  that resolve properly using normal border tags.

I hope this helps.

 

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.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @drnemer ,

Firstly I have found the PDF converter in OneDrive is not as "forgiving" as the HTML control in Power Apps to things like closing tags missing and I have found I needed to be very strict in the HTML discipline used. The second (which will not please you) is that the more complex the code, the more I have found it not producing the desired result. I do not use CSS (as I have simple forms), so cannot comment on this, however I have several forms with borders on tables  that resolve properly using normal border tags.

I hope this helps.

 

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.

View solution in original post

drnemer
Helper I
Helper I

I actually did find a way after a long long time of playing around with it.  you are right, the code is so complex and unforgiving that I hope I won't have to do it again anytime soon.  But it is possible. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (33,989)