My C# MVC project uses Crystal Reports. Somehow my reports have have stopped working and display a blank page. When I inspect the site I see the error
Obj not found
http://localhost:44246/aspnet_client/system_web/4_6_1055/crystalreportviewers13/js/crviewer/images/style.css
I've verified the aspnet_client but at that directory I have a folder named 4_0_30319
instead of 4_6_1055
. When I edited the link to use that folder number I was again able to browse to the css file.
Where in my config can I change this number to be 4_0_30319
? Or is it better to just rename the folder to match this number?
Make sure the link tag is at the right place If you put the <link> tag inside another valid header tag like <title> or <script> tag, then the CSS won't work. The external style CAN be put inside the <body> tag, although it's recommended to put it in the <head> tag to load the style before the page content.
Style sheets make it easy to specify the amount of white space between text lines, the amount lines are indented, the colors used for the text and the backgrounds, the font size and style, and a host of other details. Placing style sheets in separate files makes them easy to reuse.
A style sheet contains the specifications of a document's layout, such as the page size, margins, fonts and font sizes. In modern word processors such as Microsoft Word, a style sheet is known as a template. The most well-known form of style sheet is the Cascading Style Sheet (CSS), which is used for styling Web pages.
A style sheet is a file which tells a browser how to render a page. There are even aural style sheets [coming up -1997] for telling a speech browser how to pronounce different tags. A current recommendation for style sheets is the "Cascading Style Sheets" (CSS) language.
<configuration>
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<crystalReportViewer>
<add key="UseBrowserLocale" value="true"/>
<add key="resourceURI" value="http://localhost/aspnet_client/system_web/4_0_30319/crystalreportviewers13" />
</crystalReportViewer>
</crystalReports>
</businessObjects>
</configuration>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With