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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accessing QlikView documents from outside QlikView

Hi,

I have QV 9.0 PE.

But i want to Accessing QlikView documents from outside QlikView. So that i write the following vba code it throws an error. I added the references qv 9.0 type library in vb

Private Sub CommandButton1_Click()
Dim doc1 As New QlikView.ActiveDocument
Set app1 = doc1.GetApplication

Set doc2 = appl.OpenDoc("D:\Business.qvw", "", "")
doc2.Activate

End Sub

error as

automation error unspecified error vba

Thanks in advance

Murugavel

Labels (1)
15 Replies
Not applicable
Author

Hi Mugavel,

Yes my selected path variable is getting value.

check i have put the code again.Could you please now correct the same ,so taht i can open it in the server?

Sub Absorption

dim SelectedReportPath

set mySelections = ActiveDocument.fields("DESCRIPTION").GetPossibleValues

'Only if one selection is done

if mySelections.Count = 1 then

set FileName = ActiveDocument.fields("PATH").GetPossibleValues

SelectedReportPath = FileName.Item(0).text

Set App = ActiveDocument.GetApplication

Set newdoc = App.Opendoc (SelectedReportPath,"","")

End if

End Sub

Thanks,

Mahasweta

Not applicable
Author

Hi Mugavel,

Yes my selected path variable is getting value.

check i have put the code again.Could you please now correct the same ,so taht i can open it in the server?







Sub

dim

set

'Only if one selection is done

if

then set FileName = ActiveDocument.fields("PATH").GetPossibleValues

mySelections.Count = 1 mySelections = ActiveDocument.fields("DESCRIPTION").GetPossibleValues SelectedReportPath Absorption

SelectedReportPath = FileName.Item(0).text







Set

Set

End

if

End

newdoc = App.Opendoc (SelectedReportPath,"","") App = ActiveDocument.GetApplication

Sub







Not applicable
Author

Hi Mugavel,

Yes my selected path variable is getting value.

check i have put the code again.Could you please now correct the same ,so taht i can open it in the server?







Sub

dim

set

'Only if one selection is done

if

then set FileName = ActiveDocument.fields("PATH").GetPossibleValues

mySelections.Count = 1 mySelections = ActiveDocument.fields("DESCRIPTION").GetPossibleValues SelectedReportPath Absorption

SelectedReportPath = FileName.Item(0).text







Set

Set

End

if

End

newdoc = App.Opendoc (SelectedReportPath,"","") App = ActiveDocument.GetApplication

Sub







Not applicable
Author

sorry for so many duplicate posts

Thanks,

Mahasweta

Not applicable
Author

You can delete the duplicates by clicking on more...

Not applicable
Author

Hi All,

Requesting the followers of this post to help me out here. I hope some here can help me out.

http://community.qlik.com/forums/t/29148.aspx