예제 #1
0
        public String DoReport(String descriptor, Hashtable parameters)
        {
            String Index = ReportManager.GetReportIndex(descriptor);

            if (Index != "")
            {
                ReportConfiguration Configuration = ReportManager.InitReportConfiguration(Index);
                Report report = new Report(Configuration);
                report.InitReport(Index);
                ReportPanel reportPanel = new ReportPanel();
                reportPanel.Run(report, parameters);
                string reportStr = Serializer.GetObjectXml(reportPanel.ReportSpread, "FpSpread");
                reportStr = reportStr.Replace("<Data type=\"System.String\">0%</Data>", "<Data type=\"System.String\"> </Data>")
                            .Replace("<Data type=\"System.Int32\">0</Data>", "<Data type=\"System.String\"> </Data>")
                            .Replace("<Data type=\"System.Double\">0</Data>", "<Data type=\"System.String\"> </Data>")
                            .Replace("<Data type=\"System.String\">0</Data>", "<Data type=\"System.String\"> </Data>");
                return(reportStr);
            }

            return("");
        }