Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

Crystal Reports 2013 - Report Creation API license

$
0
0

Hi,

 

SAP support advised me to come here for help as they "cannot recognize the issue". Hoping someone here can.

 

A client of ours is unable to link any new reports from Clear Enterprise to Crystal Reports 2013, previously not a problem via Crystal Reports 2010.

The attached error specifies the system does not have a valid Report Creation API license. The other attachment seems to verify this statement.

 

We have been told by our licensing vendors and SAP support that they are unable to help us. Can anyone here please help?

 

Thanks,

Aaron


Crystal Report Viewer for VS2013

$
0
0

Hi,

We have our existing report application in VS2005 and CRViewer version is 10.
Now we are migrating our application int0 VS2013.

We heard that CRViewer 10 will retire soon. there won't be any support after that.

So we started migrating viewer from 10 to 13.

We can able to execute the build. But we can't able to view the designer. We are getting the below error.

Could not load file or assembly 'log4net, version=1.2.10.0, culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

 

Please clarify our below queries.

1) When is the EOL for CRViewer 10?

2) Which version of viewer is recomended / suitable for CR2013 & VS2013

3) Please mention the redistributable for the same.

4) Where can we get the redistributable? Please provide link

 

Thanks & Regards,

Revathy.R

Strange behaviour when using CrystalReportViewer in dll

$
0
0

Hello,

 

I have a problem with the framework for Crystal Report for Visual Studio.

 

We have a ReportViewer, which is implemented in a seperate DLL-module, which is called via a

C++/CLI-bridge.

It is used to open reports which use datasource provided by the ODBC text driver.

It all works perfectly from the debugger, but when I start the exe directly and try to open a Report I get the following behaviour:

 

The strange thing is, that the problems only occure at the very first start of the report viewer dialog, so for me it looks like the framework is not initialized properly.

 

  • A report only with textfields and no datasources:

ReportWithTextBoxesEditor.PNG

At first start of the ReportViewer:

ReportWithTextBoxesViewerFirstStart.PNG

At second start of the ReportViewer:

ReportWithTextBoxesViewerSecondStart.PNG

 

  • A report with fields connected to a ODBC datasource:

ReportWithODBCEditor.PNG

 

First start:

ReportWithODBCViewerFirstStart.PNG

 

Second start:

ReportWithODBCViewerSecondStart.PNG

 

I load a report the same way it is done in the examples provided by SAP, so this seemed to be correct.

I also get no errors when I look into the logs in the process monitor.

 

Do you have an idea what might be the problem?

What I tried to do is:

  • Preloading the CrystalReport assemblies with Assembly.Load("CrystalDecisions.CrystalReports.Engine ...") and so on.

 

Thanks in advance

 

PS: I already asked the question in Re: Using Crystal Report for VS runtime from DLL which is called be C++ exe

but that thread was not easy to follow anymore and gave no result, so I made a clear one in which the problem is written down clearly.

Should the old one be closed then?

CrystalDecisions.ReportSource.ReportSourceFactory threw an exception

$
0
0

I am using:

Windows 10 Pro 64 bits Version 1511 (OS Build 10586.71) on an i7-4790 CPU

Visual Studio Professional 2015 Version 14.0.24720.00 Update 1

Crystal Reports for Visual Studio 13.0.16 (downloaded and installed today Feb/01/2016).

I installed the Crystal Reports runtime engine for .NET Framework 4 (64-bit)

 

I followed the instructions in the Tutorial "Connecting to ADO.NET DataSets" (I changed the data source to SQL Server 2014 Express).

 

I built the application and there was no error reported.

 

When I tried to debug I got the error message:

 

An error occurred creating the form.

See Exception.InnerException for details.

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

 

The application was being compiled to Any CPU I changed it to X86 (copying the settings from the Any CPU configuration). The error message appeared again.

 

The application was targeting .NET Framework 4.5.2 I changed it to 4. The error message appeared again.

 

I deleted the application and followed the tutorial set by step again.

 

