Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2006, 06:39 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasource Change

I'm trying to clone the design of one report to use on a second report. When I change the datasource for my Crystal report, it wipes out all the field data in design view.

Is there a way to change the datasource without having it wipe all out the layout work I've done? Or is there a better way to clone the design of a report?

Thanks!

 
Old July 31st, 2006, 09:36 PM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a simple way:

Suppose your existing datasource is EmployeeMaster and the field is
Empno.

1. Define "New" Formula "ff_Empno" under Formula option.
2. In this formula, define as formula = {EmployeeMaster.Empno}
3. Now place this formula on the Report instead of Empno directly.
4. Now if you change datasource, the Formula is not wiped out nor its
   placement of the report.
5. Once you have a new Datasource(say "Payslip", all you need to do
   is edit the datasource of the formula in,
   formula = {Payslip.Empno}
6. In Fact, you can use binocular icon to do all these changes.
7. Most important, it retains its formatting etc.

Regards,

Dilip Nagle

 
Old August 2nd, 2006, 10:24 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks very much for your suggestion! I will give it a try!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Change datasource of crystal report at runtime check123 Pro VB 6 1 March 21st, 2008 05:45 AM
DataSource suhas_feb BOOK: Professional Jakarta Struts 1 June 19th, 2007 09:46 PM
change Datasource of a crystal report at run time tiyyob Pro VB 6 1 February 17th, 2007 06:05 AM
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
DataSource keseln J2EE 1 June 8th, 2003 08:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.