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

Invalid File Name error... during crystal report deployment

$
0
0

Hi,

 

I am using Crystal report version CRforVS_13_0_12 and CRRuntime_64bit_13_0_12. This had worked fine and OK while i run it on my local PC. But the situation was different when it was deployed to a Remote Server online running Windows 2012 R2.

 

When any of the pages containing the Crystal report is accessed, I got the following error:

 

Invalid file name.


Please kindly visit the page here:  http://ksssmbreg.com.ng/crystalR/cmcsReport.aspx

 

IT WORKED WELL AND DISPLAYED WHEN I ACCESSED IT LOCALLY ON MY PC.

 

ACTIONS TOOK: I have given full permissions to the C:\Windows\Temp (BOTH Network Service and IIS_IUSRS). But this has not worked also.

 

NEED URGENT HELP PLEASE?


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


Exporting Crystal Reports to Excel in VS 2012

$
0
0

Hi,


In our web application developed in Visual Studio 2012, when I try to export crystal reports, I am getting the following error:

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'


It used to work fine in Visual Studio 2008, exporting to Pdf, Word & Excel.

It was also working fine exporting to Pdf & Word in the Visual Studio 2012 application using crystal reports 2008.

But it would not work for Excel.

So in an effort to get it working I installed Crystal Reports 2013 and downloaded the latest visual studio developer version (Support Pack 12) from this site:

SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads

