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

question about 64 bit Crystal Report runtime libraries and database connections

$
0
0

I have a question about implementing the 64 bit version of Crystal Reports for Visual Studio 2010. The 32 bit version of Crystal Report runtime libraries works with no errors….   But when I recompile the same code in 64 bit, I now get this error when attempting to generate a Crystal Report:  

   

Error in File STD_BO_GD_Commodity_Invoice 7780_7340_{1BF024FF-F949-4BD0-BDB6-6A5BE0F58523}.rpt:. 

Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database informatiError in File STD_BO_GD_Commodity_Invoice 7780_7340_{1BF024FF-F949-4BD0-BDB6-6A5BE0F58523}.rpt:

Failed to load database information.  

   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)  

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  

   --- End of inner exception stack trace ---  

   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)  

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)  

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)  

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)  

   at Olf.Crystal.RAS.CR2013.CrystalRas.ExportCrystalReport(ReportDocument crystalRptFile, CrystalPluginConfiguration crystalPluginConfiguration)  

   

   

It appears that CR (64 bit) is trying to use the database connection info that is saved in the report template. These settings are old and incorrect. My dynamic in-code override of the database connection settings isn’t working. Why does this work in 32 bit libraries and not in 64 bit libraries?     Thanks


Crystal Reports Viewer does not show up cross-tab object

$
0
0

Hi everyone,

 

i have build a VB.NET CR Viewer Application in VisualStudio 2015. There in i select an existing report file to show up.

Within this report are some subreports and one of them with a cross-tab object.

 

On my development machine the reports works fine in SAP Crystal Reports as well as in my selfbuild CR Viewer Application.

 

On another machine, after i installed runtime and application the reports show up but not the cross-tab in the sub-report.

 

I tried to find a solution in the web, but did not find anything usefull.

I hope someone here can help me.

 

Whats wrong with my viewer app?

Any sugestions?

 

BG

Marcus M.

About Crystal report Support Pack 15

$
0
0

I already install Crystal report Support Pack 15  (v.13.0.15.1840)  in my computer ( Windows 7 sp1 and Visual studio .net 2015 professional and Visual studio .net 2008 professional),  but I can’t detect any crystal report tools.

Crystal viewr does not filter data

$
0
0

I using visual studio 2010 and crystal report 11 rel 2.

Some of my report does not filter data based on where clause I passed at run time. I am passing a where clause at runtime using following statement to set my where clause.

 

crRepDocument.RecordSelectionFormula

 

It is strange that where clause works for some reports. I use same routine for all my reports that sets where clause to the report.

Export report to Excel fails

$
0
0

Hi,

 

We have received feedback from our Korean customers that the export to Excel function fails.

 

Problem has been noticed for the Crystal report for Visual Studio V13_0_13.

Their windows user account are set for Korean language.

 

The problem is not related to the report content.

 

I think that your export to Excel function is using a temp dir which is not reachable when non-unicode character is set to Korean.

 

Thanks in advance to provide a patch for this and to let me know.

 

 

Kind Regards,

 

David

Relatório não abre no navegador

$
0
0

Uso o Visual Studio 2013 atualizado, o Crystal Report for Visual Studio SP15 e Windows 10.

O .NetFramework 3.5 está ativado.

Copiei a pasta aspnet_client para o projeto no visual studio.

 

Mas nenhum relatório é exibido no navegador. A página abre mas não há visualização de relatório.

Agradeço ajuda para solucionar o problema.

Print directly change the size of font

$
0
0

When doing a print directly from the Crystal Reports for Visual Studio 13.0.15.1840, the font size from the report changes. It's bigger than the same report exported as PDF.
Is there any way to retain the original report font size?


Thank you for your support.


Kind regards.


Sacha

Logon to Crystal Report

$
0
0

I have a problem with the logon to Crystal report, This is my Code.

 

 

Picture1.jpg

And this is the output after I run the Code,  the database name I wrote in the Code doesn't appear in the space, only the server name and Username, and When I write the password it give my logon Failed.

