我收到此错误:使用报表向导创建报表时“报表定义无效”

时间:2011-06-10 14:53:09

标签: c# asp.net crystal-reports

当我尝试使用报告向导创建报告时,我收到此错误。

报告定义无效。详细信息:名称空间“http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition”中的元素“TableCells”具有不完整的内容。预期可能元素列表:'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:TableCell'。 F:\ mysite的\ myReport.rdlc

请帮帮我这个家伙!

我的代码看起来像这样

<Table Name="table1">
<Top>0.5in</Top>
<Style />
<Header>
  <RepeatOnNewPage>true</RepeatOnNewPage>
  <TableRows>
    <TableRow>
      <TableCells></TableCells>
      <Height>0in</Height>
    </TableRow>
  </TableRows>
</Header>
<Details>
  <TableRows>
    <TableRow>
      <TableCells></TableCells>
      <Height>0in</Height>
    </TableRow>
  </TableRows>
</Details>
<TableColumns />
<DataSetName>reportDataSet_DataTable1</DataSetName>
</Table>

1 个答案:

答案 0 :(得分:2)

您的<TableCells></TableCells>元素必须至少包含一个<TableCell>

您的数据集是否包含任何列?

相关问题