(I've tried Support Pack 10 also).



My code is quiet straightforward, here is a shortened version of it:


Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

.

.

.

Dim Report As New ReportDocument

 

Report.Load(reportPath + reportName)

Report.FileName = reportPath + reportName

Report.Database.Tables(0).SetDataSource(dataTableName)

 

 

Dim oStream As New MemoryStream

 

oStream = CType(Report.ExportToStream(ExportFormatType.PortableDocFormat), MemoryStream)

 

 

On the last line above, it throws the following error:

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'



Any help on this issue would be appreciated.


Thanks,

John



.Net Framework 4.0 and Crystal Reports 2013 on Windows 64-bit OS

$
0
0

Hi,

At present, we are using .Net framework version 3.5 with the Crystal Reports XI R2 version which is already deprecated version. The crystal reports were created using the developer version CR XI R2 and these reports will get generated for different parameters in using windows application in .Net Framework 3.5. The Windows application that generates the reports various reports has reference to DLL's CrystalReports.Engine and CrystalDecisions.Shared.

 

We are planning to upgrade the Crystal reports to CR 2013 and .Net Framework to 4.0 targeting to Windows 64-bit operating system (Windows Server 2008 R2). I got an email from SAP representative with a link to full developer version and runtime version of the Crystal reports - CRforVS_redist_install_32bit_13_0_12.zip and CRforVS_redist_install_64bit_13_0_12.zip. I have installed both the versions of this on Windows 7 64-bit

operating system and could not locate the DLL's CrystalReports.Engine and CrystalDecisions.SharedDLL's CrystalReports.Engine and CrystalDecisions.Shared.

 

Please help me with the correct run time version of the reports that will have the refence to the above said DLL's.

 

Thank you!!

 

-Sivaram

Does my development computer need to be the same service pack as the runtime computer?

$
0
0

On my development computer, I recently installed the actual software I write and since then, I can not get into any of my report forms.  I get an "Invalid Key Code", and then a white screen (tab) appears.  I am using Visual Studio 10. So, I was going to reinstall Crystal Reports 13.0.2 (which is what I deployed in the package) using the setup.exe instead of the MSI that was integrated into my InstallShield Package.  I cannot find the full setup package though.  I did find this website however:

 

SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads  but my question is, what if my users globally have 13.02?  Can my development machine use SP12? (v.13.0.12.1494)

 

Pleases help because I always feel like I'm walking on needles when messing around with Crystal.

Upgrade Visual Studio (Basic) .net and Crystal reports

$
0
0

I have a large program written using Visual Studio 2005 (Basic) and Crystal reports.

I want to update the program to the most recent stable version of Visual studio and Crystal reports. If I Install Visual Studio 2013 and Crystal Reports on the same development machine as my Visual Studio 2005 and Crystal.net, Will the 2 installations play nice together?

Automatic Reboot after Install: Due to What Prerequisite?

$
0
0

A customer installing my 32-bit winform Crystal Viewer app (Cr for VS, SP12) on a server machine (Windows 2008 Standard R2, SP1) claims the installation caused an automatic reboot of the server. 


Question: is there a known portion of the install (the runtime? any of the prerequisites?) that might cause a automatic reboot?

Problem with Crystal Reports while interpreting HTML

$
0
0

Hi,

 

We have an Ajax HTML Editor which is used by admin of our application to input some formatted text. Normal users can print this data in pdf format and  Crystal reports (version: 13.0.2000.0) is used to generate this pdf report. We found out that in the generated report some of the html tags are not interpreted properly. Please find below some of these html tags which are not interpreted:

 

<span style="font-weight: bold">This should be Bold</span>

 

<span style="font-style: italic">This should be Italic</span>

 

<span style="text-decoration: underline">This should be underlined</span>

 

<br />

 

Some bullets are also not interpreted.

 

When we created a sample project, we also found out that once we remove the spacing between the attribute name and value in style tag, it is interpreted fine. Even the tags <b>, <i>, <u> are interpreted properly.

 

As we dont have any control on the html code generated by the editor, we cannot alter the above <span> and <br> tags to the ones that work fine & we cannot change even the editor at this point of time. So please let us know what needs to be done, for crystal reports to interpret the above listed tags properly. Is this bug fixed in latest versions ?

 

This is a very crucial functionality in the application and please help us in resolving it at the earliest possible.


Opening multiple reports in Crystal Reports for VS causes database connect limit to be reached. Seems to be no way to force Crystal Reports to close database connection (other than exiting application)

$
0
0

I am working on upgrading an application that has been in use for many years.  The application is written in VB6 and I have been tasked with upgrading the current application to Crystal Reports for Visual Studio.  I am using Crystal Reports for VS Version 13.0.12.1494.  The system's database is a Sybase SQL Anywhere 16 database with an ODBC connection using integrated login.  Each of the reports has the database connection set up from within the report.  There is only once database server, so each of the reports are pointing to the same DB.  The database server is currently installed as a "Personal Server" with a limit of 10 connections. 

 

I have implemented the CR viewer as part of a COM-callable wrapper that exposes a COM interface for VB6 to interact with.  Inside of my viewer component is a Winform that embeds the Crystal's Report viewer.  The COM interface basically maps the basic Crystal apis to methods that the VB6 can call (i.e., Load Report, Set Field Text, Update SQL Query, etc).  This architecture is working as designed and the reports are displaying correctly and responding correctly to changes in queries, etc.

 

The issue is that after I open 9 reports, the tenth one will respond with an error indicating that the database connection limit has been reached.  The database connections used by the reports aren't released until after the application is closed.  The application is designed for a secure environment that prohibits the non-administrative user from accessing the systems desktop, so asking the user tor restart the application after 10 reports isn't a viable option.

 

I have checked and database connection pooling is turned off for the SQL Anywhere 16 driver.

 

I have been digging on this for a few days and have tried adding code in the FormClosed event to close and dispose of the Report Document as follows:

 

ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;

reportDoc.Close();

reportDoc.Dispose();

GC.Collect();       // Force garbage collection on disposed items

 

I have also tried the following (as well as maybe 20 or so other permutations) trying to fix the issue with no success.  

 

ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;

foreach (Table table in reportDoc.Database.Tables)

     table.Dispose();


crystalReportViewer1.ReportSource = null;

               

reportDoc.Database.Dispose();

reportDoc.Close();

reportDoc.Dispose();

reportDoc = (ReportDocument)crystalReportViewer1.ReportSource;

GC.Collect();       // Force garabe collection on disposed items


Any ideas or suggestions would be greatly appreciated.  I have been pulling my hair out on this one!

Export to XLS cause image to export in grayscale images.

$
0
0

Hello,

 

We are using the crystal report 13 engine to print or preview reports. When our customers export their reports to Excel (.xls) images (read from binary field in database) are saved as grayscale images in the generated Excel file.

 

When I uncheck the "Retain Original Image Color Depth" option in the main report, the images are in color (OK). But I've enabled this option in the past with previous Crystal Reports engine to avoid color loss, halftone or color patterns. In my mind, when this option is enabled, Crystal Report must keep the original image colors. It should not turn them in grayscale.


The images are store in the database in binary fields using the Tiff file format. Is the file format causing me some trouble I'm not aware of?

 

We also have noticed that images are coming out in grayscale when they are greater than a specific size in pixels or file size (don't know exactly which one is because they are tightly coupled).


Is Crystal Report runtime 13 need the option "Retain Original Image Color Depth" to be set to avoid color loss. We need to keep original colors.

 

Any idea if it is a limitation or a bug?

Any known workaround?

 

Best regards,

Christian

CRforVS_13_0_12 not working with 64-bit application

$
0
0

I am in the process of migrating 32-bit application to 64-bit.  To make the current Crystal Reports component working with 64-bit, I did the following:

 

1) Ran the Install Executable of CRforVS_13_0_12 and selected 64-bit at the end of the installation

 

2) Referenced the required assemblies to the newly installed version 13.0.12.1494 located in “…\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\” directory (note that this is weird that nothing can be found under the “win64_x64” folder)

 

