Qlik Community

QlikView Integration

Discussion Board for collaboration on QlikView Integration.

lotfiblo
New Contributor III

QlikView OCX C#, Get list of sheet objects

Hi,

I have a question about QlikView OCX, I want  to convert from VBScript to C# these expressions :

Set MySheet = ActiveDocument.GetSheet(i)

MyCharts=MySheet.GetSheetObjects

MsgBox (MyCharts(j).GetObjectId )

a tried this :

Sheet MySheet = axQlikOCX1.ActiveDocument.GetSheet(i);

SheetObject [] MyCharts = MySheet.GetSheetObjects();

MessageBox.Show(MyCharts.ToString());

but a i have this error :

"Cannot implicitly convert type 'object' to 'QlikView.SheetObject[]'."

in QlikView API guide, the type of GetSheetObjects() method is "Variant (Array of SheetObject)"

Someone could help me to solve this problem ?

Thank you in adavance

Best regard's

Lotfi

Community Browser