<?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 is not connecting to R in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-is-not-connecting-to-R/m-p/683919#M1085281</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;I wrote am macro as below:&lt;/P&gt;&lt;P&gt;1. Copy the chart properties and paste it to excel.&lt;/P&gt;&lt;P&gt;2. Connect to R and convert the excel data into JPG image.&lt;/P&gt;&lt;P&gt;3.Reload the script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Macro is as below: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XlsPath = "c:\lab\patient.xls"&lt;BR /&gt;'Create excel File&lt;BR /&gt;MsgBox("1")&lt;BR /&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objWorkbook = objExcel.Workbooks.Add()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objWorksheet = objWorkbook.Worksheets(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ActiveDocument.GetSheetObject( "CH148" ).CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH148" )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'DIm array(7,2)&lt;BR /&gt;For RowIter = 0 to table.GetRowCount-1&lt;BR /&gt;For ColIter = 0 to table.GetColumnCount-1&lt;BR /&gt;set cell = table.GetCell(RowIter,ColIter)&lt;BR /&gt;'array(RowIter,ColIter)=cell.Text&lt;BR /&gt;objWorksheet.Cells(RowIter+1,ColIter+1).Value=cell.Text &lt;BR /&gt;'Msgbox(cell.Text)&lt;BR /&gt;Next&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objWorkbook.Saveas XlsPath&lt;BR /&gt;MsgBox("2")&lt;BR /&gt;objWorkbook.close&lt;BR /&gt;objExcel.quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set R = CreateObject("StatConnectorSrv.StatConnector")&lt;BR /&gt;R.Init "R"&lt;BR /&gt;MsgBox("Hi")&lt;BR /&gt;R.EvaluateNoReturn "source('C:/lab/Commands.R')"&lt;BR /&gt;MsgBox("Hi2")&lt;BR /&gt;ActiveDocument.Reload()&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;In my desktop its working fine.&lt;/P&gt;&lt;P&gt;But when I place the same qvw in accesspoint, macro is not connectign to R.&lt;/P&gt;&lt;P&gt;I opened the QVW file with 'IE plug in' only.&lt;/P&gt;&lt;P&gt;Please help ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2014 06:20:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-16T06:20:03Z</dc:date>
    <item>
      <title>Macro is not connecting to R</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-is-not-connecting-to-R/m-p/683919#M1085281</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;I wrote am macro as below:&lt;/P&gt;&lt;P&gt;1. Copy the chart properties and paste it to excel.&lt;/P&gt;&lt;P&gt;2. Connect to R and convert the excel data into JPG image.&lt;/P&gt;&lt;P&gt;3.Reload the script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Macro is as below: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XlsPath = "c:\lab\patient.xls"&lt;BR /&gt;'Create excel File&lt;BR /&gt;MsgBox("1")&lt;BR /&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objWorkbook = objExcel.Workbooks.Add()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objWorksheet = objWorkbook.Worksheets(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ActiveDocument.GetSheetObject( "CH148" ).CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH148" )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'DIm array(7,2)&lt;BR /&gt;For RowIter = 0 to table.GetRowCount-1&lt;BR /&gt;For ColIter = 0 to table.GetColumnCount-1&lt;BR /&gt;set cell = table.GetCell(RowIter,ColIter)&lt;BR /&gt;'array(RowIter,ColIter)=cell.Text&lt;BR /&gt;objWorksheet.Cells(RowIter+1,ColIter+1).Value=cell.Text &lt;BR /&gt;'Msgbox(cell.Text)&lt;BR /&gt;Next&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objWorkbook.Saveas XlsPath&lt;BR /&gt;MsgBox("2")&lt;BR /&gt;objWorkbook.close&lt;BR /&gt;objExcel.quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set R = CreateObject("StatConnectorSrv.StatConnector")&lt;BR /&gt;R.Init "R"&lt;BR /&gt;MsgBox("Hi")&lt;BR /&gt;R.EvaluateNoReturn "source('C:/lab/Commands.R')"&lt;BR /&gt;MsgBox("Hi2")&lt;BR /&gt;ActiveDocument.Reload()&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;In my desktop its working fine.&lt;/P&gt;&lt;P&gt;But when I place the same qvw in accesspoint, macro is not connectign to R.&lt;/P&gt;&lt;P&gt;I opened the QVW file with 'IE plug in' only.&lt;/P&gt;&lt;P&gt;Please help ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-is-not-connecting-to-R/m-p/683919#M1085281</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:20:03Z</dc:date>
    </item>
  </channel>
</rss>

