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

Error : .CS file not generated for adding Crystal Report to Website in VS2013

$
0
0

I have been facing issue of not finding the .CS file after adding Crystal report to VS2013 Website. It adds Crystal report to Web application, Winform etc but not to the website. Also If I create a manually generated .CS file, It runs locally but not after putting it on the server by producing the error

Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.]

  CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +233

 

I guess not generating the .cs file is the actual problem. I have updated the SP14 for VS2013. Still facing the problem.

Please let me know soon if possible. I appreciate your help. Thanks.

Regards,

Gaurav


MaxRowsetRecords Registry Entries Not Working

$
0
0

Hi.  I am using Crystal Reports for Visual Studio with Visual Studio 2013 and have the reports running on .NET 4 website on Windows Server 2008 R2. One of my reports uses a dynamic parameter and the dropdown is not showing all the values.  I had this problem about a year ago and I was able to solve it by adding the MaxRowsetRecords registry entries with a value of 2000.  Now there are about 2500 values.  I have changed the MaxRowsetRecords values to 10000 and restarted the server but the dropdown still only shows 2000 values

 

Here are the registry entries I have changed:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

Does anyone have a solution for this?

 

Thanks,

 

David Perry

Crystal Reports and Sql CE

$
0
0

I have created a desktop application using SQL Server and I now want to switch it to SQL CE so that it can be a stand alone app. No problem converting the code, that works fine but  I am going crazy trying to get my reports to use the embedded database.

So far I've tried:

1. Go into report and choose Set DataSource Location then find my dataset under ado.net objects.

2. Go into report and Set DataSource Location then find my dataset under Database files.

3. Create a dataset in code and assign it to the report's datasource property.

4. Create a new report using the dataset.

 

None of these returns any records.It's like the report can't connect to the database.

 

Any help with this will be greatly appreciated.

dynamically setting page footer length

$
0
0

is it possible to set page footer length dynamically ?

How can I data-bind using IEnumerable?

$
0
0

I'm new to Crystal Reports and I have the task to upgrade an existing application from ASP.NET WebForms to Web API/Entity Framework.

 

Looking at the SetDataSource() member method it looks like Crystal Report allows to alternatively feed a DataSet based report with some arbitrary IEnumerable object.

 

I'm supposed to feed the report with data taken from web service, i.e. deserialized JSON data. And I wouldn't want to resort to the obsolete System.Data namespace any longer, particularly as this would require me to regain the whole database schema from an arbitrary object tree.

 

So what format does the IEnumerable overload need to match to have to it work on a Crystal report that has been generated based on a DataSet?

 

Thanks for enlightening me.

how can I customize chart bar color runtime?

$
0
0

I'am a vb developer, visual studio 2005 and 2013 with the integrated Crystal report for VS

I am working on a bar chart, I need to set the bar color based on a field property

The only option seems to be under the report generator to use the color option Windows to associate a color to a field value, but I need to do it Runtime, as the field values can change.

Is there a way to access this properties Runtime and set the color as I need?

Untill now I was not able to find a way to do it.

How can I do it?

Crystal Report Navigation from Page 2 to Page 3 requires 2 clicks.

$
0
0

Hi,

I am using Crystal Report 13.0.12 and Visual Studio 2013 and my purpose was to integrate Crystal Report with .aspx page. I load all my report parameters, crystal report file and my stored procedure, for multiple reports, from a compiled dll.

 

Everything worked perfectly fine except when I navigate from page 2 to page 3 I have to click the navigate to next page button twice. From page 2, if I click the next page nav button, page 2 is rendered and again when I click the same button, then only my report navigates to page 3. I have not been able to figure out the issue and I have no idea what I should be looking for.

 

I am using Session Variables to store all my parameters and report document and on post back, I am loading report from session variable.

 

Another issue I'm facing is:

I load a report with multiple pages. I navigate to some other page than page 2 (Eg: page 3 or above) then I change my report parameter values and press load button. This gives me a blank page with current page no 3 or above (which ever page I was in before). I am not sure if this issue is related to the issue mentioned above and will be resolved if the former is resolved.

 

I am totally unaware where my issue lies. Could you please help me out. (I am not so new to .NET but very new to crystal report).

Top 10 Conditional Formatting

$
0
0

I am using Crystal Reports 2013. I have 6 fields that make up the data of my groups. What I would like to do is highlight the top 10 numbers between these 6 fields. Theoretically it is possible to have all 10 in one column. I have included a picture to hopefully help explain my report. Any ideas on if this is possible in Crystal Reports?


Temp file left behind after export

$
0
0

I have some code that runs a report and exports it as a pdf to the end users browser from an ASP.net web application.

 

Here a sample of the code.

 

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

report.Load(HttpContext.Current.Server.MapPath("./Report.rpt"));

//code to populate report

report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, Page.Title);

report.Close();

report.Dispose();

Response.End();

 

Everything works fine with the exception that it leaves behind a single temp file in the C:\Windows\Temp folder on the server. The file has a name like tmp7CE8.tmpis and is the pdf version of the report.

 

All the other temporary files that get generated by Crystal are removed once report.Close(); and report.Dispose(); are called.

 

This is filling up the C:\Windows\Temp folder and the files need to be manually deleted.

 

I know that I could setup a task to do this on a regular basis and we have as a temporary solution.

 

Should this file be left behind? I figured that since it was exporting directly to the Response stream that the temporary file would not be required once that has occurred.

 

I am using CrystalDecisions.13.0.0

 

Thanks.

Crystal Reports 12 - .Net 4.5 - LogOn Failed

$
0
0

Hi

  I have an app that I am deploying on the end-user's machine. The app also calls a couple of crystal reports reports (non- embedded). The reports are running fine on the dev machine. But when I deployed it and run from the user's machine, 'LogOn Failed - Please try again" error is thrown when the report is loading.

I installed Crystal Runtime (SP7) on the client machine.

I installed the SQL ODBC (native client) on the user's machine.

But the error persists.

The reports are running OK on my (dev) machine.

 

I would appreciate any help in this regard.

 

Thanks

Kanthi

The CR 2010 for VS engine changes the margins and scales the report

$
0
0

The CR 2010 for VS engine changes the margins and scales the report but only when printing.

 

Environment:

OS: Windows 7 x64 / Windows 2008 x64

VS: VS 2010 x64

CR designer: CR 2008 SP3.5

CR engine: CR 2010 for VS SP1

 

We have upgraded the Crystal Reports engine from version 10 to u201CCrystal Reports 2010 for VSu201D and are now having major issues with printing reports to preprinted papers, giro forms etc. because the report margins are changed and the reports are scaled (when report elements are in non-printable area?). Reports with elements in non-printable area are shown correctly in print preview (CR 2010 CrystalReportViewer) but moved to printable area when printed. This behavior was different in CR 10. Changing the PrintLayoutSettings in code is ignored when printing.

 

Error u2013 The printed reports are scaled:

-     Print in the CR 2008 Designer SP2

-     CR 2010 for VS SP1

 

OK u2013 The reports are not scaled:

-     Print in the CR 2008 Designer SP3.5

-     Print in the CR 10 Designer

-     CR 10 engine

 

Test:

 

1) Crystal Reports Designer 2008 (with SP 3.5)

 

  a) Create a new blank RPT file.

 

  b) Set report margins to 0,0,0,0 in Page Setup.

 

  c) Add a box in the upper left corner (x=0, y=0).

 

  d) Select "Print preview" and validate that the box is located in 0,0 in preview window.

 

  e) Select u201CPrintu201D and validate that the box is located in 0,0 of the paper. Some of the box borders might be outside of the printable area but that is ok.

 

