public List <string> GetExportDocumentIdList() { List <string> IdList = new List <string>(); var count = this._doc.NoOfSheets(); for (int i = 0; i < count; i++) { var sheet = this._doc.Sheets(i.ToString()); var objects = sheet.GetSheetObjects(); foreach (var item in objects) { string id = item.GetObjectId; short type = item.GetObjectType(); if (type == (int)SheetObjectType.Graph || type == (int)SheetObjectType.TableBox || type == (int)SheetObjectType.PivotTable || type == (int)SheetObjectType.StraigtTable) { IdList.Add(id); } if (type == (int)SheetObjectType.Container) { QlikView.Container c = item as QlikView.Container; for (int j = 0; j < c.GetProperties().ContainedObjects.Count; j++) { var obj = c.GetProperties().ContainedObjects[j]; IdList.Add(string.Format("Container:{0}|Object:{1}", c.GetObjectId(), obj.Id_OBSOLETE)); } } } } return(IdList); }
private int ExportJPGFromContainer(string idString, string filename) { string containerId = idString.Split("|".ToArray())[0].Replace("Container:", string.Empty); string objectId = idString.Split("|".ToArray())[1].Replace("Object:", string.Empty); var obj = this.FindSheetObject(containerId); if (obj != null) { QlikView.Container c = obj as QlikView.Container; if (c != null) { for (int j = 0; j < c.GetProperties().ContainedObjects.Count; j++) { var o = c.GetProperties().ContainedObjects[j]; if (o.Id_OBSOLETE == objectId) { return(ExecuteExportJPG(objectId, filename)); } } } } return(-1); }