3) Compiled my application in x64 platform (succeeded)

 

4) Set “Enable 32-Bit Applications” to false for the Application Pools in IIS

 

5) Running application in 64-bit mode looked fine until I ran the Crystal Report. Exception was thrown during Export():

 

*********************************************

Exception Type: System.Runtime.InteropServices.COMException

ErrorCode: -2147467259

Message: The system cannot find the path specified. TargetSite: System.Object Export(CrystalDecisions.ReportAppServer.ReportDefModel.ExportOptions, CrystalDecisions.ReportAppServer.ReportDefModel.RequestContext)

StackTrace Information

 

*********************************************

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

   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)

 

Trouble-shooting that I did: 

 

1) This new version 13.0.12.1494  only works if I compiled my application in AnyCPU platform with “Enable 32-Bit Applications” set to True.

 

2) Here is the info from the corflags for the assemblies under the win32_x86 folder (e.g. corflags CrystalDecisions.CrystalReports.Engine.dll), which indicates they are actually 32-bit:

        PE: PE32

        32BITREQ: 0

        32BITPREF: 0

 

Any ideas of why the exception above was thrown and how this can be resolved?

 

Many thanks!

Unable to install CR runtime engine for .Net Framework 4.0

$
0
0

Hi,

 

I am attempting to install SAP Crystal Reports for Visual Studio 10.

 

The installation started and at some point I was prompted whether I would like to install the 64 bit version of the runtime as I am on a 64 bit machine.  I responded Yes.

 

However, the installation chokes with the following error:

Error 1935.  An error occured during the installation of assembly component

{844EFBA7-1C24-93B2-A01F-C8B3B9A1EA8E}.HRESULT:0x80073715.

 

I have installed Windows 8.1 on my machine and have .NetFramework 4.0 installed.

 

Any ideas on how to address this issue?

Deploy web Site Crystal Report for a colleague who has not Visual Studio

$
0
0

Dear all,

I am a newbie in Visual Studio .Net with the CR integration even though i developped at uni in asp and at work i use crystal Report on a daily basis.

I had the requirement to create a web page which display run time a report in Crytal Report for a collegue. I have developped a WebSite using ASP.NET and c# using Visual Studio 2013 and everything work, i can run it in my local host. 

 

There is a simple but tricky problem: this website must be used by my colleague who has not Visual Studio and in the company there is not a a FTP Server (i remember at uni we used it to deploy). I would like to provide to him the WebSite but I do not know how to deploy it in his machine.

Maybe is better using a Web Application? If so how I can configure? 

 

Thanks in advance maybe could be a silly question but I am very ignorant in configuration/deploy.

 

Luca

How to deployment cr2008 for vs2008 in vs2010

$
0
0

I work with vs2010,but the crystal report version is cr2008 for vs2008.

