21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

82.4 VBScript functions<br />

VBScript functions defined in the module of a <strong>QlikView</strong> document will generally work well on <strong>QlikView</strong><br />

Server. General functionality limitations as defined in the previous section apply.<br />

82.5 Server Side Export<br />

It is possible to export the content of any chart to a text file on the server by using a Macro connected to a<br />

Button. This feature has to be added in the <strong>QlikView</strong> document and then the macro can be executed from<br />

the <strong>QlikView</strong> Server directly in the web browser.<br />

In the <strong>QlikView</strong> document QWT.qvw provided on the CD, you find a sheet called “Server Side Export”. As<br />

the button is clicked, the content of the Straight Table CH20 can be exported as a text file to the server directory<br />

for <strong>QlikView</strong> Server. The exported data can then easily be read into Excel or other programs.<br />

Below you find a sample of VB Script code used in the Edit Module in <strong>QlikView</strong> for making the export possible.<br />

The macro is then connected to a trigger, in the case of this example, a button.<br />

884<br />

Sub ServerExportEx<br />

Set st = ActiveDocument.GetSheetObject("CH20")<br />

st.ServerSideExportEx "C:\ProgramFiles\<strong>QlikView</strong> Server\CH20export.skv"<br />

, ";" ,0<br />

End Sub

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!