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

can parent report share dataset with sub-reports in CR?

$
0
0

I am creating a CR report where data from a single source but  needs to be presented in the report in 3 different ways (summary, details and charts). I have to insert 2 sub-reports to do that. It's working but the performance is bad because it queries DB 3 times. So my question is  Can the parent report share the data results with the sub-reports so I only need query database one time?

Thank you!


Custom legend text in chart ok in preview but not in production

$
0
0

Hi to all, I've got a problem in customizing legend text in my chart. I followed this instructions

 

1. Open report in CR.

2. Set report do "Preview Mode" by clicking View -> Print Preview

3. When in "Preview Mode", select the Legend label you want to change the text of.

4. Right click on the Legend label and select "Edit Axis Label"

5. Then, select the chart, right click and select Chart Expert -> Apply template to group.

6 Save the modified report.

 

till number 5 because I haven't found this command (Apply template to group) in my version of CR (I use CR 2013 support pack 4 in italian language).

Anyway in preview mode inside CR all it's ok. But when I produce the report inside my application (Visual Studio 2015) or in production the legend text is not what I wrote but the standard one. I use runtime 13.0.6 32 bit, the application is compiled x86. Where am I wrong?

 

Thanks in advance,

Massimo

Crystal Report Single Page Duplicates

$
0
0

Hi Everyone, Please I am using Vb.Net 2015 with Crystal Report CRforVS_13_0_15.

Now I have two problems.

1) I have designed a report in Landscape with a single page but when I preview the report, the same page duplicates to 11 pages. I just can't figure it out.What could please be the problem?

 

2) I have a problem with a date field on the report with a datatype in the SQL database as date. This date field on the report comes with time portion. I right-clicked on the date field on the report and selected format object and clicked on "01-Mar-1999" format but still the time portion appears. Please what am I doing wrong? Thanks in advance

 

Message was edited by: Ben Sebuabe

FileNotFoundException on ReportDocument.SetDataSource method

$
0
0

Hello,

 

I am using crystal report viewer in my WPF application. It is working fine on my system. But when I am trying to open this application from othermachine, then applicationis crashing while generating the report.

 

In my local system, I have installed SAP crystal report forvisual studio 2010.

 

On the client system, I have installed CRRuntime_32bit_13_0_14.msi.

 

Following error is captured in event viewer.

 

 

Exception Info: System.IO.FileNotFoundException

Stack:

   atSystem.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   atSystem.Reflection.RuntimeAssembly.nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   atSystem.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   atSystem.Reflection.RuntimeAssembly.InternalLoadFrom(System.String, System.Security.Policy.Evidence, Byte[], System.Configuration.Assemblies.AssemblyHashAlgorithm, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)

   atSystem.Reflection.Assembly.LoadFrom(System.String)

   atCrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr)

 

 

I have added following tag in my app.configfile butstill it is not working.

 

<startupuseLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

  </startup>

 

Please let me know what I am missing here.

Remove time portion from a date field

$
0
0

I'm using Vb.Net 2015 with CRforVS_13_0_15 and I have a problem with a date field on the report with a datatype in the SQL database as date. This date field on the report comes with time portion. I right-clicked on the date field on the report and selected format object and clicked on "01-Mar-1999" format but still the time portion appears. Please what am I doing wrong? Thanks in advance

Crystal report not taking updated data, asking for parameter on refresh

$
0
0

Hi,

I created crystal report. Its working fine, but if new data is added to database (new sales bill for any customer) through form, then report dont show the newly added Sales bills of that particular customer, it shows old data. If i refresh the data then it asks for the parameters. I am sending 4 parameters to report namely custname, startdate, enddate, openingbalance. When report load for first time it takes all the parameters.

 

So please help me how i need to sort this out. Another thing is this option (/Design/Default Settings/Reporting/Discard Saved Data When Loading Reports) is not clicked . Still it is saving the data.

 

Thanks in Advance for the help.

Crystal Runtime will not hold printer defaults in IE

$
0
0

So I am completely lost on this and was wondering if anyone else as having this issue. I am using IE 11 and trying to print out of Crystal Reports Run time on a report from a web application. Crystal will not hold my printer defaults at all, this is happening to multiple machines. I have tested and it is only happening with Crystal. I have done everything from reset IE to a new install of Windows to security setting changes. This problem happened randomly a few days ago. Does anyone have any ideas?

Invalid Parameter value on client computers that upgraded to win 10

$
0
0

Hi everyone, Im using Visual Studio 2012 with crystal reports

 

So everything was working fine and then all of a sudden some client computers are getting this error when opening the reports AFTER choosing parameter values (so the crystal reports window opens and the parameter window pops up)

 

 

InvalidParameter value: exceeds the Min or Max or conflicts with existing value or edit mask


I searched online for answers but all i could find is this


http://stackoverflow.com/questions/18812849/why-does-it-generates-an-error-saying-invalid-parameter-value-when-i-pass-an


The thing is everything works fine on my computer (win 8) and worked fine on other computers. We upgraded to win 10 maybe a month ago (i still haven't) so maybe that is the cause? It seems to be something to do with regional settings but ive changed just about everything on my computer trying to reproduce the error with no luck.


To give a bit more info the report doesn't pass the parameters in code, I set it in visual studio crystal support surrounding. So the user chooses the date values in the prompt window.


Any help on this would be appreciated


UPDATE


It definitely seems to be a problem with Win10 cos another computer that uses windows 7 works just fine. I have tried reinstalling crystal reports and installing the newest version (16) on the problem computer I have tried manually adding the newest version of CrystalDecision references but the problem persists.


.rpt won't open after modifying

$
0
0

Hi everyone,

 

I'm new to the crystal reports, after modifying the rpt files directly by opening in Visual Studio 2015, changing the Database path also, when I open the project (a VB6 that I've converted to work in VS2015), and try to open the file, i get this error message 'one or both of these files are not text files and cannot be opened une the comparison window' indicating two different paths for the file to be registered.

Please need your help. PS, i didn't compile the project yet.

 

Many thanks in advance.

We got an error with the follow description: "Unable to find the report in the manifest resources. please build the project and try again." Somebody know what happen?

$
0
0

Hi, We have a critical situation in Crystal Reports component that doesn't make any sense. We have a windows form application, developed in Visual Studio 2005 with .NET 2.0 When we need to do any kind of maintenance, that requires to re-build our application, we got an error with the follow description: "Unable to find the report in the manifest resources. please build the project and try again." The awkward part is that we did not change anything related to the crystal report class. We have already tried to delete the report from the project and create it again, but it did not solve the problem. It's worth to mention that this error only happens with 2 reports from 12 available to be executed in our application. If there is any additional information that could be helpfull, let me know. Follows information about our Crystal Reports component Version: 11.5.3300 (located in c:/windows/assembly) Looking forward to hearing from you. Thanks.

All my reports created in Crystal Reports stop working

$
0
0

Good afternoon friends, I have a problem with my reports created in Crystal and .Net , when it reaches a certain number of reports generated these generate an error , even though the server to have configured the Crystal presentation of an unlimited number of reports. I send the generated error lines :


"

CrystalDecisions.Shared.CrystalReportsException: No se ha podido cargar el informe. ---> System.Runtime.InteropServices.COMException: Se ha alcanzado el límite máximo de tareas de procesamiento de informes configuradas por el administrador del sistema. en CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- Fin del seguimiento de la pila de la excepción interna --- en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() en CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) en CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) en PROVIASDES.Presentation.Web.ReportViewer.WebReportViewer.loadCrystalReport(String nameReport, String nameProcedure, String fileLoc, String parameters) en D:\Personal\DEV\PRODES\PROVIASDES\PROVIASDES.Presentation.Web\ReportViewer\WebReportViewer.aspx.cs:línea 96

"


Thank you very much for your support...



Upgrade from RDC with Document Management Features

$
0
0

We have a .NET web application that was built using the RDC (craxddrt) component to perform document assembly.  This same application uses a third party tool to handle the storage and retrieval of assembled documents.

 

Issue #1: In the sea of information that is available here, I would like to know where I should be looking or what product/SDK I should be considering as a replacement to the now long unsupported technology that is the RDC.

 

The key is that we are using data to decide how the document is to be constructed which is happening "on-the-fly".

 

Issue #2: Does SAP/CR offer a document management solution? I suppose we could create our own, but I'm curious.

 

- Nick

Resizing crystal reports according to computer resolution

$
0
0

Hi,

 

I've a website with reports/charts done in crystal reports. Is there any way the reports can adjust the size when the computer resolution changes?

What happens now is I get scroll bars.

 

Appreciate your help.

 

Regards,

VB 2013 will not render Crystal Reports

$
0
0

When I create an installer package with Installaware X4 (and include the Crystal runtimes), the crystal reports in the package do not work on the target machine. The report comes up and then disappears. I include the CRRuntime_XXbit_13_0_15, CR basic runtime for VS 2008, CR for .NET framework 2.0 and CR runtime engine for .NET framework 4. Should I be using something else?

Azalea fonts not showing at user

$
0
0

I use VS2010 and CR. Have created report with Azalea fonts but on user pc fonts are not displaying correct. I have installed all Azalea fonts but still nothing. Any suggestions? On developer machine everything is OK.


SetParameterValue only working for default value

$
0
0

Greetings, I have created the following external report and C# console application which work perfectly on my development box.

When running the same console app and report on Windows Server 2008 R2 standard, it only works with the default parameter value being passed. It gives an error if I pass anything other than what I originally had set the report with as the default parameter values when running through the preview in the designer.

 

Here's what I created

1. External Crystal report  (.rpt) created in the Stand Alone Report Builder Version 14.0.4.738 RTM not Visual Studio

This report has a datasource with an integrated security to an MS Sql 2008 R2 Sql procedure via connection created through OLE DB (ADO), so no passwords or usernames. The report has 2 parameters. Application on server is using admin credentials to run so has full access to the DB.

 

2. I created a C# console App in VS 2013 that calls this report and sends the parameters to the report for each print job creating a new instance for the report each time since they go to different printers depending on the Branch of ea user. (for testing purposes I've pointed all Branches to my development printer). Visual Studio is using dlls Version 13.0.2000.0

 

3. Results from Windows Server....

Sends the first 2 parameters just fine

param 1 : Route

param 2 : EmpID

 

prints to my dev printer

 

loops back after closing report and creates a second reportdocument

Sends the second set of parameters

param 1 : Route2

param 2 : EmpID2

 

Then Errors out with the following

Error in File "reportname" (###-###).rpt

unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServi....

at CrstalDecisions.ReportAppServer.Controller.ReportSourceClass.Getlast.....

ETC.

 

It does not matter in which order I send the matching default parameters. The default parameter always prints out fine and the other one always fails. Default parameters never error out.

 

 

See pseudo code example below

 

string[,] EmpIDs = getEMPIDs();

foeach EmpID

{

     printreports(EmpID[])

}

 

printreports(EmpID)

{

     string sPrinter = getDefaultPrinter(EmpID);

     ReportDocument rpt = new ReportDocument();

     string sReportPath = System.AppDomain.CurrentDomain.BaseDirectory + @"Crystal\myreport.rpt";

     rpt.Load(sReportPath);

     rpt.SetParameterValue("@Route", Route);

     rpt.SetParameterValue("@EmployeeID", EmpID);

     rpt.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default;

     rpt.PrintOptions.PrinterName = @"" + sPrinter;

     rpt.PrintToPrinter(1, false, 0, 0);

     rpt.Close();

}

 

Again, this all works perfectly fine from my machine, but when on the Windows Server, it only works with the default parameters. I tested this by changing the default parameters on the report and then only those default parameters would work.

 

Much Appreciated.

Has anyone had to change group policies when using Crystal Reports XI R2 ?

$
0
0

Over the years we have had errors with Crystal Reports XI R2 that were unable to be replicated. We may have found one of the issues now and are curious if others have found similar issues.

 

This article shows what happens with a group policy blocking access to the printer.

 

Has anyone had to change code to add this group policy in before?

 

<http://www.printerlogic.com/printer-installer/support/user-guide-5-2/kb/getting-past-the-do-you-trust-this-printer-prompt/>

 

Getting past the &amp;quot;Do you trust this printer?&amp;quot; prompt | PrinterLogic

global.pngtrust printer.png

Data-Set login prompt

$
0
0

Hello all,

                 I am trying to create reports using two data-tables in the dataset which is source for the designing of crystal report. I am using sqlexpress as database for our asp.net web application.

         But the the crystalReportViewer is asking for credentials of the database and my database dont have any user_id or password.

         The question is "Why it is asking for credentials? " and "Is there any default userId and password for database?" I am stuck with this from last 2 weeks. Please reply.

           Thank You...   

    

Visual Studio tabs detach on their own as a separate window

$
0
0

I have a problem when using Crystal reports in visual studio (2015).

When I work on a report (doc.rpt) in a Visual studio tab, if I exit this first tab without saving my work for a second tab of source code (like code.cs, code.vb,etc) the second tab will detach, in an unexpcted way, from visual studio as a seperate window.

It becomes impossible to navigate between the report and the source code without a tab which detaches itself out of Visual Studio.

Did you had this problem? Did you now how to fix it?

cann't connect to database

$
0
0

we are developing a report in .net 2012 with crystal reports. But when hosting from IIS, the next page in the report is not working, it is giving an error saying 'cann't connect to database'. We are able to see the first page, from next page onwards, getting error. please help.

Viewing all 2556 articles
Browse latest View live