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

Crystal Reports page navigation not working in Chrome/IE8/IE11 after SP8 installation

$
0
0

Hi Bhushan/Ludek,

We deployed SP8 on our server for resolving the print issue. The print issue still exists for Chrome. Refer http://scn.sap.com/message/14741775

 

    Now we are facing another issue of Crystal Reports page navigation after SP8 installation. User is able to navigate to 2nd page but after that it stuck then and there. On clicking "next" button on the Viewer, it does not navigate to 3rd page. We tried some code level work around but none of it worked.

 

The issue can be reproducible on Chrome (32.0.1700.107 m), IE8 and IE11.

For more details please find the attached screenshot.

 

Kindly advise.


UFPrefixFunctions

$
0
0

Hi,

 

I've created a UFL using C# (Visual Studio 2008)  and have successfully implemented it in some reports using Crystal Reports 2008.  What I haven't been able to do is to prevent the prefixes from showing in the Formula Editor.  I read that if you use UFPrefixFunctions and set it to false, that should do it.  I've tried 3 ways (below) but none of them works.

 

Has anybody been able to use UFPrefixFunctions successfully?

 

Thanks in advance.

 

Ron

 

 

static bool UFPrefixFunctions = false;

public bool UFPrefixFunctions = false;

public static bool UFPrefixFunctions = false;

 

ReportDocument Serialization Error v13sp2

$
0
0

I posted this a week or so ago and no one responded.  So I'm putting it up again.  All I am trying to do is get the reportdocument object to serialize and store that in session.  It should be pretty simple.  But when I call out to the RAS DLL to serialize it, it returns null.  Even for a report with just a single label on it. 

 

I'm trying to understand how the RAS provided classes can be used to serialize a reportdocument into a string. I have seen many examples from the help and other threads, from my own threads, etc. But for whatever reason I cannot get even the most basic report to serialize to a string. So I must be missing a required step or I have the wrong version of Crystal. I downloaded the latest I could find, which was version 13 release 2. I have just the free basic Crystal developer edition for VS.Net 2010.

 

1.) What I did was create a report class and put a single label on the report. Then I run the report. It works fine.

2.) Then I coded a simple web page to display the report using the CrystalReportsViewer. That works fine.

3.) Then I tried to setup a test to serialize the report as a string using the RAS Utilities Conversion DLL. That doesn't work.

 

In this example, I am just trying to get the string to be equal to something. Currently it is always set to nothing/null when this runs.

 

Here's the code I am testing. Am I missing something?

 

Dim myReport As New CrystalReport1  u2018Empty report with just a label in the header.
myReport.VerifyDatabase()
'***Serialize 
Dim boReportClientDocument As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
boReportClientDocument = myReport.ReportClientDocument
Dim myConversion As CrystalDecisions.ReportAppServer.Utilities.Conversion = New CrystalDecisions.ReportAppServer.Utilities.Conversion
Dim mySerializedRcd As String = myConversion.ToString(boReportClientDocument)
CrystalReportViewer1.ReportSource = boReportClientDocument.ReportSource

 

Any guidance or suggestions would be much appreciated. I have gone through the SDK help and setup things as they show. But it just doesn't work for me. I must be missing something. The samples look pretty simple.

 

Any thoughts?

 

Best regards,

Jon

Picture not showing in Crystal Report Viewer

$
0
0

We have an asp.net web solution that shows Crystal Reports using the crystal report viewer and also exporting the reports to PDF, Word and Excel The reports are working fine, but when showing the reports in the crystal report viewer the picture in the report is not shown (see crystalviewer.png), but when exporting to PDF, Word, Excel and so on, this picture is shown (PDF.png).

 

Can you check if this is an error in crystal report ? or is there some kinda security issue?

 

The report is not attached to this document, because the file type is not allowed.

 

We have even tried to install the latest version (13.0.9.1312) from your homepage.

This version also has the problem. http://scn.sap.com/docs/DOC-7824 Exporting crystal report

 

 

-------------------------------

report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, Page.Title)

 

CrystalReportViewer1.ReportSource = report

there was an error opening this document. The file is damaged and could not be repaired

$
0
0

Hi,

 

