Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dradoikov
Partner - Contributor III
Partner - Contributor III

Running macro function in the loading script

Hello,


I have got the following problem: I want to export tables from the loading script and I am using macro function in the module:

function Export()

set qv = CreateObject("QlikTech.QlikView")

set doc = qv.OpenDoc("C:\Users\username\Desktop\ARP.qvw")

set chart = doc.GetSheetObject("CH09")

    chart.Export "D:\Data.txt", ", "

'doc.CloseDoc

'qv.Quit

end function

I cannot call it from the loading script.

Any advice is welcome.

Regards,

Daniel

1 Reply
marcus_sommer

It's not possible on this way. You will need to do it from outside of a load, see also: Macro running through load script or you could use a store-statement to an existing table to get the txt-file.

- Marcus