Picture2.jpg

Any suggestions !!!!


Report does not open in the browser

$
0
0

Using Visual Studio 2013 updated, the Crystal Report for Visual Studio SP15 and Windows 10.

The. Netframework 3.5 is enabled.

I copied the aspnet_client folder to the project in visual studio. 

But no report is displayed in the browser. The page opens but no report preview.

I appreciate help to solve the problem.

Cannot print B&W with Crystal Reports API

$
0
0

I am unable to print black and white using Crystal reports .NET object model.

I am using 'Cute PDF' printing driver which is able to print B&W/color correctly using Windows API directly (with DEVMODE/dmColor+dmFields).  Trying to do the same via Crystal does not work. Two attempts have been made:

  1. using SetDevMode (PrinterSettings::SetHdevmode() and PageSettings::SetHdevmode() with DEVMODE structure filled as in case of direct Windows API direct call)
  2. using PrinterSettings/PageSettings Color field

None of these seem to work and the report is printed in color regardless of parameters set.

 

Powershell script used for test:

 

#load the assemblies

[reflection.assembly]::LoadWithPartialName('System.Drawing.Printing')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.Shared')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.CrystalReports.Engine')

 

$ReportLocation = "C:\Test\chequereport.rpt"

$PrinterName = "CutePDF Writer"

 

#setup Crystal Document object

$Report = New-Object CrystalDecisions.CrystalReports.Engine.ReportDocument

 

#load the Crystal Report

$Report

.Load($ReportLocation)

 

#create the required printer and page settings

$PrintOptions = New-Object System.Drawing.Printing.PrinterSettings

$PageOptions = New-Object System.Drawing.Printing.PageSettings

 

#add the desired printer or it will print to the default printer

$PrintOptions.PrinterName = $PrinterName

$PrintOptions.Copies = 1

 

$PageOptions.Color = $false

$PrintOptions.DefaultPageSettings.Color = $false

 

#print

$Report.PrintToPrinter($PrintOptions, $PageOptions, $false)

 

$Report.Dispose()

Crystal Reports for Visual Studio 2015 RC

Problem with passing multiple discrete values to a parameter

$
0
0

I am struggling to get the passing of multiple discrete values to a parameter field to work. Single discrete and single ranged parameters are working fine, but despite trying all examples I can find (and there's not many) I can't get it to work. Can anyone see what is going wrong in my code below, please?

 

This is running against CR Server 2013 and it is lines 36-45 that are the issue. The code steps through the parameters found in the report and looks for URL/Form values with matching names. The multiple value capable fields are supplied with comma delimited lists of strings in the URL/Form values.

 

Private Sub DatabaseLogon_unmanagedRAS()  Dim mySampleReportPath As String = Request("rpt__rpt")  Dim path As Object = CType(mySampleReportPath, String)  Dim rptFile As String = path.Substring(8)  Dim databaseUserName As String = Request("rpt__un")  Dim databasePassword As String = Request("rpt__pw")  Dim rcd As New ReportClientDocumentClass()  Dim pfld As String  Dim pfldName As String          Dim crMainReportParameterFields As Fields  Dim crField As Field  Dim arrKeys() As String  Dim newVal As ParameterDiscreteValue   Dim crDiscreteVal As CrystalDecisions.Shared.ParameterDiscreteValue   rcd.ReportAppServer = "localhost:6420"   rcd.Open(rptFile, 0)   rcd.DatabaseController.logon(databaseUserName, databasePassword)   crMainReportParameterFields = rcd.DataDefinition.ParameterFields   For Each crField In crMainReportParameterFields    pfldName = crField.Name.ToString    Try     Select Case crField.ValueRangeKind      'Ranged parameter.      Case 0       Dim crRangeVal As ParameterFieldRangeValue = New ParameterFieldRangeValue()       pfld = Request(pfldName)       arrKeys = pfld.Split("|")        crRangeVal.BeginValue = arrKeys(0)       crRangeVal.EndValue = arrKeys(1)       crRangeVal.LowerBoundType = RangeBoundType.BoundInclusive       crRangeVal.UpperBoundType = RangeBoundType.BoundInclusive       rcd.DataDefController.ParameterFieldController.SetCurrentValue("", pfldName, crRangeVal)       'Discrete parameter.      Case 1       If crField.AllowMultiValue Then ' multiple values        Dim crParameterValues As ParameterValues = New ParameterValues()        pfld = Request(pfldName)        arrKeys = pfld.Split(",")         For Each multiVal As String In arrKeys           crDiscreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue()          crDiscreteVal.value = multiVal.toString()          crField.CurrentValues.Add(crDiscreteVal)        Next       Else ' single value        crDiscreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue()        crDiscreteVal.Value = Request(pfldName)        rcd.DataDefController.ParameterFieldController.SetCurrentValue("", pfldName, crDiscreteVal)        End If     End Select    Catch ex As Exception     Response.Write("<b><u>The report viewer has encountered an error:</u></b><br><br>")     Response.Write(ex.Message)     Response.Write("Stack Trace: " & vbCrLf & ex.StackTrace)     rcd.Close()    Finally      'do cleanup    End Try   Next   'Debug_showParams(crMainReportParameterFields)     myCrystalReportViewer.ReportSource = rcd     myCrystalReportViewer.HasRefreshButton = true    End Sub

have a problem to print my receipt with the printer epson lx-350 esc/p

$
0
0

Good day sir. I develop my projet with asp.net mvc and i use Crystal report v13 embedded in VS2013 to generate my report.

When i preview my report it was ok but when i try to print the report with printer epson lx-350 esc/p the quality of document print was too bad.or sometime the format of paper was change to landscape to portrait.

I really not understand beacause when i try to print the same document with another printer the result was excelent.

Please if somebody can have and idear and explaind me what i can do.

Thank

Assembly loading errors

$
0
0

Hello. I'm having a problem with SAP CrystalReports during runtime.

 

First, the assembly file isn't found, even though CrystalReports is installed and all assemblies are registered:

System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\FMS\GeoPortal2\reporting\web.config line 34) ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

I then tried to set the CrystalDecisions.Web assembly in the project to "Copy Local"=true, so that it would be included in the deployed project. That got me a different error:

System.Web.HttpCompileException (0x80004005): c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\geo2\e2a70b87\2b9be05\App_Web_reportviewer.aspx.733fdbe7.njrhyncf.0.cs(254): error CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\geo2\e2a70b87\2b9be05\assembly\dl3\4e808648\047538f8_8e06d101\CrystalDecisions.Web.DLL'

It looks like IIS can't find the CrystalDecisions.Web assembly in the GAC, but when the assembly is included in the project, it finds both and sees a conflict.

 

What could be the problem and how can I solve it?

vb console app won't work on server

$
0
0

Hi,

I have Crystal Reports 2013 Pro, VS 2013 Pro, on a Windows 7 machine.  I wrote a simple crystal report, and a simple console app to export the crystal as a PDF.  Just starting "simple". The process described below was done in both 32 and 64 bit.

 

It works fine on my dev computer.  Move the crystal and exe to a server, and it fails.  On the server I've installed both 32 and 64 bit runtime, also installed SAP CR for Visual Studio.  currently only 64 bit runtime and CRVS installed on server (ver 13.0.15.1840 both).

 

Server is Windows 2008 R2.

 

Error is "An error has occurred while attempting to load the Crystal Reports runtime.  Either the Crystal Reports registry key permissions are insufficient or not installed correctly".

 

vb code below.

 

Hopefully you can help with this.

 

Thanks,

 

Bill


Is there any documentation for crystal 2013 on the "Load Report Failed" error

$
0
0