The error message is still there.

 

What am I doing wrong? How can I solve this problem?

Crystal Report viewer installation

$
0
0


Hi Team,

 

I have developed a web application with  SAP Crystal Reports Version=13.0.2000.0 and it was working fine in development environment. I need to move the application to UAT and production server . But when I try to install the SAP Crystal Reports Version=13.0.2000.0 its asking me to install the VS. Actually I dont want to set up the development environment higher environments. So Could you please let me know the required dll or the minimal installation will help me to work Crystal Report fine in higher environment.

 

Thanks

Dependencies required for SP 16

$
0
0

I see that an update; SP 16 for Reports, version for Visual Studio came out on 1 Feb.

 

Did this remove the VC++ 2005 dependency, and if it did what is the new dependency for SP 16.

 

Thanks for your assistance.

 

Ray

Crystal Reports renders differently with different display DPI sizes

$
0
0

I already asked my question on stackoverflow but there was no answer. I really hope I get more help here

 

I designed my report in Visual Studio with display DPI size 100% (Windows 7). In page setup dialog I chose a printer which all of my colleagues and all of our customers have installed with the same driver.

When I change the display size to 125% and open the report in Visual Studio it renders differently. Some text is now too wide for displaying in my text fields and are cut of. Generating the report ends with the same result (export to PDF). So at design time we have no chance to design the reports and ensure that every client generates the same document with the same design as we don't know which DPI settings the customer has chosen in his environment.

I've read much about how important it is to have the same printer with the same drivers installed on all machines that run those reports and chosing that printer in the page setup dialog. But I've read nothing about how the display size is also having an influence of the report rendering.

How can I ensure that my reports render the same on all machines with all display settings possible? Please note, that I have no problem with different printers or drivers but only with different display resolutions.

We use Visual Studio 2013 Ultimate with Crystal Reports for .NET Version 11.

Select All Section Objects for visual studio CR

$
0
0

Is this feature not implemented in the VS version?

 

I have seen mentions in the forum, but only in the standalone CR Designer.


The system cannot find the path specified

$
0
0

Hi All,

 

I have a Visual Studio web application that uses Crystal Reports built using the designer of Crystal Reports 2011.  The web application brings in the report(s) depending on which one is chosen by the user, connects to the db and then exports the report to a construction directory as a pdf.  After all the processing is done the web app moves the created report to a directory for the web.

 

These have all been running fine for a while (years) and just recently we are getting the error "the system cannot find the path specified".

 

The application works fine in our development and our staging server environments.  The production server is receiving the above error.

 

The environments are Windows Server 2008 r2 64bit, using Visual Studio 2010, Crystal Reports Runtime_13_0_13 and framework 3.5.  For data we are hooking up to a SQL server 2008.  Also the reports that seem to not be working are reports that use our CRUFL library.  Once again these have been working for some time.

 

I have tried upgrading to CR Runtime 13_0_16 to which I received out of memory.  I have since uninstalled all windows updates to when the reports last worked and reinstalled to CR Runtime 13_0_13 32 & 64bit versions.  I am still receiving the system cannot find the path specified.

 

How can I find out what is causing this error.

 

Thank You in advance.

 

Jim

Visual Studio 2013 crashes when attempting to save an .rpt file modified in CR '13

$
0
0

Hello,

 

We are experiencing an issue that occurs intermittently. I open, modify, and save existing .rpt files in Crystal Reports 2013.  Visual Studio 2013 crashes after opening the same file, making changes, and attempting to save:

 

vs2013_crash.png

 

It issue occurs on these machines:

 

1) Windows 7 Pro with SP1, Visual Studio 2013 Ultimate, SAP Crystal Reports for Visual Studio version 13.10.1385.

2) Windows 8.1 Pro, Visual Studio 2013 Pro, SAP Crystal Reports for Visual Studio version 13.0.15.1840, Crystal Reports 2013.

 

