Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
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 October 29th, 2004, 11:43 PM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default shared variable problem

Hi Guys,
       Hope someone can help me with this one.
       Using Crystal Reports v8.5 with Oracle.

       I have set up a formula in a subreport called @labcost. The formula is as follows
       whileprintingrecords
       shared numbervar labhour := Sum ({@labcost},{filename})

       In my main report I have created a formula named @labour. It reads as follows
       whileprintingrecords
       shared numbervar labhour;

       My problem is that the shared variable is printing on the group below the one it belongs to. I am also trying to add the shared variable to a material cost on the main report but until I can match it to the correct group I cannot do it.

       Could somebody please help I would very much appreciate it.

       Regards,

       narooma

 
Old November 2nd, 2004, 10:45 PM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks anyway guys, I have worked it out. All I needed to do was put the sub report into the group header not the details section.

Regards






Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared variable problem in Crystal Reports 8.5 mjk6035 Crystal Reports 1 October 20th, 2008 09:10 AM
Mustoverride and Shared problem El Cid VB.NET 2002/2003 Basics 0 June 19th, 2005 02:15 PM
difference b/w shared and public variable lgeetha VS.NET 2002/2003 1 March 4th, 2005 08:24 AM
Email Problem When Running from Shared Drive Ron Howerton General .NET 7 November 11th, 2004 04:28 AM
Shared Variable between instant object. soccers_guy10 Pro VB 6 1 January 20th, 2004 05:19 AM





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