Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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