问题描述
嗨。
我现在有这样的报告:
Device1 Device2
Device1 Device2
Recipename1 Date1 SummaryData SummaryData
Recipename1 Date1 SummaryData SummaryData
Recipename1 Date2 SummaryData SummaryData
Recipename1 Date2 SummaryData SummaryData
Recipename2 Date2 SummaryData SummaryData
Recipename2 Date2 SummaryData SummaryData
数据源是在从sql server获取原始数据后由C#代码操作的数据集。然后我使用推模型将这些数据放入水晶报告中。我通过配方名称和日期信息(已在数据集中完成)总结了上面的列数据。
The data source is a dataset that I manipulate by C# code after getting the raw data from a sql server. I then use the push model to put this data into a crystal report. I summarize column data above by recipe name and date information (done already in the dataset).
原始数据现在已经更改,因此有关于设备的信息(以前不可用)。可以更改设备,这应该在报告中看到。客户希望得到如下报告:
The raw data has now been changed so that there is information about the devices (which wasn't available before). The devices can be changed and this should be seen in the report. The customer would like a report like this:
DeviceName1Version1 DeviceName2Version1
DeviceName1Version1 DeviceName2Version1
Recipename1 Date1 SummaryData SummaryData
Recipename1 Date1 SummaryData SummaryData
Recipename1 Date2 SummaryData SummaryData
Recipename1 Date2 SummaryData SummaryData
DeviceName1Version2 DeviceName2Version1
DeviceName1Version2 DeviceName2Version1
Recipename1 Date2 SummaryData SummaryData
Recipename1 Date2 SummaryData SummaryData
Recipename2 Date2 SummaryData SummaryData
Recipename2 Date2 SummaryData SummaryData
与第一个报告版本的区别在于,列名本身就是数据 - 应该作为列名重新打印的数据如果他们改变原始数据。如果可以提出这样的报告,我会感到茫然。我可以操作给报告的数据集但是我想要但是动态地将新的列名行插入到报告中是我认为无法完成的事情。
The difference to the first report version is now that the columnnames themselves are data - data that should be reprinted as columnnames in case they change in the raw data. I am at a loss if this kind of report can be made. I can manipulate the dataset given to the report however I want but inserting new columnname rows into the report dynamically is something that I'm thinking can't be done.
我是已经在考虑替代报告设置,但我想先问一下,如果有人知道某种方式。也欢迎备选报告解决方案。
I am already thinking about alternative report setups but thought I'd ask here first if someone knew of a way. Alternative report solutions are also welcome.
提前谢谢你,CKa。
推荐答案
这篇关于如何制作这种报道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!