private bool ReportSearchPredicate(MPSReportDocument Doc)
 {
     if (String.Compare(Doc.Name, ReportSearchName, true) == 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
        public static MPSReportDocument Read(System.IO.Stream ipf)
        {
            if (ReportSerializer == null)
            {
                NewSerializer();
            }

            MPSReportDocument Document = (MPSReportDocument)ReportSerializer.Deserialize(ipf);

            return(Document);
        }
예제 #3
0
        private MPSReportDocument FormatReport()
        {
            Stream input = Assets.Open("TestReport.xml");

            MPSReportDocument rpt = MPSReportDocument.Read(input);

            input.Close();

            MPSReportPage Page = rpt.Pages[0];

            FormatMainPage(Page);

            for (int i = 0; i < rpt.Pages.Count; i++)
            {
                rpt.Pages[i].SetTextField("Page", (i + 1).ToString());
                rpt.Pages[i].SetTextField("Pages", rpt.Pages.Count.ToString());
            }

            return(rpt);
        }
예제 #4
0
        private void CreateContentView()
        {
            HorizontalScrollView root = new HorizontalScrollView(this);

            ScrollView scroll = new ScrollView(this);

            root.AddView(scroll);

            LinearLayout layout = new LinearLayout(this);

            layout.Orientation = Orientation.Vertical;

            scroll.AddView(layout);


            doc = FormatReport();

            foreach (MPSReportPage page in doc.Pages)
            {
                page.Paint(layout, this, zoom);
            }

            SetContentView(root);
        }