I know the depolyment for that version is only msi,so how can i merge it into the installer project in vs2010

CrystalReports 'System.InvalidCastException' occurred

$
0
0

Hi Team, I'm getting the below error. Can some one please assist me on this? I'm using Windows 2012 R2 server and CrystalReport Runtime 13.0.x version installed on the server. Application built on Any CPU using VisualStudio 2010 Error Message: HandlingInstanceID: c68a0e37-5eb5-4cb5-9587-6d6030b79b48  An exception of type 'System.InvalidCastException' occurred and was caught.  ---------------------------------------------------------------------------  01/13/2015 16:26:11  Type : System.InvalidCastException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089  Message : Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.


Difference between Oracle session an Crystal session

$
0
0

I'm a newbie with Crystal Report.

My system is  Win2003 server sp2 with Crystal Report 2008 V1 (40 Concurrent users License and 100 Named users license)

Crystal Report is configured with 1 user : user1.

User1 is owner of report1, report2 and report3. I tried atestcase with report1, report2, report3.

I submitted, from my webapp, 4 instances ofeach report using user1 (12simultaneousexecutions)

The webapp "killSession" (  found on Administrator sessions not releasing concurrent sessions ) return a list of 12 crystal session but in Oracle view gv$sessionfind only 1 row from program 'crystalras.exe' .

the crystal's behavior is correct?   It seems thatthe reportsare executedsequentially. What's wrong?

Anyhelp will be appreciated.

Thanks

Andrea


ERROR 1310. IN INSATLLING SAP CRYSTAL REPORT VERSION FOR VISUAL 2010

$
0
0

How do I correct error 1310 ERROR 1310. IN INSTALLING SAP CRYSTAL REPORT VERSION FOR VISUAL 2010. I am using window 7 (32) bit, but I got this error 1310 while installing this software. Help me to resolve it so that I can use the software now. What do I need to do to solve this error.

A chart bug while export to word

$
0
0

Hi, guys

 

CR for vs Ver13.0.9

Visual Studio 2010

Office 2013

QQ截图20150114160516.png

I designed 3 charts in my rpt file. In order to seperate them, we can mark the first on as Chart A, the second as Chart B, and the last one as Chart C.

QQ截图20150114160738.png

 

The three charts are actually the same size, and in fact, i just copy Chart A, change some options, and it changed to Chart B.

Chart C is also changed from Chart A.

 

After all is done, i export to word.

 

Chart A shows normal and it's size is OK.

But Chart B and Chart C is a little unnormal. (Click to see big picture)

 

In word, they show like below:

QQ截图20150114161301.png

QQ截图20150114161320.png

 

And soon i found Chart B and C's size is 0.01cm different.

 

QQ截图20150114161712.png

 

If click "Ret Size" in the green box, Chart B and C returns to normal.

 

 

You can use the attachment to test, and if possible, show me a solution in report design.

 

Thanks.

CR and WCF

$
0
0

Hi,

We are looking for a replacement to our current report generator (FastReport.NET), that we use with WCF service. It is possible to use Crystal Reports with WCF and use preview, export, standart CR parameters dialog on client side? Or we have create our own dialog windows with parameters and other?

Program crashes

$
0
0

Hi!


I havean application developed usingVS2010SP1(VB), Crystal Reportsand .NETFramework 3.5SP1.

In one ofthe client computers(WindowsXPSP3) I haveinstalledCrystal Reports13.0.12Redist. IfI try to openany report,the application closes(whenreport.Load())without showing anyerror message.Here is the code:

  DimreportAs NewReportDocument()
  report.Load(My.Application.Info.DirectoryPath + "\ Reports \" + "report.rpt")
  report.Refresh()
  CrystalReportViewer1.ReportSource= report

"Report.rpt" isan emptyreport, onlyatest text, withoutaccessto anydata basewithoutparameters...

Inthe project referencesI have:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms

On other computersrunning smoothly. I have alsotriedtocreate a new projectfrom scratch, which opens thissame reportand runs smoothly.

Thkx!

Viewing all 3636 articles
Browse latest View live


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