<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Static Report as Email Body Not as Attachment using Macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684043#M247959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sakthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2014 08:57:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-16T08:57:06Z</dc:date>
    <item>
      <title>Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684042#M247958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Good Morning to all.&amp;nbsp; I have the Static report with four Charts. Now i want that four chart as EMail body not as attachment. If Possible please give the code using VB Macros ASAP. I have checked this for more than a month. still i didn't find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sakthivel.S&lt;/P&gt;&lt;P&gt;Gurgaon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684042#M247958</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684043#M247959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sakthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 08:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684043#M247959</guid>
      <dc:creator />
      <dc:date>2014-06-16T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684044#M247960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Uday,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply. But the Problem is i am asking about Document Report ID is RP01(Report). You Mentioned as CH02 and One more thing i didn't have SMTP Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sakthivel.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 09:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684044#M247960</guid>
      <dc:creator />
      <dc:date>2014-06-16T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684045#M247961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Option 1 Since the objects will be from Sheets , Save the 4 charts separately and create the html tags and use the above code to send the htmlbody. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2&amp;nbsp; nprinting&amp;nbsp; and export the report as html and attach the html in the mail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 09:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684045#M247961</guid>
      <dc:creator />
      <dc:date>2014-06-16T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684046#M247962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Uday, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But i have Outlook Application not SMTP Server. So My Format to send mail is givent below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SendMail&lt;/P&gt;&lt;P&gt;Set myApp = CreateObject ("Outlook.Application")&lt;/P&gt;&lt;P&gt;Set myMessage = myApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.BodyFormat = 2 'Outlook.OlBodyFormat.olFormatRichText&lt;/P&gt;&lt;P&gt;'Supplier = ActiveDocument.Variables("SelectedSupplier").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.Subject = ActiveDocument.Variables("vSubject").GetContent.String&amp;nbsp; ''"DSC Engineer Productivity Achievement and Penalty %age" 'Supplier &amp;amp; " / Maksukehotus"&lt;/P&gt;&lt;P&gt;'call GetPossibleValues ("E-mail 1","strTo",",")&lt;/P&gt;&lt;P&gt;strTo = ActiveDocument.Variables("ToEmails").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.To = strTo&lt;/P&gt;&lt;P&gt;StrCc = ActiveDocument.Variables("vCCEmail").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.Cc = StrCc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set myInspector = myMessage.GetInspector 'this inserts signature to e-mail&lt;/P&gt;&lt;P&gt;Set myDoc = myInspector.WordEditor&lt;/P&gt;&lt;P&gt;Set var26 = ActiveDocument.Variables("vFilePath")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Attachments.Add var26.GetContent.String &lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TX150").CopyTextToClipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myText = ActiveDocument.GetSheetObject("TX150").GetText 'this is needed to calculate the lenght of the iserted text to put the next object after it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(0,0).Paste 'This pastes at the begining of the message body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("RP01"),ExportBitmapToFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(len(myText),len(myText)).Paste 'Pastes after the previous text 'myDoc.Range(10,10).Paste &lt;/P&gt;&lt;P&gt;' myDoc.Range(myDoc.Characters.Count-1, myDoc.Characters.Count).Paste 'Pastes at the end of the message body&lt;/P&gt;&lt;P&gt;' myMessage.GetInspector.WordEditor.Range.Paste 'Replaces the entire message body with clipboard content&lt;/P&gt;&lt;P&gt;' myInspector.WordEditor.Content.InsertAfter chr(13) 'inserts an empty string at the end of the message body content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Display&lt;/P&gt;&lt;P&gt;myMessage.Send&lt;/P&gt;&lt;P&gt;Set myMessage = Nothing &lt;/P&gt;&lt;P&gt;Set myApp = Nothing&lt;/P&gt;&lt;P&gt;Set myInspector = Nothing&lt;/P&gt;&lt;P&gt;Set myDoc = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Finally:&lt;/P&gt;&lt;P&gt;'OlSecurityManager.DisableOOMWarnings = False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Help for this. It is very helpful to me...&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 10:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684046#M247962</guid>
      <dc:creator />
      <dc:date>2014-06-16T10:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684047#M247963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;Try adding this line in your macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;.HTMLBody =&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="string" style="color: blue; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;"&amp;lt;img src="&lt;/SPAN&gt;&lt;SPAN style="text-align: justify; color: #000000; font-size: 12px; background-color: #f8f8f8; font-family: Consolas, 'Courier New', Courier, mono; font-weight: bold;"&gt;"D:\Chart.jpg"&lt;/SPAN&gt;&lt;SPAN class="string" style="color: blue; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;"&amp;gt; "&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;This will get appended to your .TextBody.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-weight: bold; text-align: justify; background-color: #f8f8f8;"&gt;I don't have Outlook configured here , Did't test this code. Check and post your results.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 12:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684047#M247963</guid>
      <dc:creator />
      <dc:date>2014-06-16T12:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Static Report as Email Body Not as Attachment using Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684048#M247964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;ıf we want to show more than one jpg how we write &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono; color: #000000; text-align: justify; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono; color: #000000; text-align: justify; background-color: #f8f8f8;"&gt;.HTMLBody = ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 10:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Report-as-Email-Body-Not-as-Attachment-using-Macros/m-p/684048#M247964</guid>
      <dc:creator>imrencimen</dc:creator>
      <dc:date>2016-04-14T10:28:23Z</dc:date>
    </item>
  </channel>
</rss>

