cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swinnings
Frequent Visitor

Export to PDF, HTML code question

Good Afternoon,

 

Can anyone help me?

 

I am exporting to PDF. I have a code (below) but I keep getting this error (also below). What am I missing? I got this code from an html generator + learning from what others are doing.

 

"<!DOCTYPE html>
<html>
<body>

<h1>"&Title1.Text &" PDF Report</h1>
<h3><strong>Outcomes</strong></h3>
<table style="width: 707px;" border="1">
<tbody>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #ff9900;"><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">MA Certification on DODD Website</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue34.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Agency/Supervisor Tracking MA Certification Dates</td>
<td style="width: 184.6px;">&nbsp;"&DataCardValue40.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Individual Specific Training</td>
<td style="width: 184.6px;">&nbsp;"&DataCardValue43.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Maintain Annual Skills Checks&nbsp;</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue47.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Provider Monitoring for Correct Technique and Documentation</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue51.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Use of VNS, Epinephrine auto-injector, and/or OTC Topical Products Without Prescription</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue57.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #ffff99;"><strong>Preparation</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Self-Administration Assessment</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue62.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Storage and Care of Medications</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue67.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Controlled Substances</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue73.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Standard and Universal Precautions</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue78.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Orders for Medications and Health Related Activities from Ohio Authorized Prescriber</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue83.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #00ff00;"><strong>Observation</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Implementation of Proper Steps in Administration of Routine Medications</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue91.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Implementation of Proper Steps in Administration of PRN Medications</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue97.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Implementation of Proper Steps in the Completion of HRAs</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue103.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #99ccff;"><strong>Documentation</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Transcription of Orders onto Medication/Treatment Administration Record&nbsp;</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue108.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Documentation of MA</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue113.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Documentation of HRAs</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue118.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Corresponding Signatures and Initials on Medication/Treatment Administration Record</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue123.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #3366ff;"><strong>Coordination of Care/Communication</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Reportable Situations or Symptoms</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue128.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Medication Errors, Unsafe MA, Unsafe HRA, UI/MUIs</td>
<td style="width: 184.6px;">"& DataCardValue141.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Preparation for Outings</td>
<td style="width: 184.6px;">"& DataCardValue146.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">If Scheduled Personnel is Unavailable</td>
<td style="width: 184.6px;">"& DataCardValue151.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Emergency or Urgent Situations</td>
<td style="width: 184.6px;">"& DataCardValue156.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Emergency Contacts</td>
<td style="width: 184.6px;">"& DataCardValue161.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Communication Regarding Healthcare Appointments</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue169.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Changed Orders for MA and/or HRA</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue174.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">New or Refilled Medications</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue179.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #800080; color: #ffffff;"><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Nursing Delegation</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue191.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #cc99ff;"><strong>Delegation of G-tube, J-tube Medications/Nutrition/Fluids</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">G-Tube/J-Tube Medications/Nutrition/Fluids, Certification 2</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue204.Text &"</td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">&nbsp;</td>
<td style="width: 184.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 707.8px;" colspan="3"><span style="background-color: #993366; color: #ffffff;"><strong>Delegation of Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td style="width: 523.2px;" colspan="2">Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders, Certification 3</td>
<td style="width: 184.6px;">&nbsp;"& DataCardValue217.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>RN Findings & Recommendations</strong></h3>
<table style="width: 563.6px;" border="1">
<tbody>
<tr>
<td style="width: 554.6px;"><strong>Processes and Performance Areas of Strength</strong></td>
</tr>
<tr>
<td style="width: 554.6px;">"& DataCardValue215.Text &"</td>
</tr>
<tr>
<td style="width: 554.6px;">&nbsp;</td>
</tr>
<tr>
<td style="width: 554.6px;"><strong>Immediate Action Required</strong></td>
</tr>
<tr>
<td style="width: 554.6px;">"& DataCardValue218.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>Concerns and Root Causes Identified by RN Assessment and RN Recommendations </strong></h3>
<p><em>(Note to Provider: Your QA RN is available upon request to offer information, direction to resources for needed education, or guidance in the correction of any identified issues)</em></p>
<table border="1">
<tbody>
<tr>
<td><span style="background-color: #ff9900;"><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue219.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #ffff99;"><strong>Preparation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue220.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #00ff00;"><strong>Observation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue221.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #99ccff;"><strong>Documentation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue222.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #3366ff; color: #ffffff;"><strong>Coordination of Care</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue223.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #800080; color: #ffffff;"><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue224.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #cc99ff; color: #000000;"><strong>G/J Tube</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue225.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style="background-color: #993366; color: #ffffff;"><strong>Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td>"&DataCardValue226.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>Estimated Date of Next Review: </strong>"&DataCardValue234.Text &”</p>

</body>
</html>
"

 

swinnings_0-1649879929836.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCBuizer
Super User
Super User

Hi @swinnings ,

 

The inline quotes are interrupting your code, so you have to replace them with double quotes:

 

"<!DOCTYPE html>
<html>
<body>

<h1>"&Title1.Text &" PDF Report</h1>
<h3><strong>Outcomes</strong></h3>
<table style=""width: 707px;"" border=""1"">
<tbody>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #ff9900;""><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">MA Certification on DODD Website</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue34.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Agency/Supervisor Tracking MA Certification Dates</td>
<td style=""width: 184.6px;"">&nbsp;"&DataCardValue40.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Individual Specific Training</td>
<td style=""width: 184.6px;"">&nbsp;"&DataCardValue43.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Maintain Annual Skills Checks&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue47.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Provider Monitoring for Correct Technique and Documentation</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue51.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Use of VNS, Epinephrine auto-injector, and/or OTC Topical Products Without Prescription</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue57.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #ffff99;""><strong>Preparation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Self-Administration Assessment</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue62.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Storage and Care of Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue67.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Controlled Substances</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue73.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Standard and Universal Precautions</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue78.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Orders for Medications and Health Related Activities from Ohio Authorized Prescriber</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue83.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #00ff00;""><strong>Observation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in Administration of Routine Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue91.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in Administration of PRN Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue97.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in the Completion of HRAs</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue103.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #99ccff;""><strong>Documentation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Transcription of Orders onto Medication/Treatment Administration Record&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue108.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Documentation of MA</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue113.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Documentation of HRAs</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue118.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Corresponding Signatures and Initials on Medication/Treatment Administration Record</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue123.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #3366ff;""><strong>Coordination of Care/Communication</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Reportable Situations or Symptoms</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue128.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Medication Errors, Unsafe MA, Unsafe HRA, UI/MUIs</td>
<td style=""width: 184.6px;"">"& DataCardValue141.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Preparation for Outings</td>
<td style=""width: 184.6px;"">"& DataCardValue146.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">If Scheduled Personnel is Unavailable</td>
<td style=""width: 184.6px;"">"& DataCardValue151.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Emergency or Urgent Situations</td>
<td style=""width: 184.6px;"">"& DataCardValue156.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Emergency Contacts</td>
<td style=""width: 184.6px;"">"& DataCardValue161.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Communication Regarding Healthcare Appointments</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue169.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Changed Orders for MA and/or HRA</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue174.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">New or Refilled Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue179.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #800080; color: #ffffff;""><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Nursing Delegation</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue191.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #cc99ff;""><strong>Delegation of G-tube, J-tube Medications/Nutrition/Fluids</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">G-Tube/J-Tube Medications/Nutrition/Fluids, Certification 2</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue204.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #993366; color: #ffffff;""><strong>Delegation of Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders, Certification 3</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue217.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>RN Findings & Recommendations</strong></h3>
<table style=""width: 563.6px;"" border=""1"">
<tbody>
<tr>
<td style=""width: 554.6px;""><strong>Processes and Performance Areas of Strength</strong></td>
</tr>
<tr>
<td style=""width: 554.6px;"">"& DataCardValue215.Text &"</td>
</tr>
<tr>
<td style=""width: 554.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 554.6px;""><strong>Immediate Action Required</strong></td>
</tr>
<tr>
<td style=""width: 554.6px;"">"& DataCardValue218.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>Concerns and Root Causes Identified by RN Assessment and RN Recommendations </strong></h3>
<p><em>(Note to Provider: Your QA RN is available upon request to offer information, direction to resources for needed education, or guidance in the correction of any identified issues)</em></p>
<table border=""1"">
<tbody>
<tr>
<td><span style=""background-color: #ff9900;""><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue219.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #ffff99;""><strong>Preparation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue220.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #00ff00;""><strong>Observation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue221.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #99ccff;""><strong>Documentation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue222.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #3366ff; color: #ffffff;""><strong>Coordination of Care</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue223.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #800080; color: #ffffff;""><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue224.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #cc99ff; color: #000000;""><strong>G/J Tube</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue225.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #993366; color: #ffffff;""><strong>Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue226.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>Estimated Date of Next Review: </strong>"& DataCardValue234.Text &"</p>

</body>
</html>
"


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

3 REPLIES 3
BCBuizer
Super User
Super User

Hi @swinnings ,

 

The inline quotes are interrupting your code, so you have to replace them with double quotes:

 

"<!DOCTYPE html>
<html>
<body>

