Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
montubhardwaj
Specialist
Specialist

Problem creating text file when run using publisher.

Hi All,

I have an application in which I have created a list box from a variable. Now, Using Macro, I am exporting this list box to a text file. I am triggering this Macro(which contains the code to export list box to text file) on Post reload. This is working all fine when I am running my application manually and creating a text file as desired. But when I am running the same application using publisher, the text file is not getting created. Can someone please let me know where it is going wrong ?

Regards,

Sharma

1 Reply
montubhardwaj
Specialist
Specialist
Author

Below is the macro which I have written for exporting List Box to text file.

sub test

set lb = ActiveDocument.GetSheetObject("LB01")

lb.Export "C:\Documents and Settings\USER\Desktop\test.txt" , ";"

end sub

This macro is fired on Post Reload. But when the file is reloaded using publisher, its is not working. This works all fine if  qvw is reloaded manually.

Any workaround for this ?