Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
amars
Specialist
Specialist

Scheduling Export image to Excel through a batch file not working

Hi all,

We are trying to schedule an export image to excel through a batch file, so user's have access to the file to a shared location.

We are using qlikview 9.0 SR6 for development.

Now the macro for export image to excel contains the below line

     Set obj = ActiveDocument.GetSheetObject("CH02")  

     obj.CopyBitmapToClipboard

     XLDoc.Sheets(kost).Range("B8").Select

     XLDoc.Sheets(kost).PasteSpecial DataType=wdPasteBitmap

Now when the macro is excuting PostReload it does not get a reference to Chart CH02

as the line ActiveDocument.GetSheetObject can not get the reference

(as the document is not active & getting reloaded through a batch file)

Do any one of you have any solution (except using a publisher) for this macro to work?

Please suggest & thanks in advance.

Amar

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

HI Amar,

if your scheduling it from windows scheduler then it should work.

or try the same on QV 9 SR7.

Deepak

amars
Specialist
Specialist
Author

Sorry Deepak, it is not working through a windows schedular as well.

deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Can you attach the application so that I can check it my end.

Deepak