Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Client Side Crystal Report Runtime

$
0
0

I've developed a C# application in Visual Studio 2010 using .NET Framework 4. On my Development Machine I have the Crystal Reports for Visual Studio/Developer Version installed and all is well.

I want to move the runtime executable of my program to a client server (Microsoft Server 2008 R2) which does not have Visual Studio installed (and I want to avoid installing it). Will downloading the latest MSI (from this page) to this client server and running it install all the necessary DLLs which would be needed to run an application developed referencing them?

 

DLLs I referenced in Application:

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.Shared

CrystalDecisions.Windows.Forms


How to remove Load Report Failed Error in Crystal Reports version 13.0?

$
0
0

I am developing a simple Windows form app using Crystal Report (Version 13.0) and .NET Framework 4.0 as well as VS 2013. What i am doing is that i have a Crystal report viewer on the form which is supposed to show/load my report when button is clicked. My code to load a report is:

ReportDocument rpt =newReportDocument(); rpt.Load(@"e:\<path>\CrystalReport1.rpt"); crystalReportViewer1.ReportSource= rpt; crystalReportViewer1.Refresh();

Problem i am getting is that whenever i click button, an exception occurs saying this:

CrystalDecisions.Shared.CrystalReportsException was unhandled HResult=-2146232832Message=Load report failed.Source=CrystalDecisions.CrystalReports.EngineStackTrace: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at CystalReportsApp.Form1.button1_Click(Object sender,EventArgs e)in e:\<path>\CystalReportsApp\Form1.cs:line 32 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m,MouseButtons button,Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID,Int32 reason,Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at CystalReportsApp.Program.Main()in e:\<path>\CystalReportsApp\Program.cs:line 19 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) at System.Threading.ThreadHelper.ThreadStart()InnerException:System.Runtime.InteropServices.COMExceptionHResult=-2147467259Message=The system cannot find the path specified.Source=AnalysisServerErrorCode=-2147467259StackTrace: at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&DocumentPath,Int32Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&DocumentPath,Int32Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()InnerException:

Solutions i have tried are:

  1. Checked the path again and again.
  2. Checking file permissions on the temp folder as well as on the folder where my report resides.

But all in vein. Can somebody please tell me as what's going behind the scene?

How to improve performance in Crystal Reports

$
0
0


Hi,

 

I am working on a report which performs pretty poorly. It's a report created with Crystal Reports for Visual Studio 2008. I need to generate a report for every person in my database. The report works just fine, the only problem is the time it takes to generate. The report is pretty complex, it consists of one mainreport and there are 6 subreports on this report. So I think my best chance on improving the performance is to get rid of these (if possible) subreports.

 

My question is how to handle this? I need to format my report in the same way, but (if possible) without the use of the subreports. Do you have any ideas how to achieve this? So how can I reduce the number of subreports and keep the same formatting in my report?

 

Hope you can help me out on this one.

 

Thankx,

 

Martijn

Crystal Reports XI compatibility with Windows 2012

$
0
0

I have a Crystal Reports application that is hosted in IIS 6.0 on a windows 2003 32 bit Server. The Crystal reports version in use is Crystal Reports XI Release 2 SP 2.

We are migrating our applications to Windows 2012 64 Bit Servers . I am not sure if this version will work support on 2012 server.

Can anyone please tell me if it will work on 2012 and IIS 8.5? If not, is there any workaround?

CrystalDecisions.Web.CrystalReportViewer is not defined

$
0
0

I need some help as follows (desperate)

 

I have a web application in ASP.NET 4.5.1 using Visual Studio 2013 using the Crystal Reports msi 64 bit version 13

My web.config has all the crystal report assemblies.

 

In my code for using Crystal reports I have the following

 

Imports CrystalDecisions.Shared

Imports CrystalDecisions.CrystalReports.Engine

 

Private Sub setReportParameters(ByVal crviewer As CrystalDecisions.Web.CrystalReportViewer)

        Dim paramFields As ParameterFields = New ParameterFields

        Dim pfStartDate As ParameterField = New ParameterField

        Dim pfEndDate As ParameterField = New ParameterField

        Dim pfCreator As ParameterField = New ParameterField

        pfStartDate.ParameterFieldName = "DateStart"

        pfEndDate.ParameterFieldName = "DateEnd"

        creator = User.Identity.Name

        Dim dcStartDate As ParameterDiscreteValue = New ParameterDiscreteValue

        Dim dcEndDate As ParameterDiscreteValue = New ParameterDiscreteValue

        dcStartDate.Value = DateTime.Parse(ddatestart.ToShortDateString())

        dcEndDate.Value = DateTime.Parse(ddateend.ToShortDateString())

        pfStartDate.CurrentValues.Add(dcStartDate)

        pfEndDate.CurrentValues.Add(dcEndDate)

        paramFields.Add(pfStartDate)

        paramFields.Add(pfEndDate)

        crviewer.ParameterFieldInfo = paramFields

      

    End Sub

 

CrystalDecisions.Web.CrystalReportViewer  errors  as not defined

 

here is the list of entries in web.config

