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

Can't open source code for VS2010 project

$
0
0

Hi

I have been looking at modifying an open source piece of software (here ... http://www.rainforestnet.com/crystal-reports-exporter/ask.htm)

 

I only need to make a small modification, so I downloaded the source code and tried to open the project in VS2010 but whenever I do it just shows up as "(unavailable)" and nothing I can do will let me open the project.

 

Would anyone be able to download the above source code and see if they can open the project - just to see if this is something I am doing wrong or there is an issue with the download?

 

All I need to do is change one line of code and recompile it but it's proving quite hard!

 

Thanks


Dynamic list of values in Crystal report

$
0
0

Hi,

 

I designed one crystal report with parameter type for list of values are static and dynamic.

 

Staic Type(City names are manually entered by me at design time)

Dynamic Type( I created a link for City parameter with database, so it should display whatever data available in the database for that particular field)

 

For static I can fetch the data. but For dynamic list of values, it should fetch the value from Database.

 

Is there any APIs available to identify whether it is static or dynamic?

 

How to handle this scenario using CR API's?

 

Please share your thoughts on this...

"Enter Parameter Values" dialog freezes for several minutes in some cases

$
0
0

Hello.
Some of our customers utilize Crystal reports, which have a string parameter with a very long list of possible values (about 20000 strings with descriptions).
For such reports it takes about 2-3 minutes before "Enter Parameter Values" dialog is displayed for the first time and every time when refresh button is pressed on the Crystal report viewer toolbar. During this time application eats 100% CPU of one of processor cores. Crystal progress dialog is frozen most of this time. This behavior can be observed for both WPF and WinForms Crystal report viewer.

 

Is it a bug in Crystal Report viewer? Is there any way to reduce this time?

 

Thanks in advance,
Gleb.

 

P.S.
We are using the latest Crystal Reports for Visual Studio (SP5). This issue can be reproduced using an empty report with the single parameter defined (with a list of possible values of ~20000 entries) under project auto-generated on the base of "Crystal Reports WPF Application"/"Crystal Reports WPF Application" template in MSVS 2010/2012. It looks like such reports works fine in some old (not the latest) Crystal Reports RDC engine.

CR VS2010 crash on TIFF insert

$
0
0

Visual Studio is crashing when I insert a TIFF image with the CCITT T.6 compression standard. I converted the same image to CCITT T.4 and LZW and it works with both of those.

 

I am using Visual Studio 2010 release version.

I am using Crysal Reports for VS 2010, SP1 (I tried the standard version and then downloaded SP1, same problem).

 

The only details of the error I can find are in the Application Error Log (BELOW)

 

Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3

Faulting module name: cslibu-3-0.dll, version: 13.0.1.220, time stamp: 0x4d6fe1eb

Exception code: 0xc0000005

Fault offset: 0x0003c845

Faulting process id: 0x1530

Faulting application start time: 0x01cbe4a563539689

Faulting application path: F:\VisualStudio10\Common7\IDE\devenv.exe

Faulting module path: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cslibu-3-0.dll

Report Id: 0027cec2-509a-11e0-9f29-0025643944d1

Reportclientdocument.close or report.close

$
0
0

Hi Community,

 

I have a question about the two Close methods of the ras sdk.

 

I am using the following code to Close a printed or exported Report:

 

reportClientDocument.Close();

reportClientDocument = null;

report.Close();

report.Dispose();

 

the Report.close gets an error (an external component has raised a condition).

 

I am not sure if I Need to use all of the Statements. It seems that the reportclientdocument.close also Closes the Report and thats why the Report.close or the Report.dispose() gets error.

 

Does anybody know if the reportClientDocument.close implements the Report.close? I thougth that I have to use the Report.dispose() to release the unused objects.

 

Thanks for your help.

 

Regards

 

joerg

Report containing subreports created via rcapi, logon data not passed through

$
0
0

Hi all

 

I've "succeeded" in generating a reportdefinition dynamically (using only C# code, didn't do any creating/defining in the Designer), based on choices made by the user of my application:

 

"succeeded", because the report definition looks ok - it contains the correct CommandTable definition, the correct subreports are imported.

When i try to view it in the designer, it looks ok, it even produces the wanted results

 

BUT: When viewing the report, i have to enter manually the password for the mainreport and for each subreport.

When i create a report using the Designer i have to enter it only once, and it seems the credentials are then passed on to the subreports.

 

This is also true when using an exporting tool like CRExport, that enters the login and password in the mainreport, but not in the subreports:

CRExport works perfectly for Designer-created reports containing subreports, but not for reports that were created by my code which is - of course - the point of the application.

 

 

Obviously i'm missing something.

I've used this tool to generate the necessary code, but even when trying this in a simple standalone testapplication, with most of the things hardcoded, i can't seem to get it to work. (I used the tool on a working report, only changed the content of CommandText)

 

Could someone please tell we what i have to set in the mainreport/subreports to make the logoninformation from the mainreport be passed on to the subreports?

 

Version: CR 2011

useLegacyV2RuntimeActivationPolicy is required for web applications in web.config ?

$
0
0

 

Hello, 


I'm using Crystal Reports for Visual Studio 2010 SP1,  version 13.0.3.612

 

I have created an ASP.NET web application compiled as x86 and .NET Framework 4.0 as target

 

I am not sure if I need or not in the web application web.config  the following setting  ?


<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
</startup>

allInOne.js JavaScript Errors on Drilldown

$
0
0

I am using the Crystal Reports viewer with Visual Studio 2011. Also, I am using a .NET object as the data source.

 

The report basically works fine. However, whenever I drilldown to details in the report viewer, I receive JavaScript errors on allInOne.js, which is dynamically generarted by Crystal.

 

What do I need to do to fix this, other than tell users to turn script debugging off.


How to reference the .NET 4.0 runtime instead of .NET 2.0 Runtime

$
0
0

I'm upgrading a WinForms application from .NET 2.0 to .NET 4.5.2. I have downloaded the latest version Support Pack 12 (v.13.0.12.1494) from SAP. All clients will have a 64bit OS, so I have set the Configuration Manager to target x64 for build. I've run the application and the Reports appear, but my concern is that when I look at the references, it is targeting the .NET 2.0 runtime.

Here is a screenshot:

enter image description here

When I add a reference it only gives me one option per library type when searching for Crystal, which is apparently targeting the .NET 2.0 runtime:

enter image description here

How do I reference the Crystal Reports libraries that target the .NET 4.0 runtime?

Load Reports with saved data twice not refresh data

$
0
0

Hi,

I have a program that load and print rpt file with saved data inside. I'm usign VS2010 with CR2010. I load and print report with:

 

rpt.Load(strFileName))

rpt.PrintToPrinter(Copies, True, 0, 0)

 

If I load and print reports, modify data inside and load and print again the second action use  the data of first load.

If I use the follow instruction all work.

 

rpt = New ReportDocument

rpt.Load(strFileName))

rpt.PrintToPrinter(Copies, True, 0, 0)

 

Seems the load function not refresh data inside if I load the same report.

Are there a property to force this without create a new object every time ?

 

Thanks Filippo

How to assign custom name to the report exported as mail attachment

$
0
0

There is a situation where we want to change the exported report name and send it as mail attachment.

 

Currently, crystal reports is using loaded file name as name to be used while sending.

 

We could not find any property exposed by crystal API through which report name can be changed at run-time while sending as mail or to exchange folder.

 

Will appreciate if someone can suggest any property available or some suitable workaround if someone has faced similar kind of problem.

 

Version details:

 

VS 2010 SP1

Crystal Report for Visual Studio: Support Pack 10 (v.13.0.10.1385 )

Crystal Report Designer 2013

 

Example:

The saved report name is Report101.rpt and I want to send the exported report in mail as EmpDetails.rpt, but I could not find any property to change the report name.

 

Code Snippet:

'----------------------------------------------

Dim mailOptions As MicrosoftMailDestinationOptions = ExportOptions.CreateMicrosoftMailDestinationOptions()

Dim exportOption As New ExportOptions

 

Dim result As DialogResult = GetMailData(mailOptions.MailToList, mailOptions.MailCCList, mailOptions.MailSubject, mailOptions.MailMessage)

 

        If DialogResult.OK <> result Then

            Return

        End If

 

        exportOption.ExportDestinationOptions = mailOptions

        exportOption.ExportFormatOptions = options

        exportOption.ExportDestinationType = ExportDestinationType.MicrosoftMail

        exportOption.ExportFormatType = format.Type

 

        _mainRep.CrystalRepDoc.Export(exportOption)

'----------------------------------------------

Regards,

Prateek

Application crashes when preview with crystal report

$
0
0

Hello There,

 

I am creating an application which shows preview of report with crystal report.

but whenever following statement is executed the application gets crash.

 

Dim Report As New ReportDocument

Report.Load(PstrReportFilename_Work)

Report.Database.Tables.Item(0).Location = PstrDatabaseName_Work   ' Note:  PstrDatabaseName_Work contains .mdb file location

 

I spent so much time in searching but unable to find any working solution.

Please help me for the same.

 

 

Thanks,

Regards,

Rudresh Bhatt

Need assistance with SetDatabaseLogon

$
0
0

I have not used Crystal Reports since 2001.  This is my first report. I am using CR 2008 (12.3.0.601) and Visual Studio 2008 on an ASP site.

 

I am receiving a 'Log On Failure' when I attempt to reference another server (production server) or my local server. It works fine on my development server.  My IT Admin. has assured me that CR has been installed. I am suspecting an issue on the server side but could be wrong.

 