<h1>"&Title1.Text &" PDF Report</h1>
<h3><strong>Outcomes</strong></h3>
<table style=""width: 707px;"" border=""1"">
<tbody>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #ff9900;""><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">MA Certification on DODD Website</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue34.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Agency/Supervisor Tracking MA Certification Dates</td>
<td style=""width: 184.6px;"">&nbsp;"&DataCardValue40.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Individual Specific Training</td>
<td style=""width: 184.6px;"">&nbsp;"&DataCardValue43.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Maintain Annual Skills Checks&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue47.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Provider Monitoring for Correct Technique and Documentation</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue51.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Use of VNS, Epinephrine auto-injector, and/or OTC Topical Products Without Prescription</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue57.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #ffff99;""><strong>Preparation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Self-Administration Assessment</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue62.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Storage and Care of Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue67.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Controlled Substances</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue73.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Standard and Universal Precautions</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue78.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Orders for Medications and Health Related Activities from Ohio Authorized Prescriber</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue83.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #00ff00;""><strong>Observation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in Administration of Routine Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue91.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in Administration of PRN Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue97.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Implementation of Proper Steps in the Completion of HRAs</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue103.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #99ccff;""><strong>Documentation</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Transcription of Orders onto Medication/Treatment Administration Record&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue108.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Documentation of MA</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue113.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Documentation of HRAs</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue118.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Corresponding Signatures and Initials on Medication/Treatment Administration Record</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue123.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #3366ff;""><strong>Coordination of Care/Communication</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Reportable Situations or Symptoms</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue128.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Medication Errors, Unsafe MA, Unsafe HRA, UI/MUIs</td>
<td style=""width: 184.6px;"">"& DataCardValue141.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Preparation for Outings</td>
<td style=""width: 184.6px;"">"& DataCardValue146.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">If Scheduled Personnel is Unavailable</td>
<td style=""width: 184.6px;"">"& DataCardValue151.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Emergency or Urgent Situations</td>
<td style=""width: 184.6px;"">"& DataCardValue156.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Emergency Contacts</td>
<td style=""width: 184.6px;"">"& DataCardValue161.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Communication Regarding Healthcare Appointments</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue169.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Changed Orders for MA and/or HRA</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue174.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">New or Refilled Medications</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue179.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #800080; color: #ffffff;""><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Nursing Delegation</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue191.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #cc99ff;""><strong>Delegation of G-tube, J-tube Medications/Nutrition/Fluids</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">G-Tube/J-Tube Medications/Nutrition/Fluids, Certification 2</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue204.Text &"</td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">&nbsp;</td>
<td style=""width: 184.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 707.8px;"" colspan=""3""><span style=""background-color: #993366; color: #ffffff;""><strong>Delegation of Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td style=""width: 523.2px;"" colspan=""2"">Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders, Certification 3</td>
<td style=""width: 184.6px;"">&nbsp;"& DataCardValue217.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>RN Findings & Recommendations</strong></h3>
<table style=""width: 563.6px;"" border=""1"">
<tbody>
<tr>
<td style=""width: 554.6px;""><strong>Processes and Performance Areas of Strength</strong></td>
</tr>
<tr>
<td style=""width: 554.6px;"">"& DataCardValue215.Text &"</td>
</tr>
<tr>
<td style=""width: 554.6px;"">&nbsp;</td>
</tr>
<tr>
<td style=""width: 554.6px;""><strong>Immediate Action Required</strong></td>
</tr>
<tr>
<td style=""width: 554.6px;"">"& DataCardValue218.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h3><strong>Concerns and Root Causes Identified by RN Assessment and RN Recommendations </strong></h3>
<p><em>(Note to Provider: Your QA RN is available upon request to offer information, direction to resources for needed education, or guidance in the correction of any identified issues)</em></p>
<table border=""1"">
<tbody>
<tr>
<td><span style=""background-color: #ff9900;""><strong>Certification and Provider Supervision</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue219.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #ffff99;""><strong>Preparation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue220.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #00ff00;""><strong>Observation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue221.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #99ccff;""><strong>Documentation</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue222.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #3366ff; color: #ffffff;""><strong>Coordination of Care</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue223.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #800080; color: #ffffff;""><strong>Delegation of Nursing Task(s)</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue224.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #cc99ff; color: #000000;""><strong>G/J Tube</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue225.Text &"</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><span style=""background-color: #993366; color: #ffffff;""><strong>Insulin and/or Injectable Treatments for Metabolic Glycemic Disorders</strong></span></td>
</tr>
<tr>
<td>"& DataCardValue226.Text &"</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>Estimated Date of Next Review: </strong>"& DataCardValue234.Text &"</p>

</body>
</html>
"


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
EddieE
Super User
Super User

@swinnings 

The error is because you are using double quotes (ie ") inside your inline styles. You can only use double quotes to escape the text strings and add in data such as variables, tables, etc.

 

You need to use single quotes instead and also play around with what works because it's slightly different to true HTML inside the HTML text element in PowerApps.

This is an example from some code I've written where a table row has LightGrey background and weighted BOLD 

<tr bgcolor='LightGrey' style='font-weight:bold'>

- note the use of single quotes instead of doubles and also how the singles go around each style item and not around the entire style code, like in your code.

 

An example from your code would look like this

// current code
<span style="background-color: #cc99ff; color: #000000;">

// adjusted code
<span bgcolor=#cc99ff style='color:#000000'>

- note I've also removed the semi colons, I've found this works better but it's really a trial error thing

 

swinnings
Frequent Visitor

Thank you both! That's helpful to know for the future!

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (4,687)