Beispiel #1
0
        public void CreateSSRS_Project(string folder_To_Create, string Parent_Folder)
        {
            //  SSRS_Deploy.ReportService2010.Property[] p = new SSRS_Deploy.ReportService2010.Property[1];
            ReportingServices2010.Property[] properties = new ReportingServices2010.Property[2];
            ReportingServices2010.Property   p          = new ReportingServices2010.Property();
            p.Name        = "Hidden"; p.Value = "false";
            properties[0] = p;
            Property desc = new Property();

            desc.Name  = "";
            desc.Value = "";

            if (Parent_Folder == SSRS_Project)
            {
                desc.Name = "Description";

                try
                { string Server = ConfigurationManager.ConnectionStrings["Connection_" + folder_To_Create].ConnectionString;
                  //  Console.WriteLine( Server.IndexOf("initial", 12) );
                  desc.Value = Server.Substring(12, Server.IndexOf("initial", 12) - 12 - 1); }
                catch { Console.WriteLine("Error In Folder Creation"); }
            }
            properties[1] = desc;
            //   if(folder_To_Create.Contains("IPA") || folder_To_Create.Contains("CRA"))
            //  {
            rs.CreateFolder(folder_To_Create, @"/" + Parent_Folder, properties);
            Console.WriteLine("Create Folder => " + folder_To_Create);
            // }
        }
        public void CreateSSRSFolder()
        {
            string directory    = @"";
            bool   folderExists = CheckIfReportExists(SSRSFolder, directory, false);

            if (!folderExists)
            {
                rs.CreateFolder(SSRSFolder, @"/", null);
            }
            Console.WriteLine("Folder Exists => " + SSRSFolder);
        }