gpt4 book ai didi

c# - Telerik 报告只有 PDF 选项,没有 Excel 和 Word 选项

转载 作者:太空宇宙 更新时间:2023-11-03 22:40:54 28 4
gpt4 key购买 nike

当我生成 Telerik Report 时,只有 Export PDF 可用。即使我将 docx 和 xlsx 的配置设置为 true。这是我在网络配置中的配置。

<configSections>
<section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" allowLocation="true" allowDefinition="Everywhere" />
</configSections>



<Telerik.Reporting>
<AssemblyReferences>
<add name="BusinessObject.Client" version="1.0.0.0" />
<add name="BusinessObject.Client" version="1.0.0.0" />
</AssemblyReferences>
<Extensions>
<Render>
<Extension name="PDF" visible="true"></Extension>
<Extension name="XLS" visible="false"></Extension>
<Extension name="CSV" visible="false"></Extension>
<Extension name="RTF" visible="false"></Extension>
<Extension name="XPS" visible="false"></Extension>
<Extension name="DOCX" visible="true"></Extension>
<Extension name="XLSX" visible="true"></Extension>
<Extension name="PPTX" visible="false"></Extension>
<Extension name="MHTML" visible="false"></Extension>
<Extension name="IMAGE" visible="false"></Extension>
<Extension name="HTML5" visible="false"></Extension>
<Extension name="HTML5Interactive" visible="false"></Extension>
</Render>
</Extensions>
</Telerik.Reporting>

我正在为 ASP.Net 使用 Telerik

最佳答案

Word, PowerPoint and Excel rendering extensions requireTelerik.Reporting.OpenXmlRendering.dll and Open XML SDK 2.0 forMicrosoft Office (DocumentFormat.OpenXml.dll v.2.0.5022.0 orabove). If you want to avoid the installation of Open XML SDK you cancopy the required DocumentFormat.OpenXml assembly from C:\ProgramFiles (x86)\Telerik\Reporting {version}\Examples\bin folder.

有关该主题的更多信息,请查看 Deploying Web Applications帮助文章。

链接:telerik.com/forums/report-exporting-word-excel-ets

关于c# - Telerik 报告只有 PDF 选项,没有 Excel 和 Word 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52252373/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com