Пример #1
0
    private string GetParameters(Uri sourcefile)
    {
        string parameters = "";
        string sourceRdl = System.IO.File.ReadAllText(sourcefile.LocalPath);
        fyiReporting.RDL.RDLParser parser = new fyiReporting.RDL.RDLParser(sourceRdl);
        parser.Parse();
        if (parser.Report.UserReportParameters.Count > 0)
        {
					
            int count = 0;
            foreach (fyiReporting.RDL.UserReportParameter rp in parser.Report.UserReportParameters)
            {
                parameters += "&" + rp.Name + "=";
            }
			
            fyiReporting.RdlGtkViewer.ParameterPrompt prompt = new fyiReporting.RdlGtkViewer.ParameterPrompt();
            prompt.Parameters = parameters;
            if (prompt.Run() == (int)Gtk.ResponseType.Ok)
            {
                parameters = prompt.Parameters;
            }
            prompt.Destroy();
			
        }	
		
        return parameters;
    }
Пример #2
0
    private string GetParameters(Uri sourcefile)
    {
        string parameters = "";
        string sourceRdl  = System.IO.File.ReadAllText(sourcefile.LocalPath);

        fyiReporting.RDL.RDLParser parser = new fyiReporting.RDL.RDLParser(sourceRdl);
        parser.Parse();
        if (parser.Report.UserReportParameters.Count > 0)
        {
            int count = 0;
            foreach (fyiReporting.RDL.UserReportParameter rp in parser.Report.UserReportParameters)
            {
                parameters += "&" + rp.Name + "=";
            }

            fyiReporting.RdlGtkViewer.ParameterPrompt prompt = new fyiReporting.RdlGtkViewer.ParameterPrompt();
            prompt.Parameters = parameters;
            if (prompt.Run() == (int)Gtk.ResponseType.Ok)
            {
                parameters = prompt.Parameters;
            }
            prompt.Destroy();
        }

        return(parameters);
    }