Quantcast
Channel: SCN : All Content - SAP Crystal Reports
Viewing all 4716 articles
Browse latest View live

Grouping challenge

$
0
0

Hi. I've got a report that lists categories, products, and status. I would like to display grouping by Category and Product. I need to suppress the product group if the product status fits certain criteria.

 

If the product status = "Good" then display that group. If the product status = "Expired" then display that group. If a product has a record that is both "Good" and "Expired", then only display the "Good" group.

 

My first thought was to group by Product, and do a descending sort by Status. Then the Product would be listed only once, and if a product had both "Good" and "Expired", only the "Good" status products would appear, due to the descending sort of Status. The problem is I can't group by Product and sort by Status.

 

I tried inserting a Status group between Category and Product, then suppressing the Status group. That displayed all of the groups, but it listed the products that had both "Good" and "Expired".

 

For a visual, this is what might show up when I group by Category, Status (suppressed), and Product. As you can see, Apples is listed twice. What I would like is to suppress the "Apples - Expired" and keep the "Apples - Good" in the list.

 

Category

Fruit

Product - Status

Apples - Good

Bananas - Good

Pears - Good

Apples - Expired

Oranges - Expired

 

Any advice would be great. Thanks!


Crystal Reports and TTX

$
0
0

Hey guys.  I am a new user to Crystal.  I mean really new.  I learned how to create reports but the issue I have is that every report I try to modify has a TTX file attached to it generating the fields.  I have Crystal Reports 2011 and some of what we are trying to change is on the TTX table already loaded when I launch the report.  The problem I am running into is that we need to add another field to a report but is not in the TTX file already.  I dont understand how to add a field from another table to the TTX so I can put it in my report.

 

I have read online that you can add fields to the TTX but the question arises that I don't know how to make sure that field communicates back to the data I am trying to retrieve from the database.  I also understand that the TTX is very outdated.  I can try to completely rebuild the Report but would rather not.  Is there any help you guys can give me to bring information from another table into this TTX file so I can add this field to my report?

visual studio 10 c# forms application deployment question

$
0
0

1.  Created the windows forms app and verified it works

2. systems/network co-worker installed the CRRuntime_64bit_13_0_10.msi to a Windows 2012 R2 server

3.  I  built the Bin\Release app executable

4.  copied the Bin\Release app executable and reports to Windows 2012 R2 server

(verified this process worked for non crystal report windows application that accesses the database)

 

The server has Cyrstal files in  C:\Windows\assembly and c:\program files {x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common

 

I need help stepping through the process of getting this to run via the executable , please.

 

thank you,

 

Karen

Need help connecting Crystal Reports 2008 to Salesforce.com with new certificates signed with the SHA-256 hash algorithm

$
0
0

Our instance of Salesforce.com just got upgraded to the new certificates signed with the SHA-256 hash algorithm late last week.  I have been using Crystal 2008 for years with no problems connecting to Salesforce.com.  Is there a way to get it to work now with the new certificate? Is so please walk me through the process.  If not, would upgrading to Crystal Reports 2013 solve my problem.  I am an accidental techie with a small educational non-profit and need some help getting things to work.  Thank you!

Crystal 2013 support for Windows 10

$
0
0

I just installed Windows10 and wanted to reinstall my license of Crystal Report 2013 but I am getting errors.  They are two errors:

 

Error 1

A fatal error has occurred which has caused the installer to quit.  Please gather any %temp% and installer logs to present to your support personnel.

 

Error 2

Microsoft Visual C++ Runtime Library

Program:....When the installer is located

This application has requested the Runtime to terminate it in an unusual way.  Please contact the application's support team for more information

 

What can I do to get past this?

 

Thanks

How to Bind .NET Objects as DataSource to a Report? (DataSourceException)

$
0
0

Hello,

 

I'm already trying for hours and I still can't produce a Report from scratch with a .NET Object.

 

Everytime I call the SetDataSource-Method, I Get the DataSourceException:

 

I'm using Visual Studio 2013 Update 5 with CRforVS_13_0_13

 

Failed to load database information.

Error in File temp_54f4ace5-3d4b-49f4-a633-cb7098cbf8bd 10164_1776_{D1ADA617-8049-497D-BD87-2530EA8EEE81}.rpt:

 

Stack:

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

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)

   at WindowsApplication12.Form1.Button1_Click(Object sender, EventArgs e) in c:\users\danielr\documents\visual studio 2013\Projects\WindowsApplication12\WindowsApplication12\Form1.vb:line 18

   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)

 

