Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
lotfiblo
Creator
Creator

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

Use Qalyptus for your Qlik Sense on-premise and Qlik Sense SaaS Reporting
Connect with me on Linkedin
0 Replies