示例#1
0
        public override IEnumerable <LocalRenderingExtensionInfo> ListRenderingExtensions()
        {
            if (m_renderingExtensions == null)
            {
                List <LocalRenderingExtensionInfo> list = new List <LocalRenderingExtensionInfo>();
                RPLRenderer rPLRenderer = new RPLRenderer();
                list.Add(new LocalRenderingExtensionInfo("RPL", rPLRenderer.LocalizedName, isVisible: false, typeof(RPLRenderer), isExposedExternally: false));
                ExcelRenderer excelRenderer = new ExcelRenderer();
                list.Add(new LocalRenderingExtensionInfo("Excel", excelRenderer.LocalizedName, isVisible: false, typeof(ExcelRenderer), isExposedExternally: true));
                ExcelOpenXmlRenderer excelOpenXmlRenderer = new ExcelOpenXmlRenderer();
                list.Add(new LocalRenderingExtensionInfo("EXCELOPENXML", excelOpenXmlRenderer.LocalizedName, isVisible: true, typeof(ExcelOpenXmlRenderer), isExposedExternally: true));
                ImageRenderer imageRenderer = new ImageRenderer();
                list.Add(new LocalRenderingExtensionInfo("IMAGE", imageRenderer.LocalizedName, isVisible: false, typeof(ImageRenderer), isExposedExternally: true));
                PDFRenderer pDFRenderer = new PDFRenderer();
                list.Add(new LocalRenderingExtensionInfo("PDF", pDFRenderer.LocalizedName, isVisible: true, typeof(PDFRenderer), isExposedExternally: true));
                WordDocumentRenderer wordDocumentRenderer = new WordDocumentRenderer();
                list.Add(new LocalRenderingExtensionInfo("WORD", wordDocumentRenderer.LocalizedName, isVisible: false, typeof(WordDocumentRenderer), isExposedExternally: true));
                WordOpenXmlDocumentRenderer wordOpenXmlDocumentRenderer = new WordOpenXmlDocumentRenderer();
                list.Add(new LocalRenderingExtensionInfo("WORDOPENXML", wordOpenXmlDocumentRenderer.LocalizedName, isVisible: true, typeof(WordOpenXmlDocumentRenderer), isExposedExternally: true));

                list.Add(new LocalRenderingExtensionInfo("MHTML", new ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension().LocalizedName, isVisible: true, typeof(ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension), isExposedExternally: true));
                list.Add(new LocalRenderingExtensionInfo("HTML4.0", new ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension().LocalizedName, isVisible: true, typeof(ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension), isExposedExternally: true));
                list.Add(new LocalRenderingExtensionInfo("HTML5", new ReportingServices.Rendering.HtmlRenderer.Html5RenderingExtension().LocalizedName, isVisible: true, typeof(ReportingServices.Rendering.HtmlRenderer.Html5RenderingExtension), isExposedExternally: true));

                m_renderingExtensions = list;
            }
            return(m_renderingExtensions);
        }
示例#2
0
 static ControlService()
 {
     if (m_renderingExtensions == null)
     {
         List <LocalRenderingExtensionInfo> list = new List <LocalRenderingExtensionInfo>();
         //Html.HTMLRenderer htmlRenderer = new Html.HTMLRenderer();
         //list.Add(new LocalRenderingExtensionInfo("HTML", htmlRenderer.LocalizedName, false, typeof(Html.HTMLRenderer), true));
         RPLRenderer rPLRenderer = new RPLRenderer();
         list.Add(new LocalRenderingExtensionInfo("RPL", rPLRenderer.LocalizedName, false, typeof(RPLRenderer), false));
         ExcelRenderer excelRenderer = new ExcelRenderer();
         list.Add(new LocalRenderingExtensionInfo("Excel", excelRenderer.LocalizedName, false, typeof(ExcelRenderer), true));
         ExcelOpenXmlRenderer excelOpenXmlRenderer = new ExcelOpenXmlRenderer();
         list.Add(new LocalRenderingExtensionInfo("EXCELOPENXML", excelOpenXmlRenderer.LocalizedName, true, typeof(ExcelOpenXmlRenderer), true));
         ImageRenderer imageRenderer = new ImageRenderer();
         list.Add(new LocalRenderingExtensionInfo("IMAGE", imageRenderer.LocalizedName, false, typeof(ImageRenderer), true));
         PDFRenderer pDFRenderer = new PDFRenderer();
         list.Add(new LocalRenderingExtensionInfo("PDF", pDFRenderer.LocalizedName, true, typeof(PDFRenderer), true));
         WordDocumentRenderer wordDocumentRenderer = new WordDocumentRenderer();
         list.Add(new LocalRenderingExtensionInfo("WORD", wordDocumentRenderer.LocalizedName, false, typeof(WordDocumentRenderer), true));
         WordOpenXmlDocumentRenderer wordOpenXmlDocumentRenderer = new WordOpenXmlDocumentRenderer();
         list.Add(new LocalRenderingExtensionInfo("WORDOPENXML", wordOpenXmlDocumentRenderer.LocalizedName, true, typeof(WordOpenXmlDocumentRenderer), true));
         m_renderingExtensions = list;
     }
 }