Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 6th, 2011, 03:03 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old May 9th, 2011, 12:27 AM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error msg almotions ASP.NET 2.0 Basics 3 February 12th, 2008 07: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 07: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 05:42 AM



All times are GMT -4. The time now is 01:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.