Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET 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 January 27th, 2005, 01:02 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default VS.NET 2003 Webforms

I am trying to follow through Chapter 4 of the first edition with VS.NET 2003.
The sales_graph.rpt looks great in preview, but when run the line which begins with <CR:CrystalReportViewer reports an error "Comma expected" The html code follows, I hope it is readable in this forum. Does anyone know how to fix this?


<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication12.WebForm1"%>
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        <title>WebForm1</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
             <CR:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 105px; POSITION: absolute; TOP: 152px"
                runat="server" Width="1030px" Height="1091px" ReportSource="<%# F:/CrystalLessons/7744/Chapter04/web_viewer_basic/sales_graph.rpt %>">
            </CR:CrystalReportViewer>
        </form>
    </body>
</HTML>
 
Old January 27th, 2005, 09:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Wouldn't that error be with the report, instead? Could you post that too?

Brian
 
Old January 27th, 2005, 07:33 PM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It wasn't with the report. I scanned the Internet all day looking for the solution. Instead of this code (which was generated by VS.NET):
"<%# F:/CrystalLessons/7744/Chapter04/web_viewer_basic/sales_graph.rpt %>"
It should have been:
'<%# "F:/CrystalLessons/7744/Chapter04/web_viewer_basic/sales_graph.rpt" %>'
Then it worked.
WHICH BROUGHT ME TO MY NEXT PROBLEM! Which I will mention, but not make a new topic because this is a discussion of the book and not a server configuration forum. I can't deploy my new web based Crystal Reports on my Windows 2003 Server because although .NET comes preloaded on it, it does not have Crystal Reports engine components installed. I now have to research the best way to get them on to it. If I can't figure a remote way to do it by tonight I will travel to it tomorrow and install Visual Studio Enterprise Architect on it which will take care of the problem. I really wanted to keep the server for only running the apps and not clutter it up with development software. I think that there is a way through deployment projects and merge modules.

Regards


 
Old April 30th, 2005, 07:02 PM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem but jerrylan's solution did not work for me. What I noticed was that in the screen shot on page 121, the Report Source Custom binding expression needs to be in quotes. This creates the correct code in the HTML.

FWIW
T






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET and C# Webforms rtomanio ASP.NET 2.0 Basics 2 September 2nd, 2008 08:58 PM
Conversion from .Net 2003 to .Net 2005 using VB.Ne coleenh Visual Basic 2005 Basics 0 September 19th, 2006 02:48 PM
Can I run VB .net 2005 with DOT NET 2003 APPLICATI kadesskade BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 8th, 2006 05:14 AM
Default Buttons - in ASP.NET webforms brameshkannan Classic ASP Professional 2 August 2nd, 2004 03:32 AM





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