Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Store data into an xslx file

I want to store data from a resident table to a xslx file.

How can I go about doing that? I want to do this process when I run the Qlikview itself and not export to xls.

1 Solution

Accepted Solutions
mclen_vj
Partner - Contributor
Partner - Contributor

As part of your script you can store into csv file and open in excel.

e.g.

Store A into A.csv(txt);

-VJ

View solution in original post

8 Replies
susovan
Partner - Specialist
Partner - Specialist

Hi Ronak,

Please find the attachment,

Warm Regards,
Susovan
mclen_vj
Partner - Contributor
Partner - Contributor

As part of your script you can store into csv file and open in excel.

e.g.

Store A into A.csv(txt);

-VJ

Not applicable
Author

This is VB Script. I am looking for Qlikview code such as STORE function to be able to export into excel from the QV script

Frank_Hartmann
Master II
Master II

susovan
Partner - Specialist
Partner - Specialist

Hi Ronak,

You can also try this,

Table:

LOAD * INLINE [

ICODE

A

B

C

D

E

];

STORE Table into 'D:\PERSONAL\Qlik Community\' Icode.xlsx;

Warm Regards,
Susovan
susovan
Partner - Specialist
Partner - Specialist

Try this script,

Table:

LOAD * INLINE [

ICODE

A

B

C

D

E

];

STORE Table into 'D:\PERSONAL\Qlik Community\' Icode.xlsx;

Warm Regards,
Susovan
Not applicable
Author

This doesn't work. It saves it as an xlsx but on trying to open the file - I get the message that file is corrupt or saved in incorrect format

edddddy24
Contributor II
Contributor II

Hi.

Unfortunately, QV just store QVD,TXT or CSV files. Here some help text from QV:

A QVD or a CSV file can be created by a store statement in the script. The statement will create an explicitly named QVD or CSV file. The statement can only export fields from one logical table. The text values are exported to the CSV file in UTF-8 format. A delimiter can be specified, see Load. The store statement to a CSV file does not support BIFF export.

store[ *fieldlist from] table into filename [ format-spec ];

*fieldlist::= ( * | field ) { , field } ) is a list of the fields to be selected. Using * as field list indicates all fields.

field::= fieldname [as aliasname ]

fieldname is a text that is identical to a field name in the table. (Note that the field name must be enclosed by straight double Quotation Marks in Scripting or square brackets if it contains e.g. spaces.)

aliasname is an alternate name for the field to be used in the resulting QVD or CSV file.

table is a script labeled, already loaded table to be used as source for data.

filename is the name of the target file. The interpretation of file name is similar to names in load statements, i.e. the directory statements apply.

format-spec ::= ( ( txt | qvd ) )

The format specification consists of a the text txt for text files, or the text qvd for qvd files. If the format specification is omitted, qvd is assumed.

Examples:

Store mytable into xyz.qvd (qvd);

Store * from mytable into xyz.qvd;

Store Name, RegNo from mytable into xyz.qvd;

Store Name as a, RegNo as b from mytable into xyz.qvd;

store mytable into myfile.txt (txt);

store * from mytable into myfile.txt (txt);

(The two first examples have identical function.)