Wrox Programmer Forums
|
BOOK: Microsoft SQL Server Reporting Services Recipes: for Designing Expert Reports
This is the forum to discuss the Wrox book Microsoft SQL Server Reporting Services Recipes: for Designing Expert Reports by Paul Turley, Robert M. Bruckner; ISBN: 9780470563113
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Microsoft SQL Server Reporting Services Recipes: for Designing Expert 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 May 6th, 2011, 03:03 PM
Registered User
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Error msg on Report Properties > Code

Am working through the Nested Group Green Bar Effect recipe and keep getting error on Report Properties > Code (p 103 - #4c):

System.Web.Services.Protocols.SoapException: There is an error on line 1 of custom code: [BC30035] Syntax error.
at Microsoft.ReportingServices.WebServer.ReportingSer vice2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
at Microsoft.ReportingServices.WebServer.ReportingSer vice2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)

Here is code as I typed it:
Public Function IncrementVariable(var As Microsoft.ReportingServices.ReportProcessing.OnDem andReportObjectModel.Variable)
As Double
var.Value = var.Value + 1
return var.Value
End Function
 
Old May 9th, 2011, 12:27 AM
Registered User
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello chornung,

from your posting, it looks like there is an incorrect space in the first line of the custom code block, which causes the syntax error. Specifically, it looks like the blank in ".OnDem andReportObjectModel." causes it.

Please try removing that blank, like the example code I posted below:

Public Function IncrementVariable(var As Microsoft.ReportingServices.ReportProcessing.OnDem andReportObjectModel.Variable) As Double
var.Value = var.Value + 1
return var.Value
End Function

HTH,
Robert





Similar Threads
Thread Thread Starter Forum Replies Last Post
error msg almotions ASP.NET 2.0 Basics 3 February 12th, 2008 08:34 AM
error msg aspsuraj BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 November 27th, 2006 08:30 PM
error msg not sure how to code this De-zypher Classic ASP Basics 1 May 24th, 2006 04:05 PM
/-/ow >>Crystal Report in ASP?? ahm Classic ASP Databases 0 May 21st, 2005 03:34 AM
Breakpoint Error Msg Louisa VB.NET 2002/2003 Basics 1 March 29th, 2004 06:42 AM





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