[英]Crystal Report Page Header Not Visible in Export To Excel (Data Only)
I have a report with headers in the page header section, this data is not visible in the "Export to Excel(Data only)" report.我在页眉部分有一个带有标题的报告,此数据在“导出到 Excel(仅数据)”报告中不可见。
Please let me know what I did that changed this since it used to be visible before the report layout was edited.请让我知道我做了什么改变了这一点,因为它在编辑报告布局之前是可见的。
Thanks in advance提前致谢
You can export using the "Export to Excel (Data Only)" option and show page headers in Excel using the default values presented in the export dialog.您可以使用“导出到 Excel(仅数据)”选项进行导出,并使用导出对话框中显示的默认值在 Excel 中显示页眉。
It just requires a little trial and error to get working.只需要一点点试错就可以开始工作。
Firstly, ensure that your page header text objects exactly match the width of the underlying objects in your detail area.首先,确保您的页眉文本对象与详细信息区域中底层对象的宽度完全匹配。
Make all page header text objects the same height (select all / right click / Size / Same Height).使所有页眉文本对象的高度相同(全选/右键单击/大小/相同高度)。
Align all page header text objects to the top of the page header area.将所有页眉文本对象与页眉区域的顶部对齐。 Reduce the height of the page header area so that it almost touches the bottom of the page headers.降低页眉区域的高度,使其几乎接触页眉底部。
Don't use the "Export to Excel (Data Only)" option - the page headings aren't considered to be part of the data, and so won't get exported using this option.不要使用“导出到 Excel(仅数据)”选项 - 页面标题不被视为数据的一部分,因此不会使用此选项导出。
Use the "Export to Excel" option immediately above the data only option, instead.改为使用仅数据选项正上方的“导出到 Excel”选项。
This problem can also arise when exporting a report, that has more content in the page header than headers, ie a title, page number, date etc. A solution for that scenario is to add another page header and move the headers into that group.导出报告时也会出现此问题,该报告的页眉内容多于页眉,即标题、页码、日期等。这种情况的解决方案是添加另一个页眉并将页眉移到该组中。 That way you can still display things in pdf as before as well as get headers on the export.这样,您仍然可以像以前一样以 pdf 格式显示内容,并在导出时获取标题。 As mentioned above you still have to ensure all the header text blocks are aligned properly and that the height of the row is minimized as much as possible.如上所述,您仍然必须确保所有标题文本块正确对齐,并且行的高度尽可能地最小化。
Go to File->Export->Export Options and choose Excel.转到文件-> 导出-> 导出选项并选择 Excel。 You'll see the panel below.您将看到下面的面板。 Did someone change the option in the middle?有人改变了中间的选项吗?
There is a very simple method that I use.我使用了一种非常简单的方法。 I insert a second detail line above my record line and insert my header on it.我在我的记录行上方插入第二个细节行并在其上插入我的标题。 Then put the following statement in the Section Expert to suppress if "RecordNumber<>1. This way the header only appears once and will also export when exported to Microsoft Excel (Data-Only).然后将下面的语句放在 Section Expert 中以抑制 if "RecordNumber<>1。这样标题只出现一次,并且在导出到 Microsoft Excel (Data-Only) 时也会导出。
if you have columns headers that are not exporting - the column headers have to all be the same height.如果您有未导出的列标题 - 列标题必须具有相同的高度。 (and nothing can overlap) so just highlight them - choose the one that is the tallest last - and say make same height. (并且没有任何东西可以重叠)所以只需突出显示它们 - 选择最后一个最高的 - 并说制作相同的高度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.