What I'm doing:

 

I have a simple WinForms Application in which is just a Button. In the Click-Event I Initialize the Report, a List(Of TestClass) and a DataSet out of the List. Then I'm setting the DataSource and the Exceptionis thrown. For the Report I made a XSD File out of the List first, then generated the Report and set the XSD as DataSourceConnection for the Report.

 

Here is the SourceCode:

 

Public Class Form1

 

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        ''Initialize

        Dim testData = GenerateTestData()

        Dim dataSet = ListToDataSet(testData)

        Dim report = New CrystalReport1()

 

 

 

 

        ''Make a XSD File out of the DataSet for the Report (this step is just made initially)

        'Dim writer = New IO.StreamWriter("Test.xsd")

        'dataSet.WriteXmlSchema(writer)

        'writer.Close()

 

 

        ''Set the DataSource for the Report

        report.SetDataSource(dataSet)

 

 

        ''Export it to a PDF and then open it

        report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "test.pdf")

        Process.Start("test.pdf")

 

 

        ''Exit the Application

        Application.Exit()

    End Sub


 

 

    ''' <summary>

    ''' Generates some TestData

    ''' </summary>

    ''' <returns></returns>

    ''' <remarks></remarks>

    Public Function GenerateTestData() As List(Of TestClass)

        Dim r = New Random()

        Dim list = New List(Of TestClass)

 

 

        For i As Integer = 0 To 100

            list.Add(New TestClass() With {.Betrag = r.Next(),

                                           .Name = "TestName" & i})

        Next

 

 

        Return list

    End Function


 

 

    ''' <summary>

    ''' Makes a DataSet

    ''' </summary>

    ''' <typeparam name="T"></typeparam>

    ''' <param name="dataList"></param>

    ''' <returns></returns>

    ''' <remarks></remarks>

    Public Function ListToDataSet(Of T)(dataList As IEnumerable(Of T)) As DataSet

        Dim dataTable = New DataTable(GetType(T).Name)

        Dim propInfos() As PropertyInfo = Nothing

 

 

        For Each rec As T In dataList

            If propInfos Is Nothing Then

                propInfos = rec.GetType().GetProperties()

 

 

                For Each propInfo In propInfos

                    Dim columnType = propInfo.PropertyType

 

 

                    If columnType.IsGenericType AndAlso columnType.GetGenericTypeDefinition = GetType(Nullable(Of )) Then

                        columnType = columnType.GetGenericArguments(0)

                    End If

 

 

                    dataTable.Columns.Add(New DataColumn(propInfo.Name, columnType))

                Next

            End If

 

 

            Dim dataRow As DataRow = dataTable.NewRow()

 

 

            For Each propInfo In propInfos

                dataRow(propInfo.Name) = If(propInfo.GetValue(rec, Nothing), DBNull.Value)

            Next

 

 

            dataTable.Rows.Add(dataRow)

        Next

 

 

        Dim dataSet = New DataSet()

        dataSet.Tables.Add(dataTable)

 

 

        Return dataSet

    End Function

End Class


The Test Class is quite simple:

 

Public Class TestClass

    Property Name As String

    Property Betrag As Integer

End Class

 

The Report is just made out of the Standard Dialogue (New Item => Crystal Report => OK => Selected the TestClass DataSet => Next and so on) and looks like this

reportTemp.png

DataBaseFieldsTemp.png

 

 

Could someone please help me?

How to add up INV1 and RIN1 and then calculate the total

$
0
0

Hello Folks,

 

I am trying to calculate Invoice totals from line items since sometimes OINV.DocTotal does not work. So far, this is the best method that I have found to calculate invoice totals.

This is what I am trying to do:

Report Snipped.JPG

