Exemple #1
0
        } // End Function GetParameter

        public static System.Xml.XmlNode GetParameter(System.Xml.XmlDocument doc, string strParameterName)
        {
            strParameterName = XmlTools.XmlEscape(strParameterName);

            System.Xml.XmlNamespaceManager nsmgr   = GetReportNamespaceManager(doc);
            System.Xml.XmlNode             xnParam = doc.SelectSingleNode("/dft:Report/dft:ReportParameters/dft:ReportParameter[@Name=\"" + strParameterName + "\"]", nsmgr);

            return(xnParam);
        } // End Function GetParameter
Exemple #2
0
        } // End Function HasDataSet

        public static bool HasDataSet(System.Xml.XmlDocument doc, string dataSetName)
        {
            dataSetName = XmlTools.XmlEscape(dataSetName);

            System.Xml.XmlNamespaceManager nsmgr  = GetReportNamespaceManager(doc);
            System.Xml.XmlNode             xnProc = doc.SelectSingleNode("/dft:Report/dft:DataSets/dft:DataSet[@Name=\"" + dataSetName + "\"]", nsmgr);

            return(xnProc != null);
        } // End Function HasDataSet
Exemple #3
0
        } // End Function HasDataSet

        public static string GetDataSetDefinition(System.Xml.XmlDocument doc, string dataSetName)
        {
            dataSetName = XmlTools.XmlEscape(dataSetName);

            if (HasDataSet(doc, dataSetName))
            {
                System.Xml.XmlNamespaceManager nsmgr = GetReportNamespaceManager(doc);
                System.Xml.XmlNode             xnSQL = doc.SelectSingleNode("/dft:Report/dft:DataSets/dft:DataSet[@Name=\"" + dataSetName + "\"]/dft:Query/dft:CommandText", nsmgr);
                return(xnSQL.InnerText);
            }

            return(null);
        } // End Function GetDataSetDefinition
Exemple #4
0
        } // End Sub AddCustomDataSet

        public static System.Xml.XmlNode GetImageTag(System.Xml.XmlDocument doc, string strImageName)
        {
            strImageName = XmlTools.XmlEscape(strImageName);

            System.Xml.XmlNamespaceManager nsmgr = GetReportNamespaceManager(doc);
            // doc.SelectSingleNode("/dft:Report/dft:ReportParameters/dft:ReportParameter[@Name=\"in_standort\"]/dft:Prompt", nsmgr);
            //string str = "/dft:Report/dft:Page/dft:PageHeader/dft:ReportItems/dft:Image[@Name=\"" + strImageName + "\"]";
            string str = "//dft:ReportItems/dft:Image[@Name=\"" + strImageName + "\"]";

            System.Xml.XmlNode xnParam = doc.SelectSingleNode(str, nsmgr);

            return(xnParam);
        } // End Function GetImageTag
Exemple #5
0
        } // End Function GetParameterDefaultValue

        public static string GetParameterDefaultValue(System.Xml.XmlDocument doc, string strParameterName)
        {
            strParameterName = XmlTools.XmlEscape(strParameterName);

            System.Xml.XmlNamespaceManager nsmgr   = GetReportNamespaceManager(doc);
            System.Xml.XmlNode             xnParam = doc.SelectSingleNode("/dft:Report/dft:ReportParameters/dft:ReportParameter[@Name=\"" + strParameterName + "\"]/dft:DefaultValue/dft:Values/dft:Value", nsmgr);

            if (xnParam != null)
            {
                return(xnParam.InnerText);
            }

            return(null);
        } // End Function GetParameterDefaultValue