Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
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

about Exportex

I would like to export to textfile.

// Ok macro

set obj = ActiveDocument.GetSheetObject("CH01")

obj.ExportEx "test1.txt",4

// Error macro

set obj = ActiveDocument.GetSheetObject("CH01")

obj.ExportEx "test2.txt",1

I do not understand the reason for this error.

Please help me.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Kenji-san,

It seems like (possibly a bug) you need to specify the full path for the ExportEx to work with parameter 1 for export type.

For example:

obj.ExportEx "C:\Foldername\test2.txt",1

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi Kenji-san,

It seems like (possibly a bug) you need to specify the full path for the ExportEx to work with parameter 1 for export type.

For example:

obj.ExportEx "C:\Foldername\test2.txt",1

Not applicable
Author

Hi Johannes-san,

Thank you for your cooperation.

I specified the full path, but it was the same result.

Anonymous
Not applicable
Author

What is the Error you are receiving?

I see "Cannot open file text2.txt for writing!" if I don't have the full path. With the full path it writes the text file properly for me.

Not applicable
Author

Hi Johannes-san,

I have solved thanks to you.

Anonymous
Not applicable
Author

That's good Kenji-san.

Glad I could help