Search code examples
apibackendqlikviewgetscript

how to get the script from an qlikview qvw file?


i try to get the script as string from an local qvw file.

i created a simple windows-form-application and add a reference to my local qlikview desktop installation so i can access the object model.

                QlikView.Application QVApp;
                QVApp = new QlikView.Application();
                QVApp.OpenDoc(fileName);

This code example works very well and the qvw file opens in the local client.

But my goal is to get access to the script. The help site from qlik tells there is a "getscript" method, but i can't find it.

Any advice on how to find this method or how to access to the script?

thank you very much for any hints.


Solution

  • The site refers to the Qlik Engine API, something different.

    ActiveDocument().GetProperties().Script
    

    This should work. For a complete API reference, please download API guide here :

    https://community.qlik.com/docs/DOC-2640