Did some research and tried the solution to remove XML files from c:\temp, but it did not fix the problem.  Anyone else experience the same problem and can shed light on how to fix?  Your help is greatly appreciated.

 

Thank you,

 

Demond

32-bit .NET app, 32/64 bit runtime coexistence?

$
0
0

I have seen posts earlier that indicates that bith 32 and 64 bit runtimes could coexist. My question is simply:

 

Assuming a 32-bit .Net app, will it work with just the 64-bit runtime installed? (I tried, it did not)

 

If the app indeed needs a 32 bit runtime and another app requires a 64-bit runtime, should i then install both runtimes?

Invalid Table Number

$
0
0

I have a bunch of reports that were being created in CR 2008 - Well, most of them came from really old CR versions - I'm validating these reports with the CR .Net, but I have one report that I do not really know what it is happening there. If I open the report in designer everything is ok. But if I just open the report using the next code, I receive an exception. I've open the report in designer and I've removed all the components there and the behavior is the same. We have a dll which is the bridge between CR and the application, this is the interface that handles the calls to the report and as we have a lot of reports, we used to convert this component from C++ to C++/CLI and we kept the .rpt files without conversion. If I open the .rpt file in the last CR designer version and save the file, the behavior is the same.  I've done some research regarding this and I've not found anything that could help, because I'm receving the error when I'm trying to load the report. Once again, this is not regarding permissions because I'm able to load a lot of .rpt files.

 

I've just done a quick C# code in a simple windows form project and the behavior is the same, I've tried all these options without success. Am I missing something?

 

                CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

                report.Load(@"C:\arinvedtWtAmt.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);

                report.Load(@"C:\arinvedtWtAmt.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault);

                report.Load(@"C:\arinvedtWtAmt.rpt");

                report.ReportClientDocument.Open(@"C:\arinvedtWtAmt.rpt", 0);

 

Exception thrown in Load:

 

CrystalDecisions.Shared.CrystalReportsException was caught

  HResult=-2146232832

  Message=Load report failed.

  Source=CrystalDecisions.CrystalReports.Engine

  StackTrace:

       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, OpenReportMethod openMethod)

       at WindowsFormsApplication17.Form1.Form1_Load(Object sender, EventArgs e) in c:\Users\rmujica\Documents\Visual Studio 2012\Projects\WindowsFormsApplication17\WindowsFormsApplication17\Form1.cs:line 29

  InnerException: System.Runtime.InteropServices.COMException

       HResult=-2147483142

       Message=

Invalid table number.

arinvedtWtAmt 40276_44480_{0B6283D9-4446-4EE7-A5F0-E14EAE5AD4D7}.rpt

       Source=Analysis Server

       ErrorCode=-2147483142

       StackTrace:

            at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)

            at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)

            at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

       InnerException:

 

 

I really appreciate any advice here. Thanks!

Roberto M.

Sub Report can't resolve relitave path

$
0
0

I've been having an issue where a sub report has a TTX file as a database with a relative path (".\\Cert_WorksetSpecialText.ttx""). Unfortunately when I open it in the Viewer I receive the Database connection Dialog for that file. If I use hard coded paths for the file it works fine. Also the Main reports TTX has a relative path, and it does not cause any issues.

 

simplified code is as follows:

 

 

 

     ReportDocument MainReport = new ReportDocument();

     MainReport .Load(ReportFile);

     MainReport.SetDataSource(DataTable);

     MainReport.VerifyDatabase();

     [...]

     ReportDocument SubReportDocument= MainReport.OpenSubreport(SubReportName);

     SubReportDocument.SetDataSource(SubDataTable);

     SubReportDocument.VerifyDatabase();

 

 

When displaying in the viewer I receive:

 

 

CR_DB_Dialog.png

 

 

as a work around I trued changing the Database.ConnectionInfo to a static Path by doing the following prior to setting the DataSource:

 

 

TableLogOnInfo T = SubReportDocument.Database.Tables[0].LogOnInfo;

T.ConnectionInfo.LogonProperties[0] = new NameValuePair2("Field Definition File", x);

