Skip to main content
Announcements
Talend Data Catalog 8.0 End of Support: December 31, 2024 Get Details

How to Embed an HTML Report into the Body of an E-mail Message

cancel
Showing results for 
Search instead for 
Did you mean: 
Stefano_Dalla_Guarda

How to Embed an HTML Report into the Body of an E-mail Message

Last Update:

Nov 6, 2015 6:54:28 AM

Updated By:

Stefano_Dalla_Guarda

Created date:

Nov 6, 2015 6:54:28 AM

This Tutorial explains how to embed an HTML report into the body of an e-mail message - also one with attached reports. You will need to use an NPrinting Project file containing at least one HTML report template or another report template that you intend to output as HTML.

   

Table of Embeddable Formats

                  
            Table-of-Embeddable-Formats.png                  
        

For visualization purposes, we recommend you develop HTML reports.

You can also embed reports as images; however, be sure to select a compatible format before embedding a report, as above.

    

Add an HTML Report to Task

                  
            Add-an-HTML-Report-to-Task.png                  
        
  1. Open a task and click the Reports icon in the Show group
  2. Click on Add in the ribbon bar
  3. Select the report you want to embed into your message body in the Select Reports dialog window, and if it is not an HTML report, set its Output Format to HTML. You can also select and alter, the Output Format of any other reports you want to send as attachments. After clicking on OK, you will see them listed as above
    

Open Message Window

                  
            Open-Message-Window.png                  
        
  1. Click on Message in the Mail group of the ribbon bar
  2. Flag the Send Email box

Complete Message Settings

                  
            Complete-Message-Settings.png                  
        
  1. Enter the sender's e-mail address
  2. If you want to send a CC or a BCC, check the Add CC/BCC box and enter recipient e-mail addresses or select them from the recipients list by clicking on the right dots
  3. Enter text and/or a variable from your QlikView document in the Subject field by clicking on the tag to the right of the Subject text box.
  4. You can attach any reports you added to the task by checking Attach Reports.
 

De-select HTML Report to be Embedded

                  
            De-select-HTML-Report-to-be-Embedded.png                  
        
  1. Select the reports to be attached
  2. De-select the HTML report to be embedded in the message unless you want to send it as an attachment also
  3. Click on OK

To embedd HTML or images from other reports, select the report name on the left treeview then use the tag that starts with %%Embed_ on the right.

    

Before Composition

                  
            Before-Composition.png                  
        
  1. Choose Html Text as Format
  2. Click on the tag at the right of the Body text box to add the HTML report.
 

Compose Your Message

                  
            Compose-Your-Message.png                  
        

Compose the message using variables where needed. Inclusion of the HTML report variable that follows illustrates this process.

  • Click on the tag icon in the ribbon bar to open the Select Tags dialog
 

Add an HTML Report to Message Body

                  
            Add-an-HTML-Report-to-Message-Body.png                  
        
  1. Expand the Reports node, if necessary, in the the window that opens
  2. Select the HTML report to be embedded in the Select an entity panel
  3. Choose the %%Embed_HTML Report Name_HTML%% variable tag in the Select a tag dialog window
  4. Click on OK.
   

Complete and Save Message

                  
            Complete-and-Save-Message.png                  
        

Apply any formatting that you desire and click on the save icon

     

HTML Report is Embedded

                  
            HTML-Report-is-Embedded.png                  
        

Finish the task and the HTML report will be reproduced in its entirety in the message that accompanies the attached reports.

     

Save Work

                  
            Save-Work.png                  
        

Click on the Save and Close icon in the Actions group.

     

Run Task

                  
            Run-Task.png                  
        
  1. Make sure the task is selected
  2. Click on the Run icon
     

Check out Received Message

                  
            Check-out-Received-Message.png                  
        

As you can see in the e-mail received, we have the embedded report and all three attachments.

Labels (1)
Version history
Last update:
‎2015-11-06 06:54 AM
Updated by: