?
Solved

web config for crystal reports for .net 2.0

Posted on 2010-08-31
8
Medium Priority
?
2,115 Views
Last Modified: 2012-05-10
I am trying to make my .net application print crystal reports, and I have been told to add this code to my web.config

<configSections>
  <sectionGroup name="businessObjects">
    <sectionGroup name="crystalReports">
      <section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
    </sectionGroup>
  </sectionGroup>
</configSections>

<businessObjects>
  <crystalReports>
    <printControl>
      <add key="url" value="http://myserver/PrintControl.cab" />
    </printControl>
  </crystalReports>
</businessObjects>
 

I get the following error starting at the <businessobjects> line

Parser Error Message: Unrecognized configuration section businessObjects.

I have tried the <businessobjects> in different part of the web.config file, but none were successful



but when I do, I get the following error

thanks for any assistance

0
Comment
Question by:PicGirl100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 31

Expert Comment

by:MlandaT
ID: 33572414
if using vs2005/2008 just drag a crystal report viewer or somthing onto the form and it will configure the web.config for you. there is in fact a whole bunch of entries that need to be made in web.config. easier if you let the IDE do it for you
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 33572966
I agree with th eabove.

Who told you to add that to the web config?

mlmcc
0
 

Author Comment

by:PicGirl100
ID: 33581035
I am basing my question on the following information

In Crystal Reports for Visual Studio 2005 and later, the ActiveX print control is not installed on the local machine. Instead, it must be accessed as a .cab file from an external URL. The PrintControl.cab file can be downloaded from the Business Objects tech support Web Site, at which point you can place the cab file in a web server virtual directory for URL access. To make the cab file visible to your Crystal Reports for Visual Studio Web Site, add the following xml to your Web Site's web.config file:


I hope this makes more sense.. because dragging a control to the page works to print locally, but not from a .net web-application

sorry if I was unclear
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 31

Expert Comment

by:MlandaT
ID: 33581260
Can you post a list to that article!?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 33581377
Which version of Crystal?

mlmcc
0
 

Author Comment

by:PicGirl100
ID: 33663182
Here is the article... crystal 11 sp2

"In Crystal Reports for Visual Studio 2005 and later, the ActiveX print control is not installed on the local machine. Instead, it must be accessed as a .cab file from an external URL. The PrintControl.cab file can be downloaded from the Business Objects tech support Web Site, at which point you can place the cab file in a web server virtual directory for URL access. To make the cab file visible to your Crystal Reports for Visual Studio Web Site, add the following xml to your Web Site's web.config file:

<configSections>
  <sectionGroup name="businessObjects">
    <sectionGroup name="crystalReports">
      <section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
    </sectionGroup>
  </sectionGroup>
</configSections>

<businessObjects>
  <crystalReports>
    <printControl>
      <add key="url" value="http://myserver/PrintControl.cab" />
    </printControl>
  </crystalReports>
</businessObjects>

"

thanks again for help
0
 
LVL 31

Accepted Solution

by:
MlandaT earned 500 total points
ID: 33663346
I see... there is a method here... which does not use ActiveX, but uses the Crystal Reports Viewer, a control that works in any browser. If probably does not have all the features at the activeX version... but it has worked well for me... http://www.dotnetking.com/ArticleDetails.aspx?ArticleID=44, and http://www.beansoftware.com/asp.net-tutorials/using-crystal-reports.aspx

However, the error you pointed out above, can you post you web.config here? (take out passwords and other sensitive info).
0
 

Author Closing Comment

by:PicGirl100
ID: 33664764
thanks !
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question