private void FormatMainPage(MPSReportPage Page)
        {
            Page.SetTextField("TextField2", "My Really Nice Report");
            MPSImageField SigField = (MPSImageField)Page.GetField("ImageField1");

            SigField.Image = BitmapFactory.DecodeResource(Resources, Resource.Drawable.Xamarin);

            SigField = (MPSImageField)Page.GetField("TSPSig");
        }
        public object Clone()
        {
            MPSReportPage Page = (MPSReportPage)this.MemberwiseClone();

            Page.Fields = new List <MPSReportField>();
            foreach (MPSReportField Field in this.Fields)
            {
                Page.Fields.Add((MPSReportField)Field.Clone());
            }
            return(Page);
        }
        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);
        }