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)); }
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)); }