Discussion Board for collaboration related to QlikView App Development.
I found below code on one of the community posts to capture screenshot:
public function ExportImage
vFolder = ActiveDocument.GetVariable("vExportFolder").GetContent().String
set obj = ActiveDocument.GetSheetByID("SH06")
fileName = "ExportScreen_" & replace(replace(replace(date() & "_" & time(), "/", ""), ".", ""), ":", "") & ".png"
obj.ExportBitmapToFile vFolder & fileName
Here vExportFolder=mid(DocumentPath(), 1, index(DocumentPath(), '\', -1))
On my desktop it works perfectly fine and saves it in the same location as my QVW.
When I host this application on the server, where will it be saved when users access it from AccessPoint?
No idea. At least not anywhere on the users machine. The Qlikview server does not have access to it. I wouldn't be surprised if the macro doesn't even run. A lot of macros only work in QV Desktop.
Is there any way I can add this functionality(capturing screenshot) so that it may work on server too ?