Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying an exsiting report on a web form
Message
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
00711185
Message ID:
00712377
Views:
9
Hi Ken,

I haven't run into this error but was able to find a potential solution from someone who had your same error. Here is what they found worked for them:

When binding the report to the crystal control on the form the steps are:
Select Databindings from the crystalviewer properties list.
Select ReportSource
Then check the (i think its the advanced) radio button

You will be able to put the path of the report in here.
This causes the crystal report to load into the viewer at design time.
The TRICK is here ...
You would have entered the path as I did e.g. c:\data\reports\report1.rpt
This works for the design time view, but when you compile you get that
error.
What you need to do is simple.
Just put the path into double quotes e.g.
"c:\data\reports\report1.rpt"

Hope this helps in your case.

>Hello, I have an exsiting report bound to a report viewer control on a web form and get the following at run-time:
>
>Compiler Error Message: BC30389: 'C' is not accessible in this context because it is 'Private'.
>
>Source Error:
>
>Line 12: 	<body MS_POSITIONING="GridLayout">
>Line 13: 		<form id="Form1" method="post" runat="server">
>Line 14: 			<cr:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101; LEFT: 83px; POSITION: absolute; TOP: 148px" runat="server" Width="1049px" Height="1087px" ReportSource="< % ERROR: # c:\inetpub\wwwroot\ClientAccountingViewer\CrystalReport1.rpt  % >">
>Line 15: 			</cr:CrystalReportViewer>
>Line 16: 		</form>
>
>
>Suggestions ???
>Thanks in advance,
>Ken
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform