CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    8

    Crystal reports Copying

    I have designed a new report. It does not uses any direct sql query. But it uses Database. the report is designed with the wizard. Now I need to duplicate this report and create another simillar 10 reports only difference between these reports would be to the table names. Is there a easy way to do it instead designing each report again? is there way to to just change the table names without affecting the report format?

  2. #2
    Join Date
    Apr 2008
    Location
    Pittsburgh
    Posts
    103

    Re: Crystal reports Copying

    If I understand what you are asking, then the answer to both are no. Anytime you change the tables that a report links to it removes all of the fields from the report, so you would have to add all of the fields back to the report after changing the tables.

  3. #3
    Join Date
    Jul 2009
    Posts
    8

    Re: Crystal reports Copying

    Thanks Jade. U got my question. Yes i will have to add all of the fields back to the each of the new report. Is there a way to copy the format? Each field in the report have different size and position, can I just copy and paste size and position property from one report to the other.
    its a very precise report and needs a carefull placement of fields.

  4. #4
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Crystal reports Copying

    Say Crystal Reports version

  5. #5
    Join Date
    Jul 2009
    Posts
    8

    Re: Crystal reports Copying

    Crystal Reports XI

  6. #6
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Crystal reports Copying

    You can try Set DataSource Location
    ----------------------------------------------
    Set Datasource Location dialog box
    The Set Datasource Location dialog box appears when you choose the Set Datasource Location command from the Database menu.

    Use this dialog box to change the location of the data source currently used in your report.

    Current Data Source
    This list displays the database and tables currently used in the report. The main report is shown as the root node.

    Note:

    All subreports are located under one node so that the data sources for them are grouped together. A data source used in two or more subreports is indicated by a different icon at the data source level.
    If a table is used in two or more subreports but the alias name is different, the real table name is appended to the end.
    Expanding the Properties node for a data source or for a table displays detailed information about the item. Some entries in the Properties node, such as Database Name, have shortcut menu options; any property that can be edited has, at least, an Edit option on its shortcut menu.

    Replace with
    This list displays the same options as the Data tab of the Database Expert. See Data tab (Database Expert) for information about how to select a new data source or table.

    Update
    Click the Update button to update the new data source information in the Current Data Source list. If the new data source is different from the one you're replacing, the Map Fields dialog box appears. See Remapping altered database fields for information about how to use the Map Fields dialog box.

    Related topics
    Using the Set Datasource Location process
    Changing the data source accessed by a report

    (Extracted from Crystal Reports Help)
    JG
    Last edited by jggtz; July 16th, 2009 at 09:22 PM.

  7. #7
    Join Date
    Jul 2009
    Posts
    8

    Thumbs up Re: Crystal reports Copying

    JG its Great!. It worked.

    In Set Datasource Location dialog box, I selected the Table that needs to be changed in the 'Current Data Source' section and I selected the new table that needed to be replaced in the the "Replace with" section. Then by clicking the update button, I was taken to the "Map Fields" screen where I mapped the fields from old table to new table. Then renamed the table name to the new one. Thats it!

    Thanks a Lot for your help. I really really Appreciate your efforts in helping me out. This saved me lot of time...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured