Esempio n. 1
0
 public ReportPageControl()
 {
     InitializeComponent();
     _radPageView.Font = this.Font;
     _radPageView.Dock = DockStyle.Fill;
     _radPageView.ViewElement.ShowItemCloseButton = false;
     this.panel1.Controls.Add(_radPageView);
     _reportPath = MifEnvironment.GetReportDir();
     CreateSubFoldername();
 }
Esempio n. 2
0
        private string CreateSubFoldername()
        {
            string baseDir       = MifEnvironment.GetReportDir() + "\\" + DateTime.Now.ToString("yyyyMMdd") + "\\";
            string folderTemp    = baseDir + "新素材信息-";
            string newFoldername = folderTemp + "1";
            int    index         = 1;

            while (Directory.Exists(newFoldername))
            {
                index++;
                newFoldername = folderTemp + index;
            }
            Directory.CreateDirectory(newFoldername);
            return(newFoldername);
        }