Example #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];
 }
Example #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"));
        }
Example #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"));
 }