Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit777
Specialist
Specialist

Export to excel.

Hi all,

There is a option on charts "Export to excel".

Can I provide the same option on a button click so that as soon as the user clicks the button the chart opens in an excel.?

Do i require some macro for the same?


7 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

Hi ,

If you just want to copy the values from chart to excel then below is the code.

sub ExporttoExcel

set obj = ActiveDocument.GetSheetObject("CH271")

vFilename = "C:\qv-reports\" & obj.GetCaption.Name.v & ".csv"

obj.Export vFilename,","

end sub

But this macro will not work on ajax mode. The user should be viewing the application on plugin mode.

Regards

Deepak

anbu1984
Master III
Master III

its_anandrjs

Add a action on button >> Export >> Setup >> Add field there >> click on export to File >> Check Include labels >> click radio button records >> type the location record like D:\Excelfile.xls

Not applicable

right click> new sheet object > button > actions > add > external > launch

fill what you want to launch...

hope this is what you want

ankit777
Specialist
Specialist
Author

hi,

What do i do if I want user to define the path to save the excel file.?

I want the excel to open when user clicks button and he gets to save it at his desired location.

Not applicable

Once he opens it he can save it wherever he wants, its a basic excel file after opening...

anbu1984
Master III
Master III

Launch.bmp