コード例 #1
0
        public int OpenReport(int projectId, int measId = -1)
        {
            Console.WriteLine("Open report: " + " " + measId.ToString());


            //string path = Encoding.Default.GetString(s);

            if (reportForm == null)
            {
                reportForm = new ReportForm(Path, RegPath);
            }
            reportForm.PrintType = ReportForm.ReportType.RT_Measurement;
            reportForm.ProjectId = projectId;
            reportForm.SetMeasId(measId);
            DialogResult res = reportForm.ShowDialog();


            return((res == DialogResult.OK) ? 1 : 0);
        }