Re: BC30518: Overload resolution failed because no accessible 'ToString' can be called with these arguments:

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 03/18/04


Date: Wed, 17 Mar 2004 16:58:15 -0800


Hmm. That's a little trickier.

First of all, in the email you sent directly to me you included some
additional code that isn't in this post. I noticed that in addition to
setting the ReportSource property (and where is objReport being
instantiated?), you are also calling the DataBind() method of the viewer.
You should only do one or the other. Calling the DataBind() method clears
out any properties you previously set.

Secondly, the other error message looks like the ReportDocument component
wasn't added to the form. Its like you are manually telling it to use the
cached report, but there isn't one to print. Does that make sense? Make sure
the ReportDocument component is added to the same form that has the viewer
which will display the report.

The other possibility is that you don't reference the
CrystalDecisions.ReportSource library in your project. This gets added
whenever you create a new report in a project. Check if you have that
library listed under your references. If not, create a new dummy report just
for the purpose of adding the proper libraries and then delete the report.

I don't understand how you are having these problems. Adding a cached report
is a pretty straightforward process. You should try creating a new project
with a new report and then print it. Start from scratch to make sure you
didn't miss any steps.

I hope you get a copy of my book. It walks you through all the steps of
doing this.

HTH,

Brian Bischof

A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented

http://www.crystalreportsbook.com/123aspx.asp

"larkinr" <larkinr@saic.com> wrote in message
news:514D0022-2D08-4724-A6AE-92F1BA3B5AA8@microsoft.com...
> Brian, I really appreciate your help with this. I create a new web project
from scratch and this was my error (ReportSource had not been selected).
However, I now have another error:
>
> Compilation Error
> Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific error
details and modify your source code appropriately.
>
> Compiler Error Message: BC30009: Reference required to assembly
'CrystalDecisions.ReportSource' containing the implemented interface
'CrystalDecisions.ReportSource.ICachedReport'. Add one to your project.
>
> Source Error:
>
>
>
> Line 12: <body MS_POSITIONING="FlowLayout">
> Line 13: <form id="Form1" method="post" runat="server">
> Line 14: <CR:CrystalReportViewer id="CrystalReportViewer1" runat="server"
Width="1030px" Height="1089px" ReportSource="<%# cachedCrystalReport11 %>">
> Line 15: </CR:CrystalReportViewer>
> Line 16: </form>
>
>
> Source File: http://localhost/BischofNew/WebForm1.aspx Line: 14
>
>
>
> Show Detailed Compiler Output:
>
>
> C:\WINDOWS\system32>
"c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library
/utf8output
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net
files\bischofnew\1ea0cb79\ad1806a7\assembly\dl2\2a81e4b2\625016b9_5f0cc401\b
ischofnew.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.web\9.1.5000.0__692fbea5521e130
4\crystaldecisions.web.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\bischofnew\1ea0cb79\ad1806a7\3phjb5yt.dll" /D:DEBUG=1 /debug+
/win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\bischofnew\1ea0cb79\ad1806a7\3phjb5yt.res"
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\bischofnew\1ea0cb79\ad1806a7\3phjb5yt.0.vb"
>
>
> Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322.573
> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
>
> http://localhost/BischofNew/WebForm1.aspx(14) : error BC30009: Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
>
> target.ReportSource = CType(cachedCrystalReport11,Object)
>
>
> I have tried MSDN and Google searches but am not closer to a solution.
Once again Thanks!



Relevant Pages

  • Boston PL Defends Reputation in Wake of Scathing Report
    ... A report in the March 11 Boston Globe claims that a new study shows the Boston Public Library is underperforming when compared to other large public libraries in terms of circulation, visitors, and public relations. ... The problem with the Globe report, BPL President Bernard Margolis told American Libraries, is that it was based on an uncorrected draft intended for review, not release to the media. ...
    (soc.libraries.talk)
  • RE: me and Bazarov together again and we are triving. with Visual C++.
    ... In Russia, me and Vitya ... > Libraries: ATL COM, WTL ... > along with report generation thereof. ... > Add Ons item of the Solidworks Tools menu. ...
    (microsoft.public.vc.language)
  • Re: me and Bazarov together again and we are triving. with Visual C++.
    ... In Russia, me and Vitya ... >> Libraries: ATL COM, WTL ... >> along with report generation thereof. ... >> Add Ons item of the Solidworks Tools menu. ...
    (microsoft.public.vc.language)
  • Re: Query Setup for Access2007
    ... Have you tried to create a report using the wizard? ... and then to the right are the 6 different libraries. ... Fiels: DVD Title ... then you could use a union query as the source to get the information. ...
    (microsoft.public.access.queries)
  • Re: Fastcode Sponsoring
    ... validate libraries. ... original tests and the Cody & Waite tests. ... Georgia Institute of Technology, Technical Report GIT- ... I wouldn't want to bet that current math libraries work ...
    (borland.public.delphi.language.basm)