问题描述
我们所有的报告都是通过2个连接,SQL数据库连接和XSD文件创建的。在visual studio中,我们只需设置XSD中所需的值并使用ReportDocument.SetDataSource(data)。这在.net的早期版本中运行良好,但它在2005年没有!我已尝试使用ReportDocument.SetDataSource(data.tables(0))作为另一个帖子中的sugested但在这种情况下它不起作用。
All our reports are created with 2 connections, a SQL database connection and an XSD file. In visual studio we just set the values required in XSD and use the ReportDocument.SetDataSource(data). This worked fine in previous versions of .net however it doesn't in 2005! I've tried using ReportDocument.SetDataSource(data.tables(0)) as sugested in another posting but it doesn't work in this case.
我们所有的报告都是通过添加首先是SQL连接,然后是XSD,所以在树视图中,数据库字段以SQL实体开始,然后是XSD字段。这些报告始终为空白。
All our reports were created by adding the SQL connection first and then the XSD so in the tree view, database fields start with the SQL entities and then the XSD fields. These reports are always blank.
但是,如果我创建报告并先添加XSD文件然后再添加SQL连接,它会正确显示所有数据!!
However if I create a report and add the XSD file first and then the SQL Connection it displays all the data correctly!!
肯定这肯定是个错误
推荐答案
Don
这篇关于Visual Studio 2005 Crystal Blank报告连接顺序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!