These invoice values does not include related credit returns. All I am trying to do is to find credit memos for those time intervals and calculate the Sum(INV1.LineTotal) - Sum(RIN1.LineTotal).

Here is the code that I am using to get invoice total

 

IF ({OINV.DocDate}) >= Date('1/1/12') and ({OINV.DocDate}) <= DateSerial(Year(currentdate)-3,Month(currentdate),Day(currentdate))

THEN ({INV1.LineTotal}+{RIN1.LineTotal})

 

Is there a more accurate way to do this? At this point adding RIN1.LineTotal seems like a headache.

 

Thanks.

Calling Stored Procedure in DOT NET

$
0
0

Hi All,

 

I want to run a stored procedure, then a SELECT statement continuously in the command window of the Database Expert

Is there any way to do so???


CORBA ERROR......

$
0
0

Hi Experts,


1)We Developed report in sap crystal report 2013.

2)Save as "enterprise"

3)Gave all login credential

4)But it gives me error like this..

4)CORBA Error.png

A communication error occurred

$
0
0

Hi ,

 

 

I am  trying to generate  a  report   bu    getting an  error message,but   I have  large amount  of data    for  report  generation.

 

A communication error occurred: ""
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

Filtering results of a query

$
0
0

I am a relative beginner with crystal reports so I apologize if my question is difficult to understand. I will try to explain my issue as best I can.

I work at a manufacturing company and one of our crystal reports is used to track our open jobs.

 

It has 1 group which is our Job number. Under each job number we have all of the operations required to make the job (in the "Details" section) like such:

Job.NumberJob.SequenceJob.OperationJob.OperationStatus
123456
10STAMPR
20CLEANR
30SECR
40SHIPR
123457
10STAMPR
20CLEANR
30SHIPR
12345830HEAT TREATR
40SECR
50SECR
60SHIPR

 

I currently have my Select Expert (Record) statement filtering out all COMPLETE operations (Job.Status = C) so only the operations that still need done are shown.

 

So here is my issue. I want to only show the jobs with an SEC operation BUT I still want to see ALL of that jobs operations. When I add {Job.Operation}="SEC" to the Select Expert, it shows all of the jobs with an SEC op but only shows the SEC op(s). I want to see ALL of the ops.

 

So in my above example, I want my result to show jobs 123456 and 123458 just as they are shown above. 123457 should not show up at all.

 

I appreciate any help. Thanks!

Database expert crash when linking, v2013 sp01

$
0
0

I am the IT coordinator for a company where a handful of people use CR, and i'm not familiar with how it works.  The complaint is this:

 

 

we have a brand new, Windows 7 64-bit machine which had Crystal Reports 2013 SP01 installed on it.  When the end user opens up his .DSN file which is stored locally on the computer, he goes into the Database Expert to link tables to it. He will go in and select a table or multiple tables, add them to the right column, and hit the "links" tab.  At this point CR crashes.

 

In my limited experience, I completely uninstalled and reinstalled, no difference, so I read some forum posts and tried some things like changing the default install directory, modifying the install and removing "unnecessary" data services, etc.  I also read that there could be a conflict of ODBC 32 / 64 connections, but I'm not familiar with what to set up in the ODBC connections anyway; I did not have to do anything the first time I installed the program so maybe I am missing something?

 

I was referred to the forum rather than pay a per-incident case, so hopefully someone here identifies this problem and can help me understand what is happening.  BTW, we link to an AS/400 mainframe, but this user had been using CR 2011 on the old computer and did not have a problem with any of that.  I tried matching what he had in the old machine vs what is in the new ODBC connections but it's a bit convoluted and I'm not sure what is actually related to CR.

Crystal Report 2013 with 64 Bit appliction

$
0
0

Hi

   we are using Crystal Report 2013 with C# .NET framework 4.0.  Currently I am testing Crystal Report 2013 with 64 Bit application. Can I use crystal report viewer for 64 Bit application?

 

Thanks

Unable to extract Japanese characters in CSV format while using Crystal report 2013

$
0
0

Hello,

 

We are using Crystal Report 2013  in the SAP Business Object 4.1 suit installed on Windows 2008 server.

