Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
        public void Preview(ReportConnection connection)
        {
            this.SetConnection(connection);
            this.OpenConnector();

            this.Show();
            System.Threading.Thread.Sleep(10000);
            this.Hide();
        }
Exemplo n.º 3
0
 public void Preview(ReportConnection connection)
 {
     this._qlikViewConnector.Preview(connection);
 }
Exemplo n.º 4
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;
            }
        }
Exemplo n.º 5
0
 public void Preview(ReportConnection connection)
 {
     //Do Nothing
 }