2) Visual Studio 2010 and u201CCR 2010 for VSu201D with SP1:

 

  a) Create a new Windows Forms Application project (.NET Framework 4.0). Set project to u201C.NET Framework 4.0u201D and platform target u201Cx86u201D.

 

  b) Add the CrystalReportViewer control to Form1.

 

  c) Add the RPT file to the CrystalReportViewer control

 

  d) Run the application

 

  e) Validate that the box is located in 0,0 in the CrystalReportViewer control.

 

  f) Select the "Print" icon in the CrystalReportViewer

 

  h) Click the "Print" button and validate that the box is moved to the printable area which is wrong.

 

Notice: In the print dialog (CR 2010 for VS) select the "Layout" tab page and see that "Scale u2026" is selected and cannot be changed. This is different from the CR 2008 Designer even though that it is the same report file and printer.

Job HasRecords property

$
0
0

Hi!

 

If i wanted to detect if a print job (printer, screen or file) is empty, what are my options? I found a HasRecord property. Oddly enough, accessing this property will return a true if the report has records, but throw an exception if the report has no records. I can certainly handle that, but it seems sortof odd:

 

rc=jobb->OutputToPrinter(1);

//

if(!rc)

{

  AfxMessageBox(jobb->GetLastError(), MB_OK|MB_ICONSTOP);

}

else

{

  try {

  rc = jobb->m_Report->HasRecords;

  }

  catch (System::Exception ^e)

  {

  TRACE("HasRecords() Exception %s", e->Message);

  rc = false;

  }

}

(VS 2012, MFC, C++)

 

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: CSResultException at memory location 0x00886148.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088b10c.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088aee4.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088af4c.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088af94.

A first chance exception of type 'CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException' occurred in CrystalDecisions.ReportAppServer.DataSetConversion.dll

 

I also saw that someone else had similar issues: Crystal Reports Missing Parameter Value

 

Any ideas? Am I going about this the wrong way?

Hyperlink error internet explore 11

$
0
0

I have made a crystal report using version 11

 

Based on the field ticketId I created a hyperlink formule which bascially says: 'http://websiteExample.com/form=3&ticketid='+{opdracht.TicketId}

 

If I run the code in crystal reports 11, it works.

Now we copy the report to the website and now when we click on the ticketId, in internet explore it shows the default ticketscreen like if you didn't select a ticket yet.

 

In chrome however it works fine and automatically opens the right ticket.

 

I do not know which webviewer version of crystal reports viewer they use.

 

How can I solve this?

Visual studio application stops working after running crystal report.

$
0
0

development environment _ window 7 64 bit

Visual studio 2010

Crystal Report 11.5 rel 2.

 

I have installed crystal runtime for 32 bit and 64 bit on my development machine (win 7 64 bit).

I am able to run reports on development machine without any issue.

 

My executable fails on client machine (window7 32 bit).

Application fails on client machine after I run crystal report. Report is displayed on crystal report. After few minutes of running crystal report all of a sudden application stops working and only option I have to close the application.  I have copied event log. I am clue less how to resolve this issue. Thank you. - Hema Patel

________Event log____

 

+ System



  - Provider



   [ Name]  Application Error


 


  - EventID 1000



   [ Qualifiers]  0


 


   Level 2


 


   Task 100


 


   Keywords 0x80000000000000


 


  - TimeCreated



   [ SystemTime]  2015-09-21T18:59:07.000000000Z


 


   EventRecordID 84731


 


   Channel Application


 


   Computer ESPO.FIRE.BUREAU


 


   Security


 



- EventData



   FireProject.exe


   2.0.2.16835


   55e85759


   KERNELBASE.dll


   6.1.7601.18847


   554d7b00


   ebf00baa


   0000812f


   1a48


   01d0f49d665eca80


   C:\Program Files\Specialty Systems Inc\Mobile FirePRO\FireProject.exe


   C:\Windows\system32\KERNELBASE.dll


   d592b119-6092-11e5-8d56-ffd1f314d1a6

Export report to Excel fails

$
0
0

Hi,

 

We have received feedback from our Korean customers that the export to Excel function fails.

 

Problem has been noticed for the Crystal report for Visual Studio V13_0_13.

