Example #1
0
        public void SetConnection(QlikView.Common.ReportConnection connection)
        {
            if (CurrentConnection == null || CurrentConnection.Name != connection.Name || this._doc == null)
            {
                if (connection.IsLocal == false)
                {
                    this.axQlikOCX1.UserName = connection.User;
                    this.axQlikOCX1.Password = connection.Password;
                    string doc = string.Format("qvp://{0}/{1}", connection.ServerName, connection.QlikViewDocument);
                    this._doc = this.axQlikOCX1.OpenDocument(doc);
                }
                else
                {
                    this._doc = this.axQlikOCX1.OpenDocument(connection.QlikViewDocument);
                }

                CurrentConnection = connection;
            }
        }
Example #2
0
        public void Preview(ReportConnection connection)
        {
            this.SetConnection(connection);
            this.OpenConnector();

            this.Show();
            System.Threading.Thread.Sleep(10000);
            this.Hide();
        }
 public void Preview(ReportConnection connection)
 {
     this._qlikViewConnector.Preview(connection);
 }
        public void SetConnection(QlikView.Common.ReportConnection connection)
        {
            if (CurrentConnection == null || CurrentConnection.Name != connection.Name || this._doc == null)
            {
                if (connection.IsLocal == false)
                {
                    this.axQlikOCX1.UserName = connection.User;
                    this.axQlikOCX1.Password = connection.Password;
                    string doc = string.Format("qvp://{0}/{1}", connection.ServerName, connection.QlikViewDocument);
                    this._doc = this.axQlikOCX1.OpenDocument(doc);
                }
                else
                {
                    this._doc = this.axQlikOCX1.OpenDocument(connection.QlikViewDocument);
                }

                CurrentConnection = connection;
            }
        }
 public void Preview(ReportConnection connection)
 {
     //Do Nothing
 }