We are using 10.5.3700.0 version of Crystal Reports. Recently we have been facing issue wherein the .pdf file generated by Crystal fails to open in Acrobat Reader (verified with versions 11 & 9.5). The error shown is as below

 

"there was an error opening this document. The file is damaged and could not be repaired."

 

 

This issue is occurring randomly on  Windows 2012 R2 Datacenter. Most of the reports are getting generated properly and we are able to open them. But 1 or 2 reports  failed to open with above mentioned error. This has been observed for some other customers too but not sure of the operating system on which this issue might be occurring.

 

 

Same .pdf file can be opened using the chrome browser.

 

Please let us know if you need further information on this.

 

 

Thank you.

Deepak Jha

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.

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!

Crystal Reports 2011 Table.ApplyLogOnInfo Poor Performance

$
0
0

Hi,

 

I am using Crystal Reports 2011 with SP9 installed.  My report is a main report with 56 subreports and during the creation of the report and running it through the IDE the report runs in less than 20 seconds.  When I run this same report through a .Net executable the report takes about 14 minutes to finish.

 

 

I have built in some logging functionality into the .Net executable and have the issue pinned down to when I am applying the table.ApplyLogOnInfo.  The function that iterates over all the subreports and tables in each subreport takes 13 minutes from start to finish.

 

 

I have found other discussion on the boards here to look at virus software, firewalls and certificate revocation lists.  I have tried implementing these and it hasn't offered any type of boost in performance.

 

 

Here is the function that applies the db logon information.  Any insight or ideas will be greatly appreciated.

 

CodeSnippet.png

Thank You,

 

Jim


Installing CR for VS 2012 - need help

$
0
0

Hi,

 

I have a VS 2012 Winforms application that uses Crytal Reports.  The report contruction and display process works fine in development mode, but when the app is installed, the user get one of a series of errors.

 

1. I am am using the "One-Click" installation feature of VS2012 with the "SAP Crystal Reports Runtime Engine for .NET Framework" prerequisite checked.  When users perform the installation, the CR portion of the install blows up with a temp path error.

 