Their windows user account are set for Korean language.

 

The problem is not related to the report content.

 

I think that your export to Excel function is using a temp dir which is not reachable when non-unicode character is set to Korean.

 

Thanks in advance to provide a patch for this and to let me know.

 

 

Kind Regards,

 

David


Enable logging for Crystal Reports runtime engine

$
0
0

Hello -

 

I have a Windows 2012R2 IIS server with Crystal Reports Runtime Engine for .NET Framework (32-bit and 64-bit) installed. It interacts with applications leveraging an application pool using .NET v.2. I'd like to enable logging within this application. I see the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\logging.

 

I followed the instructions in the link below, adding the registry entries and then rebooting the server. However, no logs have been generated.

 

1470978 - How to enable/disable crpe logging for the Crystal Reports .NET SDK

 

SAML Response from SAP Cloud Identity

 

Has anyone gotten logging working? Thanks in advance.

Display images via CRUFLs and why does the UFL assembly not get updated at times?

$
0
0

Hello,

 

This is a two part question:

 

1. Is there in-built support in CRUFLs(via u2l2com.dll) to get images displayed directly in Crystal Reports?

    And if what are the return types allowed for the UFL functions? And is there any limit on the number of functions or any restrictions on the signature of the functions; which could be exposed via this method?

 

2. Why do the assemblies not get updated at times; this is happening on a random basis; sometimes the whole "COM and .NET UFLs(u212com.dll)" node disappears from the Additional Functions?

 

 

Any response would be appreciated.

 

 

Thanks!

Crystal Report Navigation from Page 2 to Page 3 requires 2 clicks.

$
0
0

Hi,

I am using Crystal Report 13.0.12 and Visual Studio 2013 and my purpose was to integrate Crystal Report with .aspx page. I load all my report parameters, crystal report file and my stored procedure, for multiple reports, from a compiled dll.

 

Everything worked perfectly fine except when I navigate from page 2 to page 3 I have to click the navigate to next page button twice. From page 2, if I click the next page nav button, page 2 is rendered and again when I click the same button, then only my report navigates to page 3. I have not been able to figure out the issue and I have no idea what I should be looking for.

 

I am using Session Variables to store all my parameters and report document and on post back, I am loading report from session variable.

 

Another issue I'm facing is:

I load a report with multiple pages. I navigate to some other page than page 2 (Eg: page 3 or above) then I change my report parameter values and press load button. This gives me a blank page with current page no 3 or above (which ever page I was in before). I am not sure if this issue is related to the issue mentioned above and will be resolved if the former is resolved.

 

I am totally unaware where my issue lies. Could you please help me out. (I am not so new to .NET but very new to crystal report).

Generate pdf with Crystal Reports in a 64 bit WCF Service Visual Studio 2013

$
0
0

My WPF aplication use crystal report for Visual Studio (CRforVS_13_0_14.exe)

The reports DO NOT connect to de DB directely , receive data fom a DataSet.

The reports execute sucesfuly on the client, but when try to generate a PDF in a WCF services the command

 

_reportDocument.SetDataSource(reportData);

 

generate the chrash of the server "WcfSvcHost.exe"

the same result on production environment where WCF is hosted in windows service

 

Unfortunately don't have more information on the problem only see

 

temp_e02b91ed-590f-489c-8b9f-c6b65e5e063a.rpt

temp_e02b91ed-590f-489c-8b9f-c6b65e5e063a 8372_5148_{4FADE7B1-C970-490D-92D5-22F7E52F7BC6}.rpt

~DF393076A53B2E01C3.TMP

 

 

in the temp directory

 

thank you for help

Re-prompted for database login

$
0
0

Hello

If I display, via VB .net report viewer control, a report generated with VS .net then I'm re-prompted to login to the database at runtime. If I load and save the same report in V9 of Crystal Reports application, no re-prompt and the report is displayed ok.

 

PS. I am changing the server and database names at runtime.

Viewing all 3636 articles
Browse latest View live


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