简体   繁体   English

报表不是表格格式时,如何将水晶报表数据导出为表格格式的excel

[英]How to export a crystal report data to excel in tabular format when report is not in tabular format

I have a crystal report with data in the following format.我有一个包含以下格式数据的水晶报告。

---------------------------------------

Name    : xxxx              Age     : xxxx
Surname : xxxx              Address : xxxx
DOB     : xxxx              Points  : xxxx

----------------------------------------

If I export the report and data to Excel I get the similar layout.如果我将报告和数据导出到 Excel,我会得到类似的布局。

However, I want the data in tabular format (like below) that is the first row will contain headers and the subsequent contain data但是,我想要表格格式的数据(如下所示),即第一行将包含标题,随后的包含数据

Name    Surname     DOB     Age     Address     Points
xxxx    xxxx        xxxx    xxxx    xxxx        xxxx
xxxx    xxxx        xxxx    xxxx    xxxx        xxxx
xxxx    xxxx        xxxx    xxxx    xxxx        xxxx

Is it possible to achieve this without changing the current layout of the report .是否可以在不更改报告的当前布局的情况下实现这一点。

I know that I can changing the layout and design to tabular format but the columns are many.我知道我可以将布局和设计更改为表格格式,但列很多。

Can I do this in code if so please assist.如果可以,我可以在code执行此操作,请提供帮助。 Thanks谢谢

Crystal also offers an Excel (Data Only) export format. Crystal 还提供 Excel(仅数据)导出格式。 That would indeed produce a tabular layout.这确实会产生表格布局。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM