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: 
Not applicable

How to check qvd is available in qvw files using OCX c#

Hi is there any way to find qvd is availabe in qvw files using qlikview ocx??

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Do not understand your question.Do you want to determine if a qvd exists from the load script, or do you want to do that from a bat file or C# executable?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

i want to check it from c# exe... when i load qvw file i need to know weather data or qvd  is available. just need to find its is dashboard or template.

jonathandienst
Partner - Champion III
Partner - Champion III

Why do you need a c# exe to determine whether a qvd exists when reloading your dashboard? Just use the built-in functions:

     Let vQVDExists = (Alt(QvdNoOfRecords('E:\QVDFiles\myQVDFile.qvd'), 0) > 0);

     If vQVDExists Then

          ... do stuff

     Else

          ... do other stuff

     End If

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein