日期:2014-05-20  浏览次数:20833 次

rdlc表报
往一个报表里传2个数据源,桃花汛二个显示没问题,第一个全显示错误号.是怎么回事?麻烦帮忙分析下可能出错的原因.
  <DataSets>
    <DataSet Name="ReportDemoDataSet_ReportDemoTable">
      <Fields>
        <Field Name="date">
          <DataField>date</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>DummyDataSource</DataSourceName>
        <CommandText />
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
      <rd:DataSetInfo>
        <rd:DataSetName>ReportDemoDataSet</rd:DataSetName>
        <rd:TableName>ReportDemoTable</rd:TableName>
      </rd:DataSetInfo>
    </DataSet>
    <DataSet Name="ReportDemoDataSet_ReportDemoTable2">
      <Fields>
        <Field Name="xuhao">
          <DataField>xuhao</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>DummyDataSource2</DataSourceName>
        <CommandText />
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
      <rd:DataSetInfo>
        <rd:DataSetName>ReportDemoDataSet2</rd:DataSetName>
        <rd:TableName>ReportDemoTable2</rd:TableName>
      </rd:DataSetInfo>
    </DataSet>
  </DataSets>

  <DataSources>
    <DataSource Name="DummyDataSource">
      <rd:DataSourceID>294be5fd-b211-4d77-a19b-4941d04fb5a3</rd:DataSourceID>
      <ConnectionProperties>
        <DataProvider>SQL</DataProvider>
        <ConnectString />
      </ConnectionProperties>
    </DataSource>
    <DataSource Name="DummyDataSource2">
      <rd:DataSourceID>294be5fd-b211-4d77-a19b-4941d04fb5a3</rd:DataSourceID>
      <ConnectionProperties>
        <DataProvider>SQL</DataProvider>
        <ConnectString />
      </ConnectionProperties>
    </DataSource>
  </DataSources>

------解决方案--------------------
引用:
引用:又是贴代码???楼主还是重新写第一个吧...我贴代码又错了???我不贴代码有人说...贴了还是有人说!!!

贴代码没错,不过,很少人看,除了一些大牛会看看,几率很小,楼主不如尝试时自己解决,尝试断点看看