T.ConnectionInfo.ServerName = x;

T.ConnectionInfo.IntegratedSecurity = true;

SubReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo.Attributes.Collection[4] = new NameValuePair2("QE_ServerDescription", x);

        SubReportDocument.Database.Tables[0].ApplyLogOnInfo(T);

 

 

Though on ApplyLogOnInfo it reset the path back to ".\\Cert_WorksetSpecialText.ttx". Not using the ApplyLogOnInfo did not have any noticeable effect either. I had read somewhere that setting the location after ApplyLogOnInfo would do the trick, so I tried:


 

     SubReportDocument.Database.Tables[0].Location = T.TableName;


This only created an "Connection not possible" error in VS.


I cannot change the RPT files, since our current system required the dynamic pathing in the existing files, and I am only replacing one part of the system which was based on VB 6.0 and a much older version of CR (which stopped working after a server update).


I am currently using the latest update (13.0.16.1954) and tried an earlier v13 as well.


And suggestions or help would be much appreciated.


Thanks in advance.




Crystal Reports Developer XI and Visual Studio Express

$
0
0

Hi, I am developing a program using Visual Studio Express 2013. Within one of the modules of my program the user needs to be able to do one of two things:

-Either print to pdf a report that we have previously created using Crystal Reports Developer XI

-View the report in some sort of viewer with the ability to print

 

I know that there are other posts regarding the use of CR in VS Express but I just wanted to comfirm that this applied even for just viewing or running external reports. I don't need to have developing tools (within VS) for crystal since the report has already been created, I just need a viewer that can be printed.

 

Any alternatives would also be welcome.

 

 

Thank you for your help

ApplyLogOnInfo and performance

$
0
0

Hi

 

We have upgraded to CR2013 for Visual Studio 2012 and have a question regarding ApplyLogOnInfo.

 

Earlier in our code we did this to change logon settings:

            Dim crDatabase As Database

            Dim crTables As Tables

            Dim crTable As Table

            Dim crLogOnInfo As TableLogOnInfo

            Dim crConnInfo As New ConnectionInfo()

            Dim subRepDoc As New ReportDocument()

            Dim crSections As Sections

            Dim crSection As Section

            Dim crReportObjects As ReportObjects

            Dim crReportObject As ReportObject

            Dim crSubreportObject As SubreportObject

 

            'Set the database and the tables objects to the main report

            crDatabase = crReport.Database

            crTables = crDatabase.Tables

            'Loop through each table and set the connection info

            'Pass the connection info to the logoninfo object then apply the

            'logoninfo to the main report

            For Each crTable In crTables

                With crConnInfo

                    .ServerName = SQLServer

                    .DatabaseName = Databas

                    .UserID = "xxxxx"

                    .Password = "xxxxx"

                End With

                crLogOnInfo = crTable.LogOnInfo

                crLogOnInfo.ConnectionInfo = crConnInfo

                crTable.ApplyLogOnInfo(crLogOnInfo)

                crTable.Location = crTable.Name

            Next

 

 

            crSections = crReport.ReportDefinition.Sections

            ''Loop through each section and find all the report objects

            ''Loop through all the report objects to find all subreport objects, then set the

            ''logoninfo to the subreport

 

 

            For Each crSection In crSections

                crReportObjects = crSection.ReportObjects

                For Each crReportObject In crReportObjects

                    If crReportObject.Kind = ReportObjectKind.SubreportObject Then

 

 

                        'If you find a subreport, typecast the reportobject to a subreport object

 

 

                        crSubreportObject = CType(crReportObject, SubreportObject)

                        subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)

 

 

                        crDatabase = subRepDoc.Database

                        crTables = crDatabase.Tables

 

 

                        For Each crTable In crTables

                            With crConnInfo

                                .ServerName = SQLServer

                                .DatabaseName = Databas

                                .DatabaseName = Databas

                                .UserID = "xxxxx"

                                .Password = "xxxx"

                            End With

                            crLogOnInfo = crTable.LogOnInfo

                            crLogOnInfo.ConnectionInfo = crConnInfo

                            crTable.ApplyLogOnInfo(crLogOnInfo)

                            crTable.Location = crTable.Name

                        Next

 

 

                    End If

                Next

            Next

 

 

Now we have found out that this code also works, we only set ApplyLogOnInfo on the first table:

            Dim crDatabase As Database

            Dim crTables As Tables

            Dim crTable As Table

            Dim crLogOnInfo As TableLogOnInfo

            Dim crConnInfo As New ConnectionInfo()

            Dim subRepDoc As New ReportDocument()

 

            'Set the database and the tables objects to the main report

            crDatabase = crReport.Database

            crTables = crDatabase.Tables

 

            crTable = crTables(0)

            With crConnInfo

                .ServerName = SQLServer

                .DatabaseName = Databas

                .UserID = "xxxx"

                .Password = "xxx"

            End With

            crLogOnInfo = crTable.LogOnInfo

            crLogOnInfo.ConnectionInfo = crConnInfo

            crTable.ApplyLogOnInfo(crLogOnInfo)

            crTable.Location = crTable.Name

 

This code makes the reports display and print faster but we are not sure if this is the right way to do it.

Plz comment on this so we dont deliver something that will stop working for our customers.

 

Best regards

Kenneth


previous Crystal Reports XI programmer looking for delphi component

$
0
0

Hello,

 

I'm looking for the Delphi component that used to be included in Crystal Reports XI, but doesn't seem to be there in Crystal Reports XI R2.

 

Where can I go for this?

SP16 Field shift to the left

$
0
0

Hello,

    I have recently upgrade my working station to SP16. When I run reports I have a slight glitch that make 2 of my fields be displayed on top of each others. I did not have this issue previously with SP15 it's also ok once exported in PDF or from Crystal Reports Designer.

The fields are close to the right border of the Report but there is place to display them. All of our reports have those information at the bottom going thru them is not realist.

 

Here is the issues in images:

CrwIssuesDisplay.png

 

Thank you.

VS2013 CR Report returns color names instead of ID#

$
0
0

I have tried several iterations of this report and always end up with the same thing when I preview it.  I can see the data fine through my data connection in Visual Studio 2013 and my application works fine until I try to incorporate a Crystal Report into my application.  I make sure the data source is set correctly but when I run the report, all I ever see is a bunch of garbage data from somewhere that contains a list of colors like, 'silver,green,red,gray,aqua,gray,olive,...' instead of the ID's from the table I selected, along with their corresponding records.  I even tried setting up a 'Parameter Field' linked to my Select Expert', which opens and asks for a value.  I still get those darn colors... What am I doing wrong?

Crystal Report Viewer - User Provider Parameter Pop-Up Not Displaying on Win Server 2012

$
0
0

Hello!

 

I am using crystal report in my ASP.NET application. I am displaying the report in crystal report viewer. When I run this application on my local machine, it runs fine.

 

I deployed the same to production server where I see below issue:

Pop-up window which request user provided parameters will not appear.

 

Note: Reports which DO NOT request for user provided parameters will work fine.

 

Local Machine has:

Windows 7 OS,

Visual Studio 2010.

Crystal Report 2013 installed

LocalMachineCrystalReport.JPG

 

Server has:

Windows 2012 Server OS

Visual Studio 2010 Framework

Crystal Report 2013 installed

 

ServerMachineCrystalReport.JPG

 

Any help to resolve this issue is highly appreciated.

 

Thank you.

 

Regards,

Abhi.

Hide conversion form

$
0
0

Hi, i work with a versión 2013 of VSTO and i've installed SAP Crystal Repots.

 

Every time when i open a solution pops the form for the migrate the crystal reports versión.

 

I want to have references to the previous version in VSTO.

 

Is there any way that this form may not be displayed without having to update the references?

 

thanks for the help

Viewing all 2556 articles
Browse latest View live