<?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 Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425452#M20255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estimados,&lt;/P&gt;&lt;P&gt;Tengo un problema al momento de ejecutar una trabajo en el servidor de NPrinting&lt;/P&gt;&lt;P&gt;Versión NPrinting: 15.4.0.2 (Feature Track)&lt;/P&gt;&lt;P&gt;Versión QlikView: 11.0.11440.0&lt;/P&gt;&lt;P&gt;Al modelo QlikView lo llamaré Modelo A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El trabajo consiste en distintas tareas:&lt;/P&gt;&lt;P&gt;1.- Recargar el modelo A.&lt;/P&gt;&lt;P&gt;2.- Crear reportes de manera cíclica usando un dato definido (nombre persona) en el modelo y almacenarlos en un directorio especifico &lt;SPAN style="font-size: 13.3333px;"&gt;(generalmente crea 6 reportes)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;3.- Ejecutar una macro que se encuentra en el modelo A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; La macro consiste en realizar un ciclo mediante comando For en donde busca los reportes creados y los envía a los correos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correspondientes a las personas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nivel local, el trabajo cumple con todas las tareas, genera los reportes y envía los correos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El problema es en el servidor de NPrinting.&lt;/P&gt;&lt;P&gt;Al momento de ejecutar el trabajo, la tarea de recarga (1) y generación de reportes (2) funciona correctamente, pero al ejecutar la macro (3), envía sólo 1 correo y no hace nada mas.&lt;/P&gt;&lt;P&gt;Como detalle al revisar el administrador de tareas encuentro que el proceso QlikView se queda pegado ocupando 929 Mb &lt;IMG alt="Sin título.jpg" class="jive-image image-1" src="/legacyfs/online/180778_Sin título.jpg" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La macro que ocupo para enviar los correos es la siguiente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;sub Ciclo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt; = ActiveDocument.fields("Persona_ssf").GetPossibleValues&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;for i=0 to dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Count - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;FieldValue = dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.Fields("&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;_ssf").Select FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set var = ActiveDocument.Variables("vCorreo") &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set nombre = ActiveDocument.Variables("vNombre&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;") &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'*******************************************************************************************************************&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Enviar correo por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Verificar si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Archivo = "\\Ruta\Informe por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona &lt;/STRONG&gt;" &amp;amp; dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).Text &amp;amp; "_" &amp;amp; Date() &amp;amp; ".xlsx"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;If fso.FileExists(Archivo) Then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = CreateObject("CDO.Message")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = CreateObject("CDO.Configuration")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.security.cl" 'smtp do email&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = False&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;msgConf.Fields.Update&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.To = var.GetContent.String&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;objMsg.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Correo@Correo.com"&gt;Correo@Correo.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Subject = "Reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.HTMLBody = "Hola " &amp;amp; nombre.GetContent.String &amp;amp; ",&amp;lt;br/&amp;gt; Adjunto al correo reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.AddAttachment Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Sender = "Correo"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg.Configuration = msgConf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'No existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.ClearAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agradeciendo de antemano toda su ayuda me despido&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I have a problem when running a job on the server of NPrinting&lt;/P&gt;&lt;P&gt;NPrinting Version: 15.4.0.2 (Feature Track)&lt;/P&gt;&lt;P&gt;QlikView Version: 11.0.11440.0&lt;/P&gt;&lt;P&gt;The QlikView model will call it Model A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work consists of different tasks:&lt;/P&gt;&lt;P&gt;1.- Recharge the model A.&lt;/P&gt;&lt;P&gt;2.- Create reports in a cyclical way using a defined data (person name) in the model and store them in a specific directory (usually creates 6 reports).&lt;/P&gt;&lt;P&gt;3.- Execute a macro that is in model A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The macro consists of cycling through the For command, where it looks for the created reports and sends them to the emails corresponding to the people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the local level, the work fulfills all the tasks, generates the reports and sends the mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the server of NPrinting.&lt;/P&gt;&lt;P&gt;When executing the job, the task of reloading (1) and report generation (2) works correctly, but when executing macro (3), it sends only 1 mail and does nothing else.&lt;/P&gt;&lt;P&gt;As a detail when reviewing the task manager I find that the QlikView process is stuck occupying 929 Mb&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sin título.jpg" class="jive-image image-1" src="/legacyfs/online/180778_Sin título.jpg" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro I used to send the emails is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;sub Ciclo&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt; = ActiveDocument.fields("Persona_ssf").GetPossibleValues&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;for i=0 to dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Count - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;FieldValue = dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.Fields("&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;_ssf").Select FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set var = ActiveDocument.Variables("vCorreo")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set nombre = ActiveDocument.Variables("vNombre&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'*******************************************************************************************************************&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Enviar correo por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Verificar si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Archivo = "\\Ruta\Informe por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona &lt;/STRONG&gt;" &amp;amp; dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).Text &amp;amp; "_" &amp;amp; Date() &amp;amp; ".xlsx"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;If fso.FileExists(Archivo) Then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = CreateObject("CDO.Message")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = CreateObject("CDO.Configuration")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.security.cl" 'smtp do email&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = False&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;msgConf.Fields.Update&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.To = var.GetContent.String&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;objMsg.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Correo@Correo.com"&gt;Correo@Correo.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Subject = "Reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.HTMLBody = "Hola " &amp;amp; nombre.GetContent.String &amp;amp; ",&amp;lt;br/&amp;gt; Adjunto al correo reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.AddAttachment Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Sender = "Correo"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg.Configuration = msgConf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'No existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.ClearAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanking in advance all your help I say goodbye&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 19:06:57 GMT</pubDate>
    <dc:creator>felipessj</dc:creator>
    <dc:date>2017-10-24T19:06:57Z</dc:date>
    <item>
      <title>Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425452#M20255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estimados,&lt;/P&gt;&lt;P&gt;Tengo un problema al momento de ejecutar una trabajo en el servidor de NPrinting&lt;/P&gt;&lt;P&gt;Versión NPrinting: 15.4.0.2 (Feature Track)&lt;/P&gt;&lt;P&gt;Versión QlikView: 11.0.11440.0&lt;/P&gt;&lt;P&gt;Al modelo QlikView lo llamaré Modelo A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El trabajo consiste en distintas tareas:&lt;/P&gt;&lt;P&gt;1.- Recargar el modelo A.&lt;/P&gt;&lt;P&gt;2.- Crear reportes de manera cíclica usando un dato definido (nombre persona) en el modelo y almacenarlos en un directorio especifico &lt;SPAN style="font-size: 13.3333px;"&gt;(generalmente crea 6 reportes)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;3.- Ejecutar una macro que se encuentra en el modelo A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; La macro consiste en realizar un ciclo mediante comando For en donde busca los reportes creados y los envía a los correos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correspondientes a las personas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nivel local, el trabajo cumple con todas las tareas, genera los reportes y envía los correos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El problema es en el servidor de NPrinting.&lt;/P&gt;&lt;P&gt;Al momento de ejecutar el trabajo, la tarea de recarga (1) y generación de reportes (2) funciona correctamente, pero al ejecutar la macro (3), envía sólo 1 correo y no hace nada mas.&lt;/P&gt;&lt;P&gt;Como detalle al revisar el administrador de tareas encuentro que el proceso QlikView se queda pegado ocupando 929 Mb &lt;IMG alt="Sin título.jpg" class="jive-image image-1" src="/legacyfs/online/180778_Sin título.jpg" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La macro que ocupo para enviar los correos es la siguiente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;sub Ciclo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt; = ActiveDocument.fields("Persona_ssf").GetPossibleValues&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;for i=0 to dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Count - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;FieldValue = dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.Fields("&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;_ssf").Select FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set var = ActiveDocument.Variables("vCorreo") &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set nombre = ActiveDocument.Variables("vNombre&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;") &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'*******************************************************************************************************************&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Enviar correo por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Verificar si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Archivo = "\\Ruta\Informe por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona &lt;/STRONG&gt;" &amp;amp; dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).Text &amp;amp; "_" &amp;amp; Date() &amp;amp; ".xlsx"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;If fso.FileExists(Archivo) Then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = CreateObject("CDO.Message")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = CreateObject("CDO.Configuration")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.security.cl" 'smtp do email&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = False&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;msgConf.Fields.Update&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.To = var.GetContent.String&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;objMsg.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Correo@Correo.com"&gt;Correo@Correo.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Subject = "Reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.HTMLBody = "Hola " &amp;amp; nombre.GetContent.String &amp;amp; ",&amp;lt;br/&amp;gt; Adjunto al correo reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.AddAttachment Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Sender = "Correo"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg.Configuration = msgConf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'No existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.ClearAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agradeciendo de antemano toda su ayuda me despido&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I have a problem when running a job on the server of NPrinting&lt;/P&gt;&lt;P&gt;NPrinting Version: 15.4.0.2 (Feature Track)&lt;/P&gt;&lt;P&gt;QlikView Version: 11.0.11440.0&lt;/P&gt;&lt;P&gt;The QlikView model will call it Model A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work consists of different tasks:&lt;/P&gt;&lt;P&gt;1.- Recharge the model A.&lt;/P&gt;&lt;P&gt;2.- Create reports in a cyclical way using a defined data (person name) in the model and store them in a specific directory (usually creates 6 reports).&lt;/P&gt;&lt;P&gt;3.- Execute a macro that is in model A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The macro consists of cycling through the For command, where it looks for the created reports and sends them to the emails corresponding to the people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the local level, the work fulfills all the tasks, generates the reports and sends the mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the server of NPrinting.&lt;/P&gt;&lt;P&gt;When executing the job, the task of reloading (1) and report generation (2) works correctly, but when executing macro (3), it sends only 1 mail and does nothing else.&lt;/P&gt;&lt;P&gt;As a detail when reviewing the task manager I find that the QlikView process is stuck occupying 929 Mb&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sin título.jpg" class="jive-image image-1" src="/legacyfs/online/180778_Sin título.jpg" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro I used to send the emails is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;sub Ciclo&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt; = ActiveDocument.fields("Persona_ssf").GetPossibleValues&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;for i=0 to dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Count - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;FieldValue = dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.Fields("&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;_ssf").Select FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set var = ActiveDocument.Variables("vCorreo")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set nombre = ActiveDocument.Variables("vNombre&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'*******************************************************************************************************************&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Enviar correo por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Verificar si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Dim Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Archivo = "\\Ruta\Informe por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona &lt;/STRONG&gt;" &amp;amp; dim&lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;.Item(i).Text &amp;amp; "_" &amp;amp; Date() &amp;amp; ".xlsx"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;If fso.FileExists(Archivo) Then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'Si existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = CreateObject("CDO.Message")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = CreateObject("CDO.Configuration")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.security.cl" 'smtp do email&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = False&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;msgConf.Fields.Update&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.To = var.GetContent.String&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;objMsg.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Correo@Correo.com"&gt;Correo@Correo.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Subject = "Reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.HTMLBody = "Hola " &amp;amp; nombre.GetContent.String &amp;amp; ",&amp;lt;br/&amp;gt; Adjunto al correo reporte por &lt;STRONG style="font-size: 13.3333px;"&gt;Persona&lt;/STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.AddAttachment Archivo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Sender = "Correo"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg.Configuration = msgConf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set objMsg = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Set msgConf = nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;'No existe el reporte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;ActiveDocument.ClearAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-family: calibri, verdana, arial, sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanking in advance all your help I say goodbye&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425452#M20255</guid>
      <dc:creator>felipessj</dc:creator>
      <dc:date>2017-10-24T19:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425453#M20256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using a very old version, so I suggest you to update your installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that Qlik NPrinting 16.* supports Office macros in the meaning that the VBA code is copied from the report template to the generated reports but NEVER executed for security reasons. Qlik NPrinting 17, at the moment, doesn't support Office macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik NPrinting is designed to deliver reports via email without the needs to create Office macros. So please evalute to develop a full Qlik NPrinting solution to send your reports without using macros.&lt;/P&gt;&lt;P&gt;Qlik NPrinting 16 tutorials are available at the page &lt;A href="https://community.qlik.com/space/2049"&gt;QlikView Resource Library&lt;/A&gt;, then click on Qlik NPrinting on the left column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 08:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425453#M20256</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2017-10-27T08:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425454#M20257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggets you make a Windows session 0 visible (google how to do it) and see where is your NPrinting process stopped in executing QlikVIew macro..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative yo umay want to login to QlikView server as a NPrinting Server accont and run manual NPrinting task as this user and see if it hass all required privilages to run macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 05:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425454#M20257</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2017-11-02T05:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425455#M20258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gracias por sus respuestas,&lt;/P&gt;&lt;P&gt;La version de NPrinting utilizada es la que tenemos como empresa, está fuera de mi manos actualizar la version.&lt;/P&gt;&lt;P&gt;En cuanto al uso de macros, es la opción que tenía en el momento.&lt;/P&gt;&lt;P&gt;La solución que encontré al problema es ejecutar un .exe que realice el envío de correos una vez finalizado el proceso de creación de reportes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Thank you for your answers, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;The version of NPrinting used is the one we have as a company, it is out of my hands to update the version. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;As for the use of macros, it is the option that I had at the time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;The solution that I found to the problem is to execute an .exe that performs the sending of emails once the process of creating reports has finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425455#M20258</guid>
      <dc:creator>felipessj</dc:creator>
      <dc:date>2017-11-02T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView Macro Using Cycle to Send Mail Does Not Work on NPrinting Server</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425456#M20259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estimados,&lt;/P&gt;&lt;P&gt;Al final si pude realizar el proceso de envío de correos con mi versión de NPrinting.&lt;/P&gt;&lt;P&gt;Todo era causa de desconocimiento.&lt;/P&gt;&lt;P&gt;Para hacerlo posible use la herramienta de Nprinting para obtener los destinatarios desde un objeto (tabla) QlikView, usando la opción QlikView Entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La tabla debe tener como mínimo esta información y debe ser establecida en el asistente de NPrinting de la siguiente manera:&lt;/P&gt;&lt;P&gt;Email -&amp;gt; correo de la persona&lt;/P&gt;&lt;P&gt;Filter1 -&amp;gt; dato de la persona que se usa en el ciclo de creación del informe.&lt;/P&gt;&lt;P&gt;Group1 -&amp;gt; Agrupación al cual pertenece esa persona (vendedores, ejecutivos, gerentes, etc.)&lt;/P&gt;&lt;P&gt;FullName -&amp;gt; Nombre de la persona&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El importar destinatarios debe ser establecido como una tarea previa a la creación de los informes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Para enlazar estos destinatarios con los informes, en la opción de tarea, pestaña destinatarios, se debe colocar el grupo al cual pertenecen los destinatarios,&lt;/P&gt;&lt;P&gt;NPrinting se encarga de enviar el correo a quien corresponda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recuerden activar la opción enviar correo electrónico.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Espero que les sirva este ultra resumido tutorial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Dear,&lt;BR /&gt;In the end if I could perform the process of sending emails with my version of NPrinting.&lt;BR /&gt;Everything was cause of ignorance.&lt;BR /&gt;To make this possible, use the Nprinting tool to obtain the recipients from a QlikView object (table), using the QlikView Entity option.&lt;BR /&gt;&lt;BR /&gt;The table must have at least this information and must be established in the NPrinting wizard as follows:&lt;BR /&gt;Email -&amp;gt; person's email&lt;BR /&gt;Filter1 -&amp;gt; data of the person used in the report creation cycle.&lt;BR /&gt;Group1 -&amp;gt; Group to which that person belongs (salespersons, executives, managers, etc.)&lt;BR /&gt;FullName -&amp;gt; Name of the person&lt;BR /&gt;&lt;BR /&gt;Importing recipients must be established as a task prior to the creation of the reports.&lt;BR /&gt;&lt;BR /&gt;To link these recipients with the reports, in the task option, recipients tab, the group to which the recipients belong must be placed,&lt;BR /&gt;NPrinting is responsible for sending the mail to whom it may concern.&lt;BR /&gt;&lt;BR /&gt;Remember to activate the option to send email.&lt;BR /&gt;&lt;BR /&gt;I hope you can use this ultra-short tutorial.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1425456#M20259</guid>
      <dc:creator>felipessj</dc:creator>
      <dc:date>2018-02-01T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro QlikView que usa un ciclo para enviar correos no funciona en servidor NPrinting - QlikView</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1519945#M21743</link>
      <description>&lt;P&gt;buen dia, espero estes bien.&lt;/P&gt;&lt;P&gt;Te comento que estoy iniciandome en este mundo y no tengo demasiadas herramientas para solucionar algunos problemas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;En concreto estoy necesitando enviar via mail reportes desde una versión gratuita de qlikview y entiendo que con la macro que desarrollaste funcionaria, pero hay cosas que no entiendo del todo. como por ejemplo si&amp;nbsp;Persona_ssf es un archivo con los datos de la gente a la que le quieres enviar el mail?? .&lt;/P&gt;&lt;P&gt;En conclusión, me podrías ayudar a entender un poco el código?&lt;/P&gt;&lt;P&gt;Desde ya muchas gracias&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 15:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Macro-QlikView-que-usa-un-ciclo-para-enviar-correos-no-funciona/m-p/1519945#M21743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-12T15:23:46Z</dc:date>
    </item>
  </channel>
</rss>

