Friday 28 September 2012

Error Message - Parser Error Message: The 'DisplayGroupTree' property cannot be set declaratively.

After upgrading Crystal Report to version 13 you may get error message
Parser Error Message: The 'DisplayGroupTree' property cannot be set declaratively.
while running your website.
To fix it replace
DisplayGroupTree="False"
with
ToolPanelView="None"
so your html code looks like

<cr:crystalreportviewer id="CrystalReportViewer1"  ToolPanelView="None"></cr:crystalreportviewer>

Error Message - Microsoft JScript runtime error: 'bobj' is undefined

I was getting this error message after upgrading crystal report to version 13
to fix it
- I noticed that if I run the same code in Mozilla I am not getting this error. 



So my first step was to delete temp files in IE, but it didn't resolve my issue.  Next I changed my default browser to mozilla, then I ran my site from visual studio - no error was produced.  Then I changed my default browser back to IE and everything was fine... for while.  After moving the following folder aspnet_client to application root directory - problem disappeared.

VS 2010 - Cannot view rpt files

Please also read the following article in case you are experiencing issue with overlapping text fields
http://howtodomssqlcsharpexcelaccess.blogspot.ca/2012/10/visual-studio-2010-crystal-reports.html


I was not able to view rpt file in my project.  (Files were created before)Also when trying to add Crystal Report to my project I was getting the following error:
I have Windows 7 64bit and visual studio 2010 professional.

CRYSTAL REPORTS® FOR VISUAL STUDIO 2010
Crystal Reports for Visual Studio 2010 is a free download for adding presentation quality reports to WPF, WinForms, and ASP.Net Web Sites.
Major new features include:
  • 64-bit runtime
  • WPF viewer
  • Enhanced embedded report designer
  • Support for exporting to XLSX
  • Learn more and download Crystal Reports for Visual Studio 2010 today.
 

Of course, I was following the link and downloaded from
http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp free version of SAP Crystal Reports runtime engine for .NET Framework 4
(select SAP Crystal Reports, version for Visual Studio 2010 - Click Once) - installation was successful, but I was still getting the same error.  Tried to reboot computer multiple times, no difference.

OK, so my next step was (after browsing multiple forums, blogs, etc) -
- delete c:\windows\temp folder
- download and install
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_2.exe
 
That fixed my problem. 
 
 
 

Wednesday 26 September 2012

ASP.NET - GridView - dataformatstring edit mode

In my case I have datetime field in my gridview
I format it using dataformatstring property which is set to {0:d}
When I am in edit mode, it still displays date and time, but after setting ApplyFormatInEditMode to True - problem is solved.

Error - Could not create a new ASP.NET MVC Project because the required component 'NuGet Package Manager' is missing

Install NeGet from here - select NuGet Visual Studio extension

or Open Visual Studio as administrator, go to Tools/Extension Manager and add NuGet from there