internal override Stream Upgrade(Stream definitionStream)
        {
            Stream stream = RDLUpgrader.UpgradeToCurrent(definitionStream, m_throwUpgradeException, m_renameInvalidDataSources);

            if (definitionStream != stream)
            {
                definitionStream.Close();
                definitionStream = null;
                if (Global.Tracer.TraceVerbose)
                {
                    try
                    {
                        StreamReader streamReader = new StreamReader(stream);
                        Global.Tracer.Trace(TraceLevel.Verbose, "Upgraded Report Definition\r\n");
                        Global.Tracer.Trace(TraceLevel.Verbose, streamReader.ReadToEnd());
                        Global.Tracer.Trace(TraceLevel.Verbose, "\r\n");
                        stream.Seek(0L, SeekOrigin.Begin);
                        return(stream);
                    }
                    catch (Exception e)
                    {
                        if (AsynchronousExceptionDetection.IsStoppingException(e))
                        {
                            throw;
                        }
                        return(stream);
                    }
                }
            }
            return(stream);
        }
示例#2
0
 public static Stream UpgradeToCurrent(Stream inStream, bool throwUpgradeException)
 {
     return(RDLUpgrader.UpgradeToCurrent(inStream, throwUpgradeException, true));
 }
示例#3
0
 internal static Stream UpgradeToCurrent(Stream inStream, bool throwUpgradeException)
 {
     return(RDLUpgrader.UpgradeToCurrent(inStream, throwUpgradeException, renameInvalidDataSources: true));
 }