Windows Vista Forums

Changing Crystal Report data source to a function
  1. #1


    RW Guest

    Changing Crystal Report data source to a function

    Hello,

    I like to generate a Crystal Report from my VB.NET code.
    This is how I would like to work:

    1) Fill up a dataset with the data to be shown in the report. It contains
    all the fields defined on the report.

    2) Export this datase as an xml file to XmlFilePath

    3) Making a pdf file and show it in IE by getting the report definition from
    a report server and by calling it by using an URL with parameters like
    http://MyReportsServer/Filename...?....h=XmlFilePath&...

    In order to make it work I have to define in my report definition the data
    source as "=parameters!FilePath.value"

    So what I'm looking for is a way to change the report data source to a
    function that get's the FilePath parameter from the URL I send to the report
    server instead of a connection to a view or table in the database.

    I did this before with Windows reports, how is this done with Crystal Reports?



    RW

      My System SpecsSystem Spec

  2. #2


    sloan Guest

    Re: Changing Crystal Report data source to a function


    I'm confused.

    Why isn't

    report.SetDataSource(ds);

    sufficient?


    Crystal Reports "PUSH" is a good google search.



    http://www.google.com/search?hl=en&q...l+reports+PUSH


    "RW" <RW@xxxxxx> wrote in message
    news:CE164479-9B00-4D50-8B89-6A3515BACC28@xxxxxx

    > Hello,
    >
    > I like to generate a Crystal Report from my VB.NET code.
    > This is how I would like to work:
    >
    > 1) Fill up a dataset with the data to be shown in the report. It contains
    > all the fields defined on the report.
    >
    > 2) Export this datase as an xml file to XmlFilePath
    >
    > 3) Making a pdf file and show it in IE by getting the report definition
    > from
    > a report server and by calling it by using an URL with parameters like
    > http://MyReportsServer/Filename...?....h=XmlFilePath&...
    >
    > In order to make it work I have to define in my report definition the data
    > source as "=parameters!FilePath.value"
    >
    > So what I'm looking for is a way to change the report data source to a
    > function that get's the FilePath parameter from the URL I send to the
    > report
    > server instead of a connection to a view or table in the database.
    >
    > I did this before with Windows reports, how is this done with Crystal
    > Reports?
    >
    > RW


      My System SpecsSystem Spec

Changing Crystal Report data source to a function problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding the Custom Function (unicode string) to a Crystal Report display ??? harshad .NET General 0 24 Feb 2010
ReportViewer: A data source instance has not been supplied for the data source Rupinder .NET General 0 08 Nov 2009
How to connect crystal report with vb 6.0 Moses VB Script 1 10 Mar 2009
Crystal report crash with exotic font denappel .NET General 0 15 Oct 2008
Re: Passing Parameters to a Crystal Report with a Subreport cdmunoz .NET General 1 27 Mar 2008