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

display the query results, horizontally on Crystal Report

$
0
0

Please help me.


Ihavedataina database tablelike this:

 

Brand          IMEI

Samsung      54356        
Samsung      54357
Samsung      54358
Samsung      54359
Samsung      54360
Samsung      54361
Samsung      54362
Samsung      54363

Nokia           65675
Nokia           65676
Nokia           65677
Nokia           65678
Nokia           65679
Nokia           65680

 


Is it possible todisplay, inCrystal Reportslike this?

 

Samsung
54356               54357          54358          54359          54360

54361               54362          54363


Nokia
65675               65676          65677          65678          65679
65680

 

Thank you.


Crystal Report process hangs till the large Crystal reports get rendered

$
0
0

Hi

I am using SAP Crystal Runtime Engine (for .NET 4.0 - version 13.0.1.220) for ASP.NET(C#) web service. When a report is requested from client, this service finds the rpt file, loads data and send back to the client.

Recently I came across with a situation where I need to wait to get a small report rendered, until the ongoing long-running reports finish rendering.

 

For testing purposes, I created a view in database which delays 2 minutes to return data, and referred that view from the report. So that, the report delays 2 minutes to get rendered after requested. I opened 10 clients, ran the long-running report from each at once (means 10 long running requests) and when they are processing, the 11th request with the "small" report gets hung for 2 minutes, i.e. till those large reports get rendered. (The "small" report gets rendered normally within seconds.)

 

I came across with some forum posts where setting the Maximum Job Limit to 9999, and dispose\close all the disposable objects, which weren't helpful. My customer's case is bit more critical since he faces the issue with three long-running reports. Can anyone help me to understand what is the limitation here, how to overcome and any other infromation which maybe helpful?

 

Thank you in advance.

- Manulak Dissanayake

Report ignores record selection filter

$
0
0

Hi everyone,

 

I recently upgraded Crystal Report from 2005 to 2012/2013 using the CRForVS 13.0.9.

But I ran into a problem when running my report inside my winforms application.

The report uses some fields from tables, no store procedures, no subreport or anything fancy, it is just linked to classic sql tables. It has a “select expert record” that specifies some filters like so :

 

Date({Flight.FlightDate}) =Date({?@DateReport}) and

{Flight.CustomerID} = {?@CustomerID} and

{Flight.Valid} and

{Flight.UnitID} = {?@UnitID} and

{Flight.Canceled} = False and

{category.DeliveryNote} = True and

({?@IncludeZeroQuantities} = true or {@QtyLoaded} <> 0.00)

 

When I run the report and the sql server profiler, I notice that the query sent to sql server to retrieve the data for my report is not filtered at all.

It just matches the “show sql query” of the report, which is actually just a bunch of inner join generated by the report.

Report’s parameters are set through code using the ParameterFields.CurrentValues.

 

In my 2005 version, I run the same report/code/parameters on the same machine but the sql query generated includes the filter which is much more efficient.

I have set a breakpoint in the 2013 version to make sure that it has the correct CurrentValues and number of parameters, and I checked that it has the RecordSelectionFormula too.

Do you see any reason that makes the 2012 or 2013 versions run an unfiltered query ?

 

This thing is killing, I’ve been fighting with it for 3 days already so any help would be much appreciated.

 

Thanks!

Adding Existing Report to WPF

$
0
0

I'm very much stuck with this, and hoping someone here can help.

 

I have a report that my designer has created using Crystal Reports. I'm now attempting to include this report in WPF using the CrystalReportsViewer (c#) However i cannot for the life of me get it to work, or find any help on this matter. It seems everyone designs their reports in visual studio, however we do not do this.

 

The report is connecting to a mysql database using a datasource created using the ODBC data source administrator tool.

 

The report has several sub reports inside it.

 

However, no matter that i try, i always get a login prompt shown, and even entering valid information gets a login failed.

I have created a stack overflow question about this several times with no answers given, the latest one is here:

c# - Existing Crystal Report in WPF - Stack Overflow

 

Any help on this matter would be greatly appreciated.

CR XI - export shared variable string to csv truncates the string

$
0
0

I have two databases that store information on customer appointments:

 

 

AppointmentMaster has 1 record for each appoint:

 

CustomerNameApptDateApptID
2554Smith, Bob20140301100
2468Jones, Grace20140301101
2795Roberts, Sam20140302102
2408Harris, Chuck20140305103

 

AppointmentDetails holds a record for each operation performed at the appointment (sometimes none, sometimes dozens):

 

ApptIDOperationOpDescription
100A10Corrected the A10 unit.
100IAResolved issues with internal account
100C5Brief consult with client
101A10CReplaced cage on A10 unit.
101U1Updated customer account
103C5Brief consult with client.

 

 

My client needs a CSV file that contains 1 line per appointment. One of the fields in the CSV is a pipe separated listing of any and all operation codes performed at the appointment. The CSV file would look like this:

 

 

    "2554", "Smith,Bob", "20140301", "A10|IA|C5|"

    "2468", "Jones, Grace", "20140301", "A10C|U1|"

    "2795", "Roberts, Sam", "20140302", ""

    "2408", "Harris, Chuck", "20140305", "C5|"

 

 

I have a crystal report created that displays the fields correctly, however when I go to export to CSV I am seeing a file like this:

 

 

    "2554", "Smith,Bob", "20140301", "C5|"

    "2468", "Jones, Grace", "20140301", "U1|"

    "2795", "Roberts, Sam", "20140302", ""

    "2408", "Harris, Chuck", "20140305", "C5|"

 

 

Only the last Operation is getting exported into CSV even though all of them display.

 

 

If I export as PDF, Excel or Record Style the file has all of the operations. Unfortunately I need a CSV. I am trying to avoid having to do multiple reports and stitch them together with a script if possible; The client wants to be able to easily run and export this themselves on demand.

 

 

I created three formula fields to initialize, update and display a shared variable that concatenates the operations together.

 

 

My report is grouped by the ApptID and looks like this:

 

 

Group Header #1 (suppressed)

 

 

{@InitializeOperations}:

WhilePrintingRecords;

shared StringVar Operations := "";

 

 

Details (suppressed)

 


{@UpdateOperations}:

WhilePrintingRecords;

shared StringVar Operations := Operations + {AppointmentDetails.Operation} + "|";

 

 

Group Footer #1

 

 

{AppointmentMaster.Customer}

 

{AppointmentMaster.Name}


{AppointmentMaster.ApptDate}


{@DisplayOperations}:

WhilePrintingRecords;

shared StringVar Operations;

 

 

I have tried using `evaluateAfter(@UpdateOperations)` instead of `WhilePrintingRecords` on the @DisplayOperations, and have even tried removing any Evalutation Time command from it as well, but I still can't get the desired effect in the CSV file despite having it look correct on screen and every other way I have tried to export it.

 

It seems to work in CR 2013 but I need to use Crystal Command to export the CSV file and it exports CSV just like CR XI does. I am using a rather old flat-file DBMS and the data source driver does not allow me to manually update the SQL query in Crystal. I am looking for other methods of getting this aggregated string to export the way the client wants.

 

Any help you can provide is appreciated.

SP 9 for VS 2013 - unable to create new project

$
0
0

I've just installed the Service Pack 9 to allow Crystal to work with VS 2013.  I'm on Win 7, running the application as an administrator.  Now when I go to create a new web project, no matter what options I seem to choose I get this error message:

 

Microsoft Visual Studio -  The system cannot find the file specified. (Exception from HRESULT: 0x80070002)  Project creation failed.  A solution is created, but a project is not created and I'm not finding a way to work around this.

 

Prior to installing the Service Pack, I did not receive this error.

 

Thank you for any help you can provide!

Overlapping field on next row/records

$
0
0

Hello,

   I have an issue where a report row overlap on the following row. I'm using Visual Studio 2010 and  Crystal Report for Visual Studio. I am able to reproduce with SP3, SP8 & SP9 did not do the test with the other SP.

 

    Here is an image that show the issue. I cannot simply extend my field because the data is not always the same and will failed with other values. It's working correctly with Crystal Reports Designer 2011.

 

ErrOverLap.png

 

 

  Is this a known issue? Is there any workaround to this issue?

 

Thank you.

Is SAP Crystal Reports, dev version for VS2013 Available?


SAP Crystal Reports for Visual Studio 2013

$
0
0

Hi,

 

We want to use SAP crystal report with Visual Studio 2013, please let us know whether its development license is free or we need to purchase it?

 

Thanks,

Basavraj Birajdar

Failed to load database information. Error in {GUID}.rpt

$
0
0

Hi

 

 

I have a C# windows service that load a rpt file and export it to PDF

 

I am required to use XML as data source for the rpt file, and in the IDE of CR 2013 it always works fine via local XML file, and also I create a http/https pages which returns a XML stream, it still works,  preview fine.

 

And then I debug into my unit test project, load the rpt file, set the necessary parameters, and at last call the ReportDocument.Export(), the PDF was generated successfully.

 

But when I deploy the windows service in my local machine, it always throw out an exception with the error message of “Failed to load database information. Error in {GUID}.rpt” at ReportDocument.Export().

 

 

Here is the environment of my local machine:

 

    Windows 7 (64 bit)

    NET framework 4.0 / VS2010 build with “Any CPU”

    CR2013 with the latest run-time packages for VS

    I also have crdb_xml.dll in both of the following paths:

 

 

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

 

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86

 

 

I doubt that I missed something in my environment, is there any suggestions? Thanks a lot!

Crystal Reports 2005 destroy report grouping on 64 bit machine

$
0
0

Hi,

 

I have recently find that application build with visual studio 2005 and cr reports 2005 doesn't work in x64 bit machine.The crystal report is open fine(successfully) but the output data are loosing the grouping format with which they were created.Is there any way to fix this without changing application version?

Exporting Master and Detail report in Crystal Report

$
0
0

Dear all,

 

 

 

I have a master crystal report that contain hyper links which open a detailed report in a new tab when clicked. When I try to export the report in PDF form from master report without clicking on hyper links, it exports the master report just fine. But if I have clicked the hyper links(and the details report has been opened in a new tab) and then try to export the master report to pdf, it exports detailed report instead of exporting master report.

 

 

I have even tried exporting master report after closing the detailed report tab to no avail.Exporting detailed report works fine in every case.

 

 

I am using crystal report for visual studio 2010. Version 13.0.2 on local machine and 13.0.8 on deployment server. It behaves same way in both cases.

 

 

Any help will be much appreciated.

 

 

I have also posted the question here.  Exporting Master and Detail report in Crystal Report

 

 

Thanks

Supressing Parameter dialog box on Refresh Report

$
0
0

After some tinkering, I've figured out how to get a parameter passed from a VB.NET form to a Crystal Report:

 

 

Dim paramFields AsNew CrystalDecisions.Shared.ParameterFields()

Dim paramField AsNew CrystalDecisions.Shared.ParameterField()

Dim discreteVal AsNew CrystalDecisions.Shared.ParameterDiscreteValue()


paramField.ParameterFieldName = "MyDateRange"

 

discreteVal.Value = Common.MyDates

 

paramField.CurrentValues.Add(discreteVal)

paramFields.Add(paramField)
crvBalances.ParameterFieldInfo = paramFields


This works just fine when the report is first opened in the Crystal Report Viewer.  If I open the report a second time, however, using a different parameter, the old data is still on the report, and when I click the Refresh button in the report viewer, up pops that Parameter dialog box.  I set the option to discard any saved data when loading the report, but that didn't help at all.  Is there a way to KEEP the parameter dialog box suppressed and be able to refresh the report?

 

I'm running Visual Studio 2008, and using the version of Crystal that comes with same.  Any help anyone can provide would be greatly appreciated.

Report Filename Was Empty

$
0
0

I've got a report that was running fine until I changed the datasource for a subreport, now it's not running. Any suggestions would be greatly appreciated as this has hosed up my production on a high volume application.

Set SQL Expression Fields in VS 2010 Verison of Crystal Reports

$
0
0

I am converting an application written in VB6 using CR 10.5 and ActiveX to VS2010/VB.Net using CR VS2010 version.

I am able to convert all of the existing code except for a line that sets the SQL Expression Fields as shown below:

 

crReportDocument.SQLExpressionFields.GetItemByName(msSQLExpression(0, x)).Text = msSQLExpression(1, x)

From searching and reading, it appears that setting the SQLExpressionFields is no longer allowed. I find that there is an item collection associated with SQLExpressionFields, but it is READ-ONLY.

1- Is it true that setting the SQLExpressionFields is no longer allowed/supported in the VS2010 version?

2- If this is no longer supported, how should/could I work around this issue?

Thanks in advance for your help and assistance!


Crystal Reports APS.NET Viewer in IE 10

$
0
0

Reports do not render properly in IE using ASP.NET Crystal Reports Viewer.  All I see is vertical bars.  If I switch to IE 9 mode in Developer tools, report looks fine.

Thanks

Sergey

Crystal reports working in Dev not in production

$
0
0

Hi somebody pl help me with this or share the thread if it is been already discussed..My crystal reports are working in dev machine but in production it is not generating.But the thing is not all the reports.. totally there are around 11 reports out of 7 working.. I couldn't able to figure out what would be the problem..

Determine whether parameter is dynamic or static?

$
0
0

I'm having some challenges with applying connection information to my reports. I'm seeing that I need to use one method for reports that contain dynamic parameters, and another method for ones that do not. It's insane to me how difficult it's been to find a solid way to handle setting connection information, and there appears to be a million ways to do it, but I digress.

 

What's the best way to load a report and determine whether or not it contains parameters that are dynamic or not? Any advice would be appreciated!

Asp ReportViewer UI issues

$
0
0

On developing a new version of our apps we tried to update CrystalReports in our solution one more time. Before we've faced this bug, but now it has gone and reports are rendered without any critical errors. However we need to adapt ReportView look to the design of our app, and we don't really know how to dothat correctly. At first a page with 13.0.2000 should look like a page with 10.5 The difference between these two versions is better described by screenshots (both in Chrome 32, Win 8.1 x64):

old_reportview.png

 

Page with CrystalReports 10.5. We have our custom toolbar conntected with ReportViewer with the help of updatePanel. Report is paginated but no page background is rendered, viwer ui is pretty clean.

Declaration:

<asp:UpdatePanel ID="upd" runat="server" UpdateMode="Conditional">

  <ContentTemplate>

<CR:CrystalReportViewer ID="StatReportViewer" runat="server"

  AutoDataBind="false" DisplayToolbar="False"  EnableDatabaseLogonPrompt="False"

  EnableParameterPrompt="False" SeparatePages="True"

  OnNavigate="CrystalReportViewer_Navigate" DisplayGroupTree="False" />

  </ContentTemplate>

  <Triggers>

  <asp:AsyncPostBackTrigger ControlID="firstPage" EventName="click" />

  <asp:AsyncPostBackTrigger ControlID="prevPage" EventName="click" />

  <asp:AsyncPostBackTrigger ControlID="nextPage" EventName="click" />

  <asp:AsyncPostBackTrigger ControlID="lastPage" EventName="click" />

  <asp:AsyncPostBackTrigger ControlID="searchButton" EventName="click" />

  </Triggers>

  </asp:UpdatePanel>

 

new_reportview.png

Page with CrystalReports 13.0.2000. Native viewer toolbar looks very inaccurate in Chrome. Report is viewed in a page-frame on dark-gray background without any scrollbar inside Viewer itself and with wide borders of two different colors around control (left border is gey and right one is light-grey). Declaration:

<div id="upd">

<CR:CrystalReportViewer ID="StatReportViewer" runat="server"

AutoDataBind="false" DisplayToolbar="True"  EnableDatabaseLogonPrompt="False"

EnableParameterPrompt="False" SeparatePages="True"

DisplayPage="true" DisplayStatusbar="False" EnableDrillDown="False"

HasCrystalLogo="False" HasDrilldownTabs="False" HasDrillUpButton="False"

ToolPanelView="None" HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" />

</div>

 

In short we want Viewer from the new version look like from the old one. This mean two things:

  1. Using our own toolbar instead of Viewer's native one. Ok, I can make a css-hack and place our own toolbar in front of the native and then trigger the click events on the Viewer's toolbar buttons. But may be there is another way? Here pre-last feature of ASP.NET version is "ASP.NET CrystalReportViewer custom toolbars– Create a custom toolbar that offers all the functionality of the default CrystalReportViewer toolbar". So may be there is a way to make it without any hacks?
  2. Make the view of the report data clean, without any backgrounds or borders, but with pagination. Of course css hacks is also applicable here, but I still hope that there is some rendering params in ReportViewer that will help to do that (DisplayPage="false" results in rendering an empty Viewer somehow). Any suggestions?

 

Thanks in advance for any helpful answers!

Dynamic pick list values missing in web viewer

$
0
0

We have a report that uses a dynamic pick list to allow the user to select values from a list loaded from the database. When I run the report in the designer, I get prompted with a pick list. We run this report in a web UI and on one server we get the list and on another where the list is supposed to be we get a free-form text entry field that allows me to type in anything at all.

 

There is zero feedback from CR about what, if anything, went wrong. No event log entries, no dialog boxes, nothing. I have absolutely no idea where to even begin looking for a solution.

 

The non-working server is using the 64 bit runtime engine for .Net 4, 13.0.3.612 and the working one is running 13.0.2.469. I don't see anything in the release notes suggesting that the was anything "fixed" in the newer version that would break dynamic pick lists.

Viewing all 3636 articles
Browse latest View live


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