I have an application that has the crystal 2013 runtime files loaded to the users desktop.  The crystal reports are located on a shared network server and the vb.net exe (vs 2013) that executes the reports also resides there.  The crystal reports connect to an oracle 11.1 database to retrieve data.  The reports run fine for the users.  On occasion after producing numerous reports the error  "Load Report Failed" will occur for the individual user.  Once that occurs the user must log out of the application and log back in and then they can execute the same reports with no error.  Please provide any current documentation that is available to resolve this issue. Any help is appreciated.

Error While loading Crystal reports deployed on IIS 7.5

$
0
0

Hi ,

 

We are encountering below error while loading Crystal reports deployed on IIS 7.5 for an asp.net mvc project 

 

Here is what we have done so far

 

1.       Downloaded Support Pack 14 (v.13.0.14.1720)  Install executable from http://scn.sap.com/docs/DOC-7824

2.       Installed it  on the development machine where Visual studio 2012 is available

3.       We have used web pages (.aspx) to load the crystal reports

4.       From VS 2012 it works fine; In localhost.

5.       Downloaded crystal report runtime 64 bit (64bit.msi)  from http://scn.sap.com/docs/DOC-7824    and deployed in web server

6.       Access the report page.  Getting below error

7.      Note : Both our application and IIS is configured for 64 bit

 

System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an exception. ---> CrystalDecisions.Shared.CrystalReportsException: Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crpe32.dll. at CrystalDecisions.CrystalReports.Engine.CRPE..cctor() --- End of inner exception stack trace --- at CrystalDecisions.CrystalReports.Engine.CRPE.CloseCrpe() at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean bSetupForNextReport) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at Avery.Magma.Web.WebForms.CrystalReport.Page_Init(Object sender, EventArgs e)

 

Thank you


System requirements for using Crystal Reports 2013

$
0
0

Hi,

 

I am planning to use SAP Crystal Report 2013 for pulling out reports from an existing web application.

My current system specifications are -

Visual Studio 2005, Windows XP(development and testing environment), IIS V5.1 and Windows 2000 Server (production server)

In order to use Crystal Reports 2013 I found out that I need to upgrade to Windows Server 2008, Windows 7, IIS 7.0

What would be the Visual Studio version that I need to use?

Also, will upgrading my system and using Crystal Reports have an impact on the SQL Server as well as the Visual Studio ?

 

Thanks,

Varada

No Parameters and Blank Report when opening Report via reportviewer Control

$
0
0

We're migrating a .NET app from a Server 2008 environment to Server 2012. Installed the latest SP15 SAP for VS on the Dev server which runs VS 2013, and the installed the accompanying SP15 runtime MSI on the web server. Authentication to the SQL server is working fine, but when I click the link to open the report it's just blank (picture attached)...I don't even get the expected parameter screen. Any ideas?

 

Notes:

 

  1. If I save the data in the report while working in VS, the report opens correctly on the web site, with the saved data.
  2. The IIS AppPool is set to run in 64 bit mode (was 32 bit on the old server), and the OS is 64 bit, so I installed the 64 bit runtime.
  3. I've copied the CrystalReportViewer13 into my application folder, but I'm not sure this is a DLL issue.
  4. If I export the [seemingly blank] report to PDF that request doesn't succeed...it spins for a bit then stops. No file is exported.
  5. I've attached the code we use to process these reports, but I don't think this is code related

 

Any ideas on how to fix this or things to try?

 

I've got some Process Monitor output I'll add to this post soon.

 

Thanks!

Crystal Reports for Visual Studio sp14 and VS 2015 Pro

$
0
0

Hi All.

 

I installed VS 2015 Professional on Windows 7 SP1 Enterprise PC. I also installed Crystal Report SP14 for Visual Studio(CRforVS_13_0_14). When I would like to create Crystal Report and selected in menu of Visual Studio Project-->Add New Item I cannot found Reporting tab and Crystal Reports to develop Crystal Report.

What is problem? How to fix it?

 

Thanks

Viewing all 3636 articles
Browse latest View live


Latest Images

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