<assemblies>

        <add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

        <add assembly="CRVsPackageLib, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.CrystalReports.Design, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.CrystalReports.TemplateEngine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.CommonControls, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.CommonObjectModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.CubeDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.DataSetConversion, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.ObjectFactory, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.Prompting, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.ReportDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportAppServer.XmlSerialize, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="FlashControlV71, Version=1.0.3187.32366, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="SAPBusinessObjects.WPF.Viewer, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="SAPBusinessObjects.WPF.ViewerShared, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

        <add assembly="ShockwaveFlashObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

      </assemblies>

Different Font Size in IE 8 and IE 10 when rendering From Crystal Report

$
0
0

Hi there,

 

my name is Leo, i'm application architect from Indonesia.

 

I have a project for upgrading Crystal Report from 10.5 to 13 . But i'm facing a little problem.

 

my application in user device still use IE 8 , when i was trying preview the report using CR 13 in IE 8, font changed bigger but when i use IE 11, my report preview is running well.

 

i have a picture for this case ..

 

using CR 13 in IE 8.

display.jpg

 

i tried to see html code that is generated from CR 8 and CR 13 .. there is any different syntax. but my concern is the font size. why the font size is bigger in CR 13 ? i use fontsize 8pt in CR design , but when i preview the report, it changed to 9pt .

 

is there anyone who have experienced with this case ?

 

thank you very much for helping ..

 

best regards,

Leo

Inserting the internal report revision number in the printout

$
0
0

There is a convoluted way of doing so, described here: http://www.tek-tips.com/viewthread.cfm?qid=659152

 

I would like an easier way though. Enhancement request?? Or is it available programmatically so I could encapsulate in an user-defined DLL?

 

Why do I want this? Well it is terribly useful for troubleshooting to be able to see if a printout was created by an outdated rpt.

 

Message was edited by: Don Williams

Crystal Reports throws an exception in Visual Studio 2012

$
0
0

Hello,

 

I recently got VS 2012, and downloaded CRforVS_13_0_5.exe, which is what I understand from scn.sap.com/docs/DOC-35074,is the Crystal Reports that will work with VS 2012. I uninstalled CR For VS 2010 and installed CR For VS. CR shows up in the toolbox in VS 2012, and I can put the viewer on a form and design a report. When I test the application  (a Windows Form Application, in VB), I get an error:

 

"The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception."

 

The application I am getting this in has only one form that just displays the report. The report just has one text field that says "Hello, Dotty". I wrote it to test CR. My target Framework is NET 4.0

 

The application that I am writing to sell (a Windows Form Application) was written in VS 2010, and has several reports. It runs and the reports work great when I run it in VS 2012. Again, the target Framework is NET 4.0

 

Why is CR throwing that exception in a new application?

 

 

Thanks,

 

Dotty


How to add boxplot Chart in Crystal Reports 2011

$
0
0

Hello Friends,

 

I use Crystal Report 2011 and Visual Studio 2010. It is possible to add a boxplot Chart in my Report?

 

C#

 

  //Create a chart

  boChartObject = new CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject();

 

  //create a bar chart style

  boChartStyle = new CrystalDecisions.ReportAppServer.ReportDefModel.ChartStyle();

  boChartStyle.Type = CrystalDecisions.ReportAppServer.ReportDefModel.CrChartStyleTypeEnum.crChartStyleTypeBar;  <--- something like                                                                                                                                                                                      that for a boxplot Chart

 

  //set the chart style to bar chart

  boChartObject.ChartStyle = boChartStyle;

 

Or it is possible to add a boxplot Chart using the Designer?

 

Please guide me, how I can do that. I will be very thankful to you.

 

Thanks and Regards,

Nadine Boschen

Filter in Crystal Reports

$
0
0

Hello.

 

 

 

 

 

I am trying to use a token parameter for defining a dialog box with the Choose from list icon. I'd like to get something like the dialog box marked in figure 1, but instead that i get something like a dialog box marked in figure 2.

 

 

 

 

 

This happen when i upload my report into SAP on HANA, but if I upload my report into SAP on SQL, I can see the dialog box like i want. Do you know why Happend this?

 

 

 

This is the token parameter that i am using.  Partners@SELECT CardCode, CardName FROM OCRD

 

 

 

Thanks and Regards.

Load Report Failed for CR 13.0.11.1467

$
0
0

VS version = 2013

CR version = 13.0.11.1467 (Is this version right?)

OS = Windows 7 Ultimate (32 bit) with SP1

Database = MS Access 2010

Databse connection type = OLEDB

.NET Framework version = 4.0

 

Please guide me as what version of CR should i be using for this type of configuration? As i have read that the version i am using is obsolete. I have deleted existing version of CR now. And want a fresh start. Please guide me. Thanks alot. And kindly tell me that corresponding CR runtime is included in the CR developers version of Microsoft .net package?

How to change DPI of report?

$
0
0

Hi there,

 

My name is Apolo, I'm a software developer.

 

I am developing a visual studio project, that requires CR13 for printing catalogs with high image quality.

I would like to ask you, if is it possible to increase report's DPI from 96 to something else?

 

Thank you very much for helping ..

 

Best regards,

Apolo

