Ejemplo n.º 1
0
        public static Stream UpgradeToCurrent(Stream stream, bool throwUpgradeException, bool renameInvalidDataSources, out RDLUpgradeResult upgradeResults)
        {
            if (!stream.CanSeek)
            {
                throw new ArgumentException("Upgrade reqires Stream.CanSeek.");
            }
            RdlUpgrader rdlUpgrader = new RdlUpgrader();

            return(rdlUpgrader.Upgrade(stream, throwUpgradeException, true, renameInvalidDataSources, out upgradeResults));
        }
Ejemplo n.º 2
0
        public static Stream UpgradeToCurrent(XmlReader rdlReader, string namespaceURI, bool throwUpgradeException, bool upgradeDundasCRIToNative, out RDLUpgradeResult upgradeResults)
        {
            RdlUpgrader rdlUpgrader = new RdlUpgrader();

            return(rdlUpgrader.Upgrade(rdlReader, namespaceURI, throwUpgradeException, upgradeDundasCRIToNative, out upgradeResults));
        }