Пример #1
0
        private void PrintCalendar(Pabo.Calendar.PBCalendar myCalendar)
        {
            string Filename  = @"c:\Data\Calendar" + myCalendar.ActiveMonth.Year.ToString() + "-" + myCalendar.ActiveMonth.Month.ToString() + ".jpg";
            int    oriHeight = myCalendar.Size.Height;
            int    oriWidth  = myCalendar.Size.Width;
            int    oriX      = myCalendar.Location.X;
            int    oriY      = myCalendar.Location.Y;

            myCalendar.SetBounds(5, 10, 600, 600);
            myCalendar.SaveAsImage(Filename, System.Drawing.Imaging.ImageFormat.Jpeg);
            myCalendar.SetBounds(oriX, oriY, oriWidth, oriHeight);
        }
Пример #2
0
        private void PrintCalendar(Pabo.Calendar.PBCalendar myCalendar)
        {
            string Filename = System.IO.Path.Combine(CCFBGlobal.pathScreenshots, "Calendar"
                                                     + myCalendar.ActiveMonth.Year.ToString() + "-"
                                                     + myCalendar.ActiveMonth.Month.ToString() + ".jpg");

            int oriHeight = myCalendar.Size.Height;
            int oriWidth  = myCalendar.Size.Width;
            int oriX      = myCalendar.Location.X;
            int oriY      = myCalendar.Location.Y;

            myCalendar.SetBounds(5, 10, 600, 600);
            myCalendar.SaveAsImage(Filename, System.Drawing.Imaging.ImageFormat.Jpeg);
            myCalendar.SetBounds(oriX, oriY, oriWidth, oriHeight);
        }