Skip to main content Skip to complementary content

Method descriptions

AboutBox

Displays an About QlikOCX box:

Parameters and properties
ParameterNo Parameter Type Direction Comment
return value - - - No return value

Example of use (VB.NET) :


Private Sub Button1_Click (ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
	AxQlikOCX1.AboutBox()
End Sub					

Example of use (C#):


private void button1_Click(object sender, EventArgs e)
{
	axQlikOCX1.AboutBox();
}							

HasOpenDocument

Returns true if the control currently has an open QV document.

Parameters and properties
ParameterNo Parameter Type Direction Comment
return value - Boolean - True if control has currently open QlikView document

Example of use (VB.NET) :


Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
	If AxQlikOCX1.HasOpenDocument Then
		AxQlikOCX1.ActiveDocument.CloseDoc()
	End If
End Sub					

Example of use (C#):


private void button2_Click(object sender, EventArgs e)
{
	if (axQlikOCX1.HasOpenDocument())
	{
		axQlikOCX1.ActiveDocument.CloseDoc();
	}
}						

OpenDocument

Opens a QlikView document in the control.

Parameters and properties
ParameterNo Parameter Type Direction Comment
return value - Document - QlikView document returned
1 DocName String in QV document file name (qvw or qva) with path
2 UserName String in QlikView document UserID
3 Password String in QlikView document Password

Example of use (VB.NET) :


Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button3.Click
	AxQlikOCX1.OpenDocument("c:\OcxDemo.qvw", "", "")
End Sub			

Example of use (C#):


private void button3_Click(object sender, EventArgs e)
{
	axQlikOCX1.OpenDocument("c:\\OcxDemo.qvw", "",
"");
}		

OpenDocumentEx

Opens a QlikView document in the control with extended functionality. Please refer to the QlikView API documentation for detailed information.

SetFocus

Moves the focus to the specified object.

Parameters and properties
ParameterNo Parameter Type Direction Comment
return value - - - No return value

Example of use (VB) :


Private Sub Command3_Click()
	QlikOCX1.SetFocus
End Sub		

ZOrder

Places a specified object at the front or back of the z-order within its graphical level.

Parameters and properties
ParameterNo Parameter Type Direction Comment
return value - - - No return value
Position 1 Integer in, optional 0 or omitted = front
1 = back

Example of use (VB) :


Private Sub Example()
	QlikOCX1.ZOrder
End Sub	

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com