Esempio n. 1
0
        private void childForm_FormClosed(object sender, EventArgs e)
        {
            ReportUpgradeFunctions repUpgFunc = new ReportUpgradeFunctions();

            repUpgFunc.CreateRDLCPart(allReports.children[0], sectionControls, ref sectionsList);
            RefreshChanges(allReports);
        }
Esempio n. 2
0
        private void buttonTransform_Click(object sender, EventArgs e)
        {
            //try
            //{

            ReportUpgradeFunctions RepUpgFunc = new ReportUpgradeFunctions();
            int NewID = 1110000;

            foreach (Part report in allReports.children)
            {
                // TRANSFORM DATAITEMS INTO DATASET
                RepUpgFunc.RefreshDataset(report, ref NewID, ref sectionControls, ref sectionsList, ref dataItemList);
                RefreshChanges(allReports);

                //REQUESTFORM->REQUESTPAGE
                RepUpgFunc.RefreshRequestForm(report, ref NewID);
                RefreshChanges(allReports);

                //GENERATE RDLC
                RepUpgFunc.CreateRDLCPart(report, sectionControls, ref sectionsList);
                RefreshChanges(allReports);
            }
            RefreshChanges(allReports);

            textBoxOriginalText.Text = allReports.valueOfPart;
            textBoxTransformed.Text  = allReports.transformedValue;



            MessageBox.Show("Done");

            /*}
             * catch (Exception ex)
             * {
             *  MessageBox.Show("An error has occured: " + ex);
             * }*/
        }