Report Definition with CR for VS

$
0
0

I am working with Crystal Reports from Visual Studios 2012. Is there a way to generate the Report Definition export file?

"Object reference not set to an instance of an object." on parametrized reports

$
0
0

For some reason, running reports that are parametrized (prompt for params) returns the following error: "Object reference not set to an instance of an object." Reports without the parameter prompt seems to load just fine. Here is my setup:

 

Windows Server 2008 R2

Microsoft Visual C++ 2010 x86 Redistributable (v10.0.30319)

MySQL Connector/ODBC 5.3, 32-bit (v5.3.4)

Microsoft .NET Framework 4.5.1 (v 4.5.50938)

SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) (v13.0.12.1494)

 

I have tried downgrading the CR runtime to each version down to 13.0.2 with no success. Any ideas how to proceed from here?

Generating Crystal report project in Visual Studio using VB

$
0
0

I would like to find a tutorial about Generating a Crystal report project in Visual Studio using VB. I found one using C# but would like one for VB. Any help would be greatly appreciated.


Can I migrate ASP.NET webapp and ASP webapp from IIS 6 and crystal report 10.2.36 from Win server 2003 r2(x86) to Win server 2012 r2

$
0
0

I need to migrate asp.net web application and asp web application that  have been deployed into IIS 6 on window server 2003 r2 (x86 and net framwork 2.0) to window server 2012 r2(x64, .net framwork 3.5-5.5 ,IIS 8.5). Both use cystal report crystal report 10.2.36.

1.Can I do this ?

2.Are there either any concerns or risk issues about migration?  such as which crystal version is proper for installation on win 2012 r2? , Is web.config in asp.net/asp reuqired to edit after move  to new enviroment(win 2012 r2)?

 

Please guide a bit about important steps for this task.

 

 

The below figure are components on  current OS (window 2003 r2)

gfwn070.component.jpg

Label height wrong

$
0
0

Since we moved to Crystal 13 all the label reports are not printing correctly anymore.

If we have a report (e.g. Herma 4450) printing 3x9 labels the last label on the page is almost half a label height off.

Has anything changed in printing labels, do we have to recreate all the reports?

 

Thomas

Runtime error when exporting...

$
0
0

I have report running in an ASP.Net page using the Crystal Report viewer.  This is set up in a web site which is accessible via internal network and externally via the internet.

 

When trying to export the report with 97,250 records, I keep getting a runtime error.  When trying to export the report with 48,000 records, it works fine.

 

I have a button on the ASP.Net page for the user to export the report.  It has the following statement:

 

            myReportDocument.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.Excel, Response, True, strExportFile)

 

I have even tried using the Export button in the Crystal Report viewer and still got the Runtime error.

 

Report was created using SAP Crystal Reports 2011.

 

Crystal Report extension version 13.0.2000.0 is being used.

 

Using Visual Studio 2013 for development of the web site.

 

Is there a limit to the number records that can exported?

 

How to resolve this error?

 

Sincerely,

Keith Jackson

Parameters prompt users for values even after they have been set, Crystal Reports 2010, SP13

$
0
0

We recently upgraded to Crystal Reports 2010 to SP13, and reports that have been running for years are now prompting the users to enter report values.  Oddly enough some reports have started prompting for values while others do not, and there seems to be no difference in the parameter definitions.  These are reports that have already had the value set using the SetParameterValue('parametername',value) before being assigned to the Report Viewer.  I have tried checking to make sure that the values are being passed as discrete values, as in some cases passing a nullable value does not work, e.g.

     If parametervalue.hasvalue then

          rpt.SetParameterValue('parametername',parametervalue.Value)

     else

          rpt.SetParameterValue('parametername',parametervalue.Nothing)

     End if


I have also tried using the generated parameter values that come with the underlying report VB to set the values:

     With Me.Parameter_InvestorID.CurrentValues

           .Clear()

           .AddValue(value)

     End With

     'Me.SetParameterValue("@InvestorID", value.Value) ' old method


Same results - the user still gets prompted, regardless which of these two methods gets used.


I have checked the definitions for the parameters and the following is typical - this parameter example was created by connecting to a Stored procedure in SQL Server.

Name: @InvestorID          Type: Number          List of Values: Static

Value Field: (None)           Description Field (None)

Show on (Viewer) Panel: Do not show.

Optional prompt: False, and will not let me change it.

Default value null

Allow custom values is true

Allow multiple values is false

Allow discrete values is True


Does anyone have any suggestions as to why SP13 should suddenly start prompting users for parameters, when everything was working (barring SP12) up until then?


Thanks, Neil


Crystal Report not Working in VS2013

$
0
0

Hello,

 

I am using Visual Studio 2013 & Downloaded the crystal report installer from official web site i.e. CRforVS_13_0_12.exe

After installing the package, I found Crystal Report option under Reporting of Add New Item dialog (Which was not available before installing)

 

Now I have developed a sample report (The same way I had previously developed in VS2010 & was working good)

 

But as I run the solution in any browser nothing happens over the page. No report displays and no error occurs.

 

Please guide me in this.

 

Thank you in advance.

Viewing all 3636 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>