Esempio n. 1
0
 public static CubeDef GetCubeDef(string cubeName)
 {
     ConnectionClass con = new ADODB.ConnectionClass();
       con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;",string.Empty,string.Empty,(int)ConnectModeEnum.adModeUnknown);
       CatalogClass cat = new ADOMD.CatalogClass();
       cat.ActiveConnection = con;
       return cat.CubeDefs[cubeName];
 }
Esempio n. 2
0
        public static CubeDef GetCubeDef(string cubeName)
        {
            ConnectionClass con = new ADODB.ConnectionClass();

            con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;", string.Empty, string.Empty, (int)ConnectModeEnum.adModeUnknown);
            CatalogClass cat = new ADOMD.CatalogClass();

            cat.ActiveConnection = con;
            return(cat.CubeDefs[cubeName]);
        }
        private void Page_Load(object sender, System.EventArgs e)
        {
            ConnectionClass con = new ADODB.ConnectionClass();

            con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;", string.Empty, string.Empty, (int)ConnectModeEnum.adModeUnknown);
            CatalogClass cat = new ADOMD.CatalogClass();

            cat.ActiveConnection = con;
            outputHTML           = TransformXMLStream(GetTreeXML(cat, con), Server.MapPath("xsl/tree.xsl"));
        }
Esempio n. 4
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     ConnectionClass con = new ADODB.ConnectionClass();
       con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;",string.Empty,string.Empty,(int)ConnectModeEnum.adModeUnknown);
       CatalogClass cat = new ADOMD.CatalogClass();
       cat.ActiveConnection = con;
       outputHTML = TransformXMLStream(GetTreeXML(cat,con),Server.MapPath("xsl/tree.xsl"));
 }