CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Code Expression for Source for Label (Report)

Print topic Send  topic

Author Message
Anj

Posts: 13
Posted: 11/26/2009, 1:30 AM

Well I done my brain in.

Here it is
I have a report with grouping that currently have database (access) derived totals and counts.

I would like to divide the totals by the counts (I know this looks like an average at first glance but the count for the average is all records, I just want to average non zero records).

 Compiler Error Message: BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'Integer'. Source Error:   
  
Line 208: NatSumVar = CType(e.Item.FindControl("BenchmarkAuditStateReportLabel1"),Integer)   
Line 209: NatCountVar = Ctype(e.Item.FindControl("BenchmarkAuditStateSum_NatCount2"),Integer)   
Line 210: NatAvgVar = NatSumVar / NatCountVar  

Help ASAP would be greatly appreciated
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.