2. I then unchecked the CR prerequisite, deployed a folder of what I thought were the correct versions of the CR client software, and had users manually installed the 32 bit version (I have read that the 64 bit version doesn't work).  Users then got the following error:

 

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.

 

VS2012 Versions:

CrystalReports.Engine - 13.0.2000.0 (runtime version v2.0.50727)

CrystalDecisions.ReportSource - 13.0.2000.0 (runtime version v2.0.50727)

CrystalDecisions.Shared - 13.0.2000.0 (runtime version v2.0.50727)

CrystalDecisions.Windows.Forms - 13.0.2000.0 (runtime version v2.0.50727)

 

CrystalReport Client Installation

Prerequisite Installation - ?

Standalone Client Install - CRRuntime_32bit_13_0_8.msi and/or CRRuntime_64bit_13_0_8.msi

 

Here are my questions:

 

1. Is there a later version of the CR prerequisite install for VS 2012 apps that works correctly?

 

2. If the answer to #1 above is "no", what version of the CR client msi should I use?  This is also need for cases in which the app has been installed but CR has not - i.e., I need a stand alone CR installation that will work.

 

3. Should I use the 64 bit version for 64 bit clients, or not?

 

4. Are there other installed apps or dlls that could be causing CR to blow up with above error?

 

Thanks

Problem with DateTime field

$
0
0

Hello, I am designing a report in VS 2012 with C#. I have a DataSet, one of the fields of the DataSet is a System.DateTime field.

I need to display in a report this field, and also I need to sort the report for this field, so I can't convert the field to string.

 

The problem is that the report only shows the date, not the time! If I do right click on the field and go to "Give format to the object", the "Sample" is: 01/03/1999 1:23 p.m. but if I go to the preview of the report, the time is not. I can see only 01/03/1999.

 

What can I do? Thanks!

Crystal Reports does not load aspnet_client files to proper IISExpress directory

$
0
0

Hello,

 

We are working with Visual Studio 2013 and the latest SP 9 of the SDK.  I noticed on install, the aspnet_client files are still installed in c:\inetpub\wwwroot.  However, IISExpress in VS 2013 looks in <user>\Documents\WebSites\<SiteName> for it's global files (i.e. aspnet_client).  Upon trying to view a report, the viewer then of course choked on ol' "bobj" as the files were not where it was looking.

 

The solution I suppose would be to copy the aspnet_client folder into each website we create, which obviously is not ideal compared to how 2010 worked (one central location in wwwroot).

 

Any ideas on how to have only one instance of aspnet_client?  Redirect IIS Express to look where Crystal Reports installs the global files?

 

Thanks,

Chad

CR datasource as xml and dataset

$
0
0

Hello All..

 

I need to generate a crystal report based on xml file and a dataset. xml file contains all the headers and have to map this with respective dataset( where actual data is).

 

what i've done so far: added xml file to report( add--new item -- CrystalReport1 -- using the report wizard -- create new conection(ADO.NET xml) )

 

file path -- my xml file path

class name --- empty

use dataset from class --- (checked it)

dataset names --- showing empty dropdown   and clicked on 'Finish' button .

 

the report is opened up with xml fields --- dragged 2 fields on to the report. (end of report design)

 

now with aspx page :

 

            CrystalReportInstance.SetDataSource(ds);   // dataset contains data with same headers as xml file

            CrystalReportViewer1.ReportSource =CrystalReportInstance ;

            CrystalReportViewer1.DataBind();

 

Result received after executing above:  report with only  headers

 

Using :  crystal reports(13.0.7.1136)

            windows 7 ultimate

            sql server 2008 r2, enterprise edition.

 

and i did search on this here.. really have not seen any similar threads answering. is this the correct way to do this.. please suggest me!! 

Problem in Crystal reports Alignment

$
0
0

Hi,

 

I am facing some alignment problem after upgraded my report from Crystal X1 R2 to Crystal Runtime(SP2 also SP7)

 

Initially I designed my report in Crystal X1 R2 to print the report in the pre-designed template. Later I upgraded my application to latest crystal Runtime. After that I am facing some alignment problem when print the report.

 

After up-gradation, i could see some lines are pushed down and few lines are pushed up and it is not printing properly in the pre-designed template.

 

I tried to do changes in the designer but it is not printing properly.

 

I have designed report with zero Page Margins and Paper size is A4.

 

I can see the correct alignment when printing it directly from Crystal designer But When i print the report pro-grammatically through crystal run-time i am facing the same alignment problem.

 

When analysing this, I noticed few things.

 

* Only I am facing the problem with zero margin

 

* After run time-upgradation, When previewing the report I found additional option in the Print dialog of latest crystal viewer. It is page scaling option and It is defaulted with "Scale report page to fit printer page" and disabled.

 

* We can export the report to various formats. In that case it is working fine for pdf or woreport document when the page scaling option is set as "Do not scale".

 

Please find the peace of sample code to print the report (Using sample C# application)

 

private void Print(object sender, EventArgs e)

{

 

           ISCDReportClientDocument rptClientDoc;

            PrintOutputController printout;

            PrintReportOptions rasprint = new PrintReportOptions();

            CrystalDecisions.Shared.PrintLayoutSettings PrintLayout = new CrystalDecisions.Shared.PrintLayoutSettings();

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

 

            report.Load(@"C:\Users\Desktop\Sampleprintout\sample.rpt"); //design simple report with various page margins

 

            rptClientDoc = report.ReportClientDocument;

            printout = rptClientDoc.PrintOutputController;

            rasprint.PrinterName = "HP LaserJet 2200 Series PS";

           printout.PrintReport(rasprint);

           

 

}

 

Note: Need to add necessary reference files from "C:\Windows\assembly".

 

I am still struggling to fix this one.

 

Please help me out.

JavaScript Error in Crystal Reports for Visual Studio 2013 - revisited

$
0
0

With the newly-released Crystal Reports for Visual Studio 2013, I was receiving the following error:

 

Unhandled exception at line 37, column 59140 in http://localhost:4486/cfb341e5bcca4ae88166b78e20276d73/browserLink

 

 

0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: input#__CRYSTALSTATEctl00$MainContent$CrystalReportViewer1

 

It turns out that this is related to the Browser Link Visual Studio add-in. You can either ignore the error, or disable Browser Link.

 

Dan

Crystal Reports Editor and Visual Studio Professional 2013

$
0
0

Hello,

 

We recently purchased Visual Studio 2013 Professional to perform some updates on a desktop application for one of our clients. This particular desktop application has a number of Crystal Reports inside of it and we need to be able to edit them.

 

We were previously using Visual Studio 2012 Premium on a trial basis with Crystal Reports for Visual Studio SP7 and everything worked fine, but when we upgraded to 2013 we lost the ability to edit the reports.

 

Crystal Reports - VS2013.jpg

I read across a number of articles that Crystal Reports for Visual Studio 2013 is unavailable until March 2014 but then I came across this post: Re: Is SAP Crystal Reports, dev version for VS2013 Available?.

 

As per that form post, Service Pack 8 should support Visual Studio 2013 but even after we installed SP8 we still get the screen above.

 

Are we missing something while setting this up? Or is Visual Studio 2013 still unsupported? If it is still unsupported, when will support come?

 

Thank you for your help,

 

 

Wes H.


Report Grouping Issue on 64 Bit runtime

$
0
0

The report grouping appears to be incorrect on 64 bit runtime. The report displays as expected when run as 32 bit process. It appears to be a regression of a bug fixed on SP5 from this thread http://scn.sap.com/thread/3288217. I am using ADO.NET dataset to bind the data to the report. If there is a private upload link, I have a VS solution with the report and data, that I can upload.

 

Environment:

Crystal Reports Version: 13.0.7.1136

Operating System: Windows 7 x64

NET Framework: .NET Framework 3.5 SP1

Visual Studio 2012

 

Update:

Installed support pack 8 (13.0.8.1216). The issue is reproducible on support pack 8.

Breaking up Crystal report into e-mailable sub-reports

$
0
0

First time poster, long time ignoramus...

 

The company I work for uses Crystal Reports (version 11, don't judge me) to create our invoices.  The invoices are created as one big report, and then, after printing, we manually separate the pages by customer so that we can mail the invoices appropriately.

 

What I would like to do is create the reports in such a way that we can merge them with available e-mail addresses (from a separate program) and e-mail the invoice to the customer.  Not all customers will have an e-mail address on file, and I would still need to print those invoices for which we lack an e-mail address so that they can be mailed. 

 

I'm barely skilled with Crystal Reports, but not completely new to it.  Is there a way to configure my current report to reflect these two changes (merge with available e-mail addresses, and print only those invoices that cannot be e-mailed)?

 

Thanks in advance for any parsing work you have to make to understand my question, and I will answer any questions you have that might clarify my post as promptly as possible.

 

Aaron

Combining Reports

$
0
0

I have been asked by my superiors to research this question so hopefully someone here knows the answer. I have 4 different Scrap Reports that all show basically the same the thing (a peratoized list of reasons why parts were scrapped) the difference between the reports is that Report 1 displays the scrap reasons for the overall type, regardless of value. Report 2 displays the scrap reasons for the Type/Value/Tol combination. Reports 3 & 4 just add which operation the scrap was reported at. Due to different groupings and additional tables from the database that are brought in, I don't think we can combine these reports into one (correct me if I'm wrong). I guess the question is, using Crystal Reports, based on parameters input by the user, is it possible to have Crystal display just one of the 4 reports? We want to use Crystal so that the parameter windows look the same, so that the end user doesn't see a difference. Does anyone know of a way to do this?

SP9 WPF Viewer New Issues

$
0
0

Hi, SP9 has introduced 2 NEW issues for the WPF Viewer: 1. The busy circle no longer shows when loading the report meaning the user gets no feedback that something is happening on long loading reports. 2. If you press the refresh button the report refreshes but remains disabled and the busy circle (which now appears) never goes away. Thanks Anthony

Crystal reports - Cross tabbed embedded report does not grow to 2nd page..

$
0
0

After upgrading to 13.0.7 crystal reports from CR version 11

 

But one of our report,which has cross tabbed embedded report does not grow to 2nd page if number of columns exceed the page width limit.

But if the cross tabbed report is run separately, auto grow works. Am i missing anything while embedding ?

 

Please help!

Viewing all 3636 articles
Browse latest View live


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