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 June 11th, 2004, 10:35 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Err: BC30389: 'C' is 'Private'?

Hello all!

My issue is the following

BC30389: 'C' is not accessible in this context because it is 'Private'.

Presently using VS.NET 2003 1.1 on Personal IIS Server V5.X attempting using VB.NET over C# for code behind.

Certainly don't like using absolute path. Still when I am constructing the .aspx page in the design view it shows the report fine. When I debug and view the item on the we it will give this error.

When I try placing it in double quotes same thing occurs.

When I try using \\ over \ in the path no better results.

What makes me ill is that when I try non-web vb.NET projects not a single issue.

Any help or insights needed. And yes I started this mess with the ASP Alliance article and some optimism. Still I think they are with the lousy program and even worse documentation.

Knife in the back was finding the examples at
C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Samples\Code and having them work fine.

Why will my simple pulls from a database not work then?

dSeeCrystal?

 
Old June 23rd, 2004, 12:31 PM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having the same problem. I've tried changing permission on the folder and moving the rpt file to the same directory as the web app. None of this worked. Please help.
 
Old June 23rd, 2004, 02:47 PM
Registered User
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 I have found the answer. Try moving the .rpt file to the same directory as the page then use Server.MapPath("FileName.rpt").

You can have the report in whatever directory you choose but just make sure to use server.mappath to indicate the path.

For example if you put the .rpt in a folder named "Reports" in the same directory as the webform.aspx then you would use:

Server.MapPath("Reports") & "\FileName.rpt"

To sum it all up use

ReportSource='<%# Server.MapPath("FileName.rpt") %>'
in the design view

OR use

CrystalReportViewer1.ReportSource = Server.MapPath("FileName.rpt")
in the run-time code.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help!!!!!Private Sub Worksheet_Change VicM Excel VBA 1 March 6th, 2008 10:35 PM
private constructor in C# n.nsivakumar C# 1 August 16th, 2006 07:08 AM
Using Private Sub cutovoi Excel VBA 0 February 5th, 2004 12:55 PM
its a 'c' question yescarthik C++ Programming 4 December 25th, 2003 02:45 PM
Where can I find the 'Beginning C' errata? _m0m0 All Other Wrox Books 0 June 6th, 2003 09:17 PM





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