All reports are refreshing data and displaying Japanese characters properly but while exporting it in CSV format it is throwing error.

While scheduling the report it generated a blank csv file to destination.

While trying to extract the data in excel format or PDF it is extracting fine with all data containing Japanese characters


I came to know Unicode characters are not directly compatible with CSV format, is there anything we can do with crystal settings to resolve this ?

 

Please suggest.

Installation Problem

$
0
0

Hi All,

 

We are currently using Crystal reports SP5

 

other client Tools

 

WEBI  SP1

 

 

when we install the crystal reports To local machine

 

WEBI is not working

 

 

if I uninstall Crystal reports WEBI is working 

 

 

Please advise

 

How to make use of Both Crystal  and WEBI same Time

 

 

Thanks

Krishna.


CRWEB00000119

$
0
0

Hi All,

 

 

Recently we came across This error    

 

when i am trying to open the Crystal report in BI Launh pad and CMC

 

it is Throwing some Error

 

The viewer could not process an event. There is no server available to process your request. Please try again later, or contact your system administrator if the problem persists. [RCIRAS0387]

---- Error code:0 [CRWEB00000119]

 

 

I had Updated the Data Base Credentials

 

Please Advise

 

Thanks

Krishna.

Problem with Crystal Reports Viewer & Xcelsius

$
0
0

Good morning,


I have a problem with crystal reports viewer. I have a report in wich there is an xcelsius chart that uses data contained in the report. I was using CR viewer 2008 and everything was fine but someday, the sofware became very slow to open (4 minutes). So I tried to install the newer versions (2011 and 2013) and now I cannot mouse over the xcelsius chart data points to see the values. I tried to update flash player and to open the report on different computer running different versions of Windows without success. I found a 3rd party software that works perfectly, but I would prefer to use the CR viewer.



I would really appreciate some help regarding that issue.


Thank you very much,

Jean-François Thibault

How a PL/SQL stored procedure, SQL Command and temp table work together in Crystal Reports

$
0
0

Hi all,

 

I don't know if this is an appropriate question, but there are so many masters of Crystal out there, I figured it couldn't hurt to ask.

 

I am currently working with reports that are based on PL/SQL stored procedures and the temp tables they complete with data.

 

When I add the temp table and stored procedure with the Database Expert, they are not linked.

 

The parameters are built into the stored procedure - I get that and see that when I enter them, the report runs and comes back with data from the temp tables.

 

I almost get this - I find it strange having worked formerly completely with straight database connections, but I can kind of see how it would work.

 

What I really don't get is another piece in the report.  For security reasons, the user who logs in their user id into a stored procedure parameters gets checked for their access privileges.

 

This is done by creating a SQL command something like this:

 

SELECT logon_id

FROM users

WHERE logon_id = '{?PARAM_USER_ID}'

 

Then the SQL command is linked to the stored procedure via logon_id.

 

Would anyone be able to explain to me, in simple terms, how Crystal makes this work?  Also - if you have time time, would you be able to explain to me how Crystal processes the stored procedure and temp tables in the correct order?

 

Any feedback would be greatly appreciated.

 

Thank you,

Erin

calculating percentages in cross tab

$
0
0

Hello,

           I have a  report with a cross tab summary in the report footer.

 

My cross tab looks like this

                               column 1          Dept 1                          dept 2

                        column 2          total patients   13         total patients      15   

 

Practical problems                 @ count of patients = 1       @ count of patients = 5

Treatment decisions               @ count of patients = 2     @ count of patients   = 4

                                                                                                                               dept 1                          dept 2

I want to display percentage of patients for each problem eg: practical problem %= 7.69% ( 1/13*100)          33.33% (5/15*100)

 

Can someone help me with this?

 

Thank you

Sandhya

How do I find out why when a second field is entered into a report, the corollary information is not pulled?

$
0
0

In Field Explorer, under Scheduling, I'll pull JobNo to the report. Then, I will pull EndDate as well but no information will be put next to it. I'm confused why this is happening. I'm able to get other fields to sometimes link, so I'm not sure why I would be getting this from some fields.

Viewing all 4716 articles
Browse latest View live


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