<?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 Run Macros on server side in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544341#M1319053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following macro that generates a report in pdf and send it by mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub GenerarPDF&lt;/P&gt;&lt;P&gt;'Aplico la Macro&lt;/P&gt;&lt;P&gt;ActiveDocument.RecallDocBookmark "Spain"&lt;/P&gt;&lt;P&gt;'Creo el PDF&lt;/P&gt;&lt;P&gt;Set PDFCreator = CreateObject("PDFCreator.clsPDFCreator")&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("UseAutosave") = 1 'Enable autosave&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("UseAutosaveDirectory") = 1 'Use a specific save directory&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveDirectory") = "C:\Users\User1\Desktop\Informes" ' Set autosave directory&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveFormat") = 0 'Use PDF file type (.PDF extension) 1= PNG&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveFilename") = "Spain "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String 'set the filename, optionally you can get the Caption of the object and use it as Filename&lt;/P&gt;&lt;P&gt;PDFCreator.cPrinterStop = FALSE&lt;/P&gt;&lt;P&gt;' Export to PDF File&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintDocReport "RP01", "PDFCreator"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub EnviarCorreo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Servidor = "smtp.gmail.com" &lt;/P&gt;&lt;P&gt;User = "Usuario"&lt;/P&gt;&lt;P&gt;Password = "Password"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ENVIO DE CORREO&lt;/P&gt;&lt;P&gt;'España&lt;/P&gt;&lt;P&gt;ActiveDocument.RecallDocBookmark "Spain"&lt;/P&gt;&lt;P&gt;Set objMessage = CreateObject("CDO.Message") &lt;/P&gt;&lt;P&gt;objMessage.Subject = "Qlikview Informes España " &amp;amp;now()&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;objMessage.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:home@gmail.com" target="_blank"&gt;home@gmail.com&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'objMessage.To = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:example@example.com" target="_blank"&gt;example@example.com&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.TextBody = "Se adjunta el informe España "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String&amp;amp;"."&lt;/P&gt;&lt;P&gt;objMessage.AddAttachment&amp;nbsp; "C:\Users\User1\Desktop\Informes\Spain "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String&amp;amp;".pdf"&lt;/P&gt;&lt;P&gt;'==This section provides the configuration information for the remote SMTP server.&lt;/P&gt;&lt;P&gt;'==Normally you will only change the server name or IP.&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'Name or IP of Remote SMTP Server&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = Servidor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'Server port (typically 25)&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 465&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusername" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;&lt;SPAN&gt;") = User&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendpassword" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;&lt;SPAN&gt;") = Password&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Update&lt;/P&gt;&lt;P&gt;'==End remote SMTP server configuration section==&lt;/P&gt;&lt;P&gt;objMessage.Send&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i click on the button that runs this macro is that it execute in the local computer not in the server as desired &lt;/P&gt;&lt;P&gt;How can i do to run the macro on the server side&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Run Macros on server side</title>
      <link>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544341#M1319053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following macro that generates a report in pdf and send it by mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub GenerarPDF&lt;/P&gt;&lt;P&gt;'Aplico la Macro&lt;/P&gt;&lt;P&gt;ActiveDocument.RecallDocBookmark "Spain"&lt;/P&gt;&lt;P&gt;'Creo el PDF&lt;/P&gt;&lt;P&gt;Set PDFCreator = CreateObject("PDFCreator.clsPDFCreator")&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("UseAutosave") = 1 'Enable autosave&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("UseAutosaveDirectory") = 1 'Use a specific save directory&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveDirectory") = "C:\Users\User1\Desktop\Informes" ' Set autosave directory&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveFormat") = 0 'Use PDF file type (.PDF extension) 1= PNG&lt;/P&gt;&lt;P&gt;PDFCreator.cOption("AutosaveFilename") = "Spain "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String 'set the filename, optionally you can get the Caption of the object and use it as Filename&lt;/P&gt;&lt;P&gt;PDFCreator.cPrinterStop = FALSE&lt;/P&gt;&lt;P&gt;' Export to PDF File&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintDocReport "RP01", "PDFCreator"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub EnviarCorreo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Servidor = "smtp.gmail.com" &lt;/P&gt;&lt;P&gt;User = "Usuario"&lt;/P&gt;&lt;P&gt;Password = "Password"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ENVIO DE CORREO&lt;/P&gt;&lt;P&gt;'España&lt;/P&gt;&lt;P&gt;ActiveDocument.RecallDocBookmark "Spain"&lt;/P&gt;&lt;P&gt;Set objMessage = CreateObject("CDO.Message") &lt;/P&gt;&lt;P&gt;objMessage.Subject = "Qlikview Informes España " &amp;amp;now()&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;objMessage.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:home@gmail.com" target="_blank"&gt;home@gmail.com&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'objMessage.To = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:example@example.com" target="_blank"&gt;example@example.com&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.TextBody = "Se adjunta el informe España "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String&amp;amp;"."&lt;/P&gt;&lt;P&gt;objMessage.AddAttachment&amp;nbsp; "C:\Users\User1\Desktop\Informes\Spain "&amp;amp;ActiveDocument.Variables("Fase_Max_Año").GetContent.String&amp;amp;".pdf"&lt;/P&gt;&lt;P&gt;'==This section provides the configuration information for the remote SMTP server.&lt;/P&gt;&lt;P&gt;'==Normally you will only change the server name or IP.&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'Name or IP of Remote SMTP Server&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = Servidor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'Server port (typically 25)&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 465&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusername" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;&lt;SPAN&gt;") = User&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Item _&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendpassword" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;&lt;SPAN&gt;") = Password&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMessage.Configuration.Fields.Update&lt;/P&gt;&lt;P&gt;'==End remote SMTP server configuration section==&lt;/P&gt;&lt;P&gt;objMessage.Send&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i click on the button that runs this macro is that it execute in the local computer not in the server as desired &lt;/P&gt;&lt;P&gt;How can i do to run the macro on the server side&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544341#M1319053</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run Macros on server side</title>
      <link>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544342#M1319055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any solution to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 18:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544342#M1319055</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2017-09-01T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run Macros on server side</title>
      <link>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544343#M1319057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried it using WebView (Ajax)? Not sure if it will work though. Mail client is needed on server for instance.&lt;/P&gt;&lt;P&gt;Macros run locally when using Plugin and server side when you use WebView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544343#M1319057</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2017-09-22T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Run Macros on server side</title>
      <link>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544344#M1319060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have publisher, you can use publisher for PDF Distribution or you can even use Nprinting..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 02:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-Macros-on-server-side/m-p/544344#M1319060</guid>
      <dc:creator>poppypearce</dc:creator>
      <dc:date>2017-09-25T02:45:05Z</dc:date>
    </item>
  </channel>
</rss>

