Solved

web config for crystal reports for .net 2.0

Posted on 2010-08-31
8
1,944 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
  • 3
  • 3
  • 2
8 Comments
 
LVL 30

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 100

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
 
LVL 30

Expert Comment

by:MlandaT
ID: 33581260
Can you post a list to that article!?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 100

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 30

Accepted Solution

by:
MlandaT earned 125 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now