Re: RDC + ADO.NET dataset

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 04/19/04


Date: Mon, 19 Apr 2004 00:05:18 -0700


  Hi Rafe,

  I have the exact code you need in Chapter 20 of my book.

  You assign a dataset to the RDC by calling the SetDataSource() method.
Here is an example of passing a dataset with two tables in it to the RDC.

  myReport.Database.SetDataSource(myDataSet.Tables("tablename"), 3, 1)
  myReport.Database.SetDataSource(myDataSet.Tables("secondtable"), 3, 2)

  The first parameter is the datatable object. The second parameter is
always the number "3" so that CR knows you are passing a datatable. The
third parameter is the table's number in the report (its 1 based).

  HTH,

     Brian Bischof
      http://www.crystalreportsbook.com/123aspx.asp

    A Crystal Reports.NET book for programmers? Its here!
    * Covers ASP.NET and Windows Forms
    * Teaches all phases of report development
    * Alerts you to the bugs and how to get around them
    * Maps out the complex ReportDocument object model
    * Shows how to perform runtime customization
    * Demonstrates all options of connecting with ADO.NET
    * Gives complete code listings

  "Rafał J. Dumański" <R.Dumanski@kruk-inkaso.com.pl> wrote in message
news:e2vBjedJEHA.2244@tk2msftngp13.phx.gbl...
> Hi
>
> Is it possible (how?) to pass a dataset (ADO.NET) to RDC 9 or RDC
10?
>
> Regards,
> Rafał J. Dumański
>
>



Relevant Pages

  • Crystal Report Designer 9 (Exporting, Printing, Viewing)
    ... developers can now create reports at design time and use the RDC object ... The Report Designer Component is composed of 4 primary DLLs: ... Craxdrt9.dll – (Crystal Reports ActiveX Designer Run Time Library). ...
    (microsoft.public.vb.general.discussion)
  • Chart Labels And Unbound Fields
    ... My report has a pie chart and I would like to display labels showing both ... Unfortunately RDC shows "@" before the name ... of the field (these unbound fields are formula fields by default, ...
    (microsoft.public.vb.crystal)
  • Local File System report failures
    ... I have distributed an application using VB 6 and the Crystal 8.5 RDC. ... When users try to print a report using the Local File System ... an accurate path to the folder ... I have tried EVERYTHING but still get the error message on a ...
    (microsoft.public.vb.crystal)
  • Re: Local File System report failures
    ... Peter Tyler wrote: ... I have distributed an application using VB 6 and the Crystal 8.5 RDC. ... When users try to print a report using the Local File System ... machine is not present on the client machines. ...
    (microsoft.public.vb.crystal)
  • Re: Help please with Report/subreport
    ... What is the exact code that you added to your report? ... If you are not tracking the number of pages in the footer, ... If you put the subreport in the report's footer, it will appear at the end ...
    (microsoft.public.access.reports)