This is a smiple Test.rpt report that I created. Here is my code.

 

        crystalReport.Load(Server.MapPath("\reports\test.rpt"))

        crystalReport.SetDatabaseLogon("user", "password", "grddev02", "database")               '  this one works

 

       ' These two do not work

       ' crystalReport.SetDatabaseLogon("user", "password", "grdlt070", "database")            

       ' crystalReport.SetDatabaseLogon("user", "password", "GRDSQL02", "database")            

 

        crystalReport.VerifyDatabase()

        CrystalReportViewer1.ReportSource = crystalReport

Crystal report is not getting refreshed.

$
0
0

Hi,

 

I have crystal report in my VB.NET application, I use MS Access database to generate crystal report. My problem is crystal report is not getting refreshed when we open it multiple times with different input.

 

Threading.Thread.Sleep(5000)

 

If I sleep thread for 5 seconds before crystal report opens then it is working fine. but in this case also in very rare case crystal report is not getting refreshed.

 

Please provide me solution for this.

 

Thanks.

Crystal reports for visual studio 2013 not Rendering.

$
0
0

I have installed the new version of crystal reports for visual studio 2013 developer (service pack 10 v.13.0.10.1385) and created a new report in my existing project. All other existing reports are developed with older version of CRs (CR for vs2010 v. 13.0.7.1136).

We even are providing CR runtime, v. 13.0.7.1136, in the setup project.


Can anyone guide me how to work with CRs those developed with VS2013 but should be targetted to older runtime, mean developed with VS2010.

 

Thanks in advance.

 

Manoj.


Could not load file or assembly 'CrystalDecisions.Enterprise.InfoStore

$
0
0

Hello

 

I need some help!

 

 

How to solve thefollowing error inCrystalReports 2008?

 

Could not load file or assembly 'CrystalDecisions.Enterprise.InfoStore,
Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
orone
of its dependencies
.
Unabletofind the specifiedmodule.

 

 

 

Note: The reinstallation of msi file doesn't resolve.

Operating System: Windows 7 64 bits

"Enter Parameter Values" dialog freezes for several minutes in some cases

$
0
0

Hello.
Some of our customers utilize Crystal reports, which have a string parameter with a very long list of possible values (about 20000 strings with descriptions).
For such reports it takes about 2-3 minutes before "Enter Parameter Values" dialog is displayed for the first time and every time when refresh button is pressed on the Crystal report viewer toolbar. During this time application eats 100% CPU of one of processor cores. Crystal progress dialog is frozen most of this time. This behavior can be observed for both WPF and WinForms Crystal report viewer.

 

Is it a bug in Crystal Report viewer? Is there any way to reduce this time?

 

Thanks in advance,
Gleb.

 

P.S.
We are using the latest Crystal Reports for Visual Studio (SP5). This issue can be reproduced using an empty report with the single parameter defined (with a list of possible values of ~20000 entries) under project auto-generated on the base of "Crystal Reports WPF Application"/"Crystal Reports WPF Application" template in MSVS 2010/2012. It looks like such reports works fine in some old (not the latest) Crystal Reports RDC engine.

Parameters statement

$
0
0

Hi,

Because I need to use crViewer_ClickPage event, I need to change from Crystal Reports Basic for VS2008 to SAP Crystal Reports, version for MS Visual Studio. (Find on SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads.)

Since I have installing 13.0.7.1136 that is SP7 (Support pack), i need to assign twice the reportsource if I want parameter take effect immediatly !

No change in the report was done...

Only reference to CrystalDecisions Dlls 13.0.2000.0 version instead of 10.35.3700.0.

 

    Dim MonEtat As New Etat_Stock_RACK

 

    MonEtat.SetParameterValue(MonEtat.Parameter_Zone.ParameterFieldName, gsZModele)

    MonEtat.SetParameterValue(MonEtat.Parameter_Allee.ParameterFieldName, cmbAllee.Text)

    MonEtat.SetParameterValue(MonEtat.Parameter_CTQUI.ParameterFieldName, CTQui)

    MonEtat.SummaryInfo.ReportTitle = "ETAT du STOCK RACK ZONE " & gsZModele

    With crViewer

      .EnableDrillDown = False

      .ReportSource = MonEtat ' BUG avec CR V13, il faut appeler 2x pour prendre les paramètres

      .ReportSource = MonEtat

    End With

What consideration required while migrating VB6 application to VB.NET?

$
0
0

Hello,

 

I am migrating VB6 application to VB.NET application. I am using MS Access database for generating crystal report. My problem is in VB6 application crystal report is working fine, but in VB.NET application some values are missing in report even if there is same database. So please let me inform where I am lacking.

 

 

Regards,

Ashish

Label height wrong

$
0
0

Since we moved to Crystal 13 all the label reports are not printing correctly anymore.

If we have a report (e.g. Herma 4450) printing 3x9 labels the last label on the page is almost half a label height off.

Has anything changed in printing labels, do we have to recreate all the reports?

 

Thomas

Viewing all 3636 articles
Browse latest View live


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