PicGirl100
asked on
web config for crystal reports for .net 2.0
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 .NameValue SectionHan dler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, 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
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration
</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
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
I agree with th eabove.
Who told you to add that to the web config?
mlmcc
Who told you to add that to the web config?
mlmcc
ASKER
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
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
Can you post a list to that article!?
Which version of Crystal?
mlmcc
mlmcc
ASKER
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 .NameValue SectionHan dler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, Custom=null" />
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://myserver/PrintControl.cab" />
</printControl>
</crystalReports>
</businessObjects>
"
thanks again for help
"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
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://myserver/PrintControl.cab" />
</printControl>
</crystalReports>
</businessObjects>
"
thanks again for help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks !