Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

alberto_pozzi
New Contributor II

How to Export straight table - Qlikview Server

hi,

I need to save a straight table, in a QVD file.

I do a macro in the client version, but in the server version of the button associated with the macro does not work,

Can i do the same on the server version??

This is my macro:

sub estrai_new

     set v = ActiveDocument.Variables("b_User")

     set obj = ActiveDocument.GetSheetObject("CH30")

     obj.ExportEx "Bud_"&v.GetContent.string&".qvd",4

end sub

thanks for the replies!!!

1 Solution

Accepted Solutions
erich_shiino
Honored Contributor

Re: How to Export straight table - Qlikview Server

Hi, Alberto

In the server environment, you need to change your macros to use the the methods serverside or serversideExport.

For example:

set tb = ActiveDocument.GetSheetObject("CH01")

tb.ServerSideExport "C:\test.skv" , ";" , 0       'ANSI

You can find more details in the apiguide.qvw

Hope it helps,

Erich

2 Replies
erich_shiino
Honored Contributor

Re: How to Export straight table - Qlikview Server

Hi, Alberto

In the server environment, you need to change your macros to use the the methods serverside or serversideExport.

For example:

set tb = ActiveDocument.GetSheetObject("CH01")

tb.ServerSideExport "C:\test.skv" , ";" , 0       'ANSI

You can find more details in the apiguide.qvw

Hope it helps,

Erich

Not applicable

Re: How to Export straight table - Qlikview Server

What if I want to use another qvw's straight table that is:

I have straight table in ''first.qvw" and i want to use another qvw to excute macro for exporting straight table

Community Browser