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

Commercial Support for Crystal Reports for VS

$
0
0

The company I work for is currently evaluating SAP Crystal Reports for Visual Studio.  We have a few questions about support.

 

  • If we have a production site down, what is the procedure for obtaining support from SAP? 
  • What time frames are we guaranteed a response in? 
  • Is support free, or do we pay per incident?
  • What happens after end of mainstream maintenance (currently Dec 2018)?  Can we still get support for our sites?

 

If possible, can you please link to official documents in your answer.

 

Thanks,

Brendan


CR .Net runtime uses saved data in the report instead of re-running report query

$
0
0

Hello:

 

I am using the code below

 

ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(_reportRequestInfo.FullReportName, OpenReportMethod.OpenReportByDefault);
//reportDocument.ReportOptions.EnableSaveDataWithReport = false;

....

reportDocument.ExportToDisk(exportFormatType, outputFileName);

 

and I noticed that the runtime returns the data from the report instead of re-running the query behind the report.

 

Now, if I uncomment the third line it works the way it should. Is that the way to force the CR runtime to discard the data in the report and force the engine to re-run the queries upon export to disk?

 

Thanks

Embeding full set of fonts when exporting to PDF from a Crystal Reports file

$
0
0

Currently when a file is exported to a PDF from a Crystal Reports file a subset of the fonts are embedded.  Is there a way to embed the full set of fonts into the PDF when exporting from a Crystal Reports file?

Error exporting with chart in report

$
0
0

I've got a Windows Form application that I'm trying to export a report from. I've verified that the report is correctly generated within Crystal and that I can export the form there, but when I try to export from the Forms Application I get a "Cannot find Path" type error. I've done my research and I know the error means more that there is an issue within Crystal then it does with the actual path. I've done a lot of testing and I've narrowed the problem down to the presence of a chart within the report. If I remove the chart and leave everything else the same the report exports to a PDF without any problems. Otherwise I get the error. There's nothing special about the chart, but even if I strip out all the formatting and create just a basic as-is chart I still get the error. Any thoughts?

 

Visual Studio Profession 2013

Crystal Reports 2011

Support Pack 14 installed

Re-exporting the same report to pdf doesn't create an identical file

$
0
0

Hello:

 

I am using CR 13.0.14, .Net 4.5.1, VS 2013 and I created a script that tests all the reports and it generates pdf files. The workhorse is a C# app that runs and exports the reports. The C# code is pretty simple, load the report, refresh (to get rid of the report data if any), set the connection using RAS, then export to PDF.

 

So, I chose a report whose data should not change between runs and, what I am seeing is slightly different number of rows per page between runs.

 

Do you have any idea why this is happening? Does the formatting of the page depend on the default printer? One thing to note is that I connect to the computer where I run these tests using Remote Desktop and the default printer is a printer that is not available (it is a printer of my current  computer). Does this have an impact?

 

Thanks

Report Viewer controls inaccessible when user scrolls to bottom of page

$
0
0

Client-Side Report window

When the user scrolls down to view the bottom of the page, the content scrolls but the controls stay at the top of the page.

1.png

2.png

Server Side

The viewer is rendered to display the entire page, but it displays in a smaller IE window.  When the user scrolls down to view the bottom of the page, the viewer controls are no longer accessible at the top of the page, requiring them to scroll back up to use them.

3.png

4.png

 

SAP Run time 13.0.7

Texts Truncate and Wrap in Crystal Reports Cross-Tab

$
0
0

Hi,

 

I'm having a strange issue with my crystal report.

Starting from a few days ago, the texts inside the crystal reports cross-tab (in both PDF and Excel exports) are getting truncated/wrapped without changing anything to the report.  I didn't change the default printer either.

 

This issue only happens in my client's staging site and my localhost.  Production site and my internal staging site have no issue.

I'm using crystal report for VS 2005.

 

This is from my localhost:

1.png

 

This is from my internal staging:

2.png

 

Could anyone please help me to solve it?

SAP Crystal Reports engine for .NET Framework 4 Version13.0.0.99

$
0
0

Hi everyone,

 

We have an old application that requires version 13.0.0.99 to run properly. I've tried newer versions but that generates some errors.

I can't find any source to download version 13.0.0.99, 32 bit and 64 bit, and was wondering if someone could point me to the right direction.

 

Thank you in advance.

 

Regards

Ro Mar


What is the best way to run a CR report generically from a .Net application ?

$
0
0

Hello:

 

I came across the issue I reported here: CR runtime uses tables from the wrong schema (Oracle)

 

Now I am confused because what I thought it would work it actually doesn't work in all cases.

 

I used code like this to set the connection and run any CR report in our system.

 

private ConnectionInfo CreateConnectionInfo()
{
ConnectionInfo connectionInfo = new ConnectionInfo();
//  connectionInfo.DatabaseName = "rdDev";
connectionInfo.UserID = _reportRequestInfo.ReportRunUser;
connectionInfo.Password = _reportRequestInfo.ReportRunPassword;
connectionInfo.ServerName = _reportRequestInfo.ReportRunInstance;
return connectionInfo;
}

 

private static void SetDbLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
{
//  Database database = reportDocument.ReportClientDocument.DatabaseController.Database;
//  foreach (ISCRTable table in database.Tables)
//  {
//    _log.DebugFormat("table: {0}", table.QualifiedName);
//  
//  }

 

Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
TableLogOnInfo tableLogonInfo = table.LogOnInfo;

 

_log.DebugFormat("table={0}, location={1}", table.Name, table.Location);

 

tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
}

}

Digging more into the issue, I have I found code such as this one: crls/CrlsReportDocument.cs at master · chrishibler/crls · GitHub

or the one that is generated by Ludek's utility (very similar with the code from the previous link) that sets all sorts of properties and it makes use of the RAS Server classes

 

Do I need to code this way or the other way? It seems that my way of doing it has the issue that it doesn't retain the original report table schema names.

 

Basically there are two sets of objects, one under the CrystalDecisions.ReportAppServer.DataDefModel and the other one under CrystalDecisions.CrystalReports.Engine. When do I use one and when do I use the other?

 

I looked with .Net reflector and the objects under CrystalDecisions.CrystalReports.Engine seem to be wrappers of objects under CrystalDecisions.ReportAppServer.DataDefModel. Why have two sets of objects? I personally find it confusing.

 

 

Thanks

Generating an RPT file

$
0
0

This question has probably been asked before, but I didn't find anything that specifically answered it, so here we go:

 

We have a database with hundreds of tables, and I need the capability to generate reports on the fly from a custom query.  These would, of course, be simple reports showing the contents of a table or a view. 

 

However, I will also need to be able to specify the fields, set the column headings, include rudimentary filters, indicate the report orientation (portrait or landscape), and possibly other report characteristics.  In other words, I would like to be able to generate an RPT file by taking an existing RPT file template, making the necessary changes, and then running the report.

 

Ideally, I would like to be able to work with an xml version of a Crystal Report template, and generate an RPT file from that.

 

We have both CR 2013 and CR for Visual Studio, so either one could be used.

 

What is the best way of doing this?

What PageSettings do i need?

$
0
0

Hi All,

 

He is what I have: I have designed several reports at home inside a vb.net application for a customer.

They want to print the reports to a network printer. which is fine.

 

I have the following set.

 

PageSetup.PNG

This is a generic report, should always print in landscape 11.00 x 8.5

Help making the group name field function on web like the windows forms viewer

$
0
0

We are moving our application over to a web version from a Windows form version. I have a "Group Name Field" that is drawn to cover the entire Section so in Windows Forms crystal viewer it displays with a magnifying glass over the top of the entire row. On the Web though once the report is generated it is an anchor tag on the text only. In my image only the "0258" is clickable for drill down.

 

Is there a way to modify the report to make the anchor tag go across the entire Section like in the Windows forms crystal viewer?

SP14 ClickOnce PublicKey not correct?

$
0
0

I failed install SP14 runtime by ClickOnce.

Error message in log file is "CRRuntime_32bit_13_0.msi has changed since it was initially published".

 

I compared following A with B, and I confirmed that they were different.

A) PublicKey attribute in <PackageFile> element in product.xml

B) Public key of the .msi file's certificate signer. (by looking property dialog in explorer.exe)

 

Is wrong product.xml?

Overlap issue with accented characters

$
0
0

Hi,

 

When printing a report the accented character get overlap.  It happend also when previewing in the crviewer components (WinForm) but in a minor measure.

This occurs in windows server 2012 but not in windows server 2008 R2.

 

Do I need to set a specific configuration for server 2012 ? Do I need to wait for SP15 ? Something else ?

 

Regards,

 

Rémy

SAP Crystal Reports 2011 - excel export data only problem

$
0
0

Hi, we have an issue with Excel export (data only). Report exports page headers and footers only once. We use SAP Crystal Reports 2011 (CR Developer Version 14.0.4.738 RTM).

Reports get opened through C# application (MS Visual Studio 2010).

In .rpt file if I go [File] --> [Export] --> [Report Export Options] --> [Microsoft Excel (97-2003) Data-only] - I can uncheck [Simplify page headers] and check [Export page header and page footer].

 

This setting results in exporting Header/Footer information only once per report. Is there any option to have similar to export to Excel where there is a setting to export page headers and footers once per report or on each page.

 

Unfortunately due to the complexity and legacy of the report there is impossible to change report logic and design (see attached picture), so if there is a way to "adjust" Excel data only export - I will appreciate any comments.

 

Regards.


Microsoft KB3078601 GDI+

$
0
0

After installing the Microsoft KB3078601 we start to receive a GDI+ error when printing the report, the preview works fine

I was using 2008 version and I've also tried to update to the latest 2013 SP14 version with no luck

The barcode on the report is giving the problem, when I remove it the error disappear

Do you have any suggest?

 

 

I've also found this post but in the wrong section of the forum

Microsoft Windows Update KB3078601 is giving er... | SCN

 

Regards

Daniele

"The system cannot find the path specified" Error WebAPI Oracle11g

$
0
0

I am getting "The system cannot find the path specified" error when exporting from WebAPI Restful web service.  My development environments are:

 

 

Windows 7 SP1 x64 Bit

Visual Studio 2013 Community

Crystal Report Support Pack 14 (v.13.0.14.1720)

DotNet 4.5.1

oracle instant client 11.2 (both x86 and x64) 

Oracle 11g R2

 

 

I have seen a number of other posts, suggesting "The system cannot find the path specified" is related to the database connections not being set properly.  To debug, I have done the following things to eliminate such possibility:

Remove all sub-report

Display only a single table with a single columns

Run the report as an executable program (And it works)

 

 

Since I was able to export the report in a exe program, I was thinking maybe crystal report is not compatible with  WebAPI.  To check, I've created a report connecting to MS SQL Server, and it works.

 

 

Given I have proved there is no database connections error, and crystal report can be generated from WebAPI (At least for MSSQL), I would really appreciate if someone can help me figure out what's the problem.

 

 

This is the source code of my attempts so far

https://www.dropbox.com/s/hyxuff79jwwar3q/WebApplication1.zip?dl=0

 

 

And this is the error exception

{

  "Message" : "An error has occurred.",

  "ExceptionMessage" : "The system cannot find the path specified.\r",

  "ExceptionType" : "System.Runtime.InteropServices.COMException",

  "StackTrace" : "

  at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)\r\n

  at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)\r\n

  at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)\r\n

  at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)\r\n

  at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)\r\n

  at reportManager.ReportManager.generateOracleReport() in c:\\Temp\\WebApplication1\\reportManager\\ReportManager.cs:line 31\r\n

  at WebAPI.Controllers.DefaultController.getOracleReport() in c:\\Temp\\WebApplication1\\WebApplication1\\Controllers\\DefaultController.cs:line 16\r\n

  at lambda_method(Closure , Object , Object[] )\r\n

  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)\r\n

  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n

  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n

  at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n

  at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n

  at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"

}

Crystal Report Viewer Printer setting not follow windows default custom paper

$
0
0

  Dear All,

 

I am having problem with the crystal report viewer printer setting. Please see what i have done

 

1) I have a custom paper size which i already created in the windows OS. And i have select this paper as default size for my default printer

2) In the crystal report development section, i choose the particular paper size and printer.

3) if i "Printtoprinter', there isn't any issue

4) But if i use crystal report viewer to preview the print out. In the printer setting of crystal report viewer. I can see the printer setting isn't apply to crystal report viewer.

5) The printer setting is not retained even i have set once during the runtime as well. Hope someone could help . Thank you

 

setting.png

 

cr setting.png

runtime.png

HOW TO CHANGE THE DATASOURCE AT RUNTIME FOR DATASOURCE USED " WINDOWS EVENT LOG "??

$
0
0

I have create the crystal report in Visual Studio 2010 using data source as windows event log. for this I have created a new connection from the database expert window.

 

More new connection-> NT Current Event-> create new connection (given local machine as server name for designing)

 

then I designed the report.

 

Now I want to change my connection to othe server's windows event log at runtime through vb.net code. for this I have tried below code

 

With Connectionifo

.serevr="SERVER_NEW"

.database=                                    \*(Not sure what to give)

.Integrated security= true

end with...... (and also passed all table info with the similar code)

 

(the above report is working fine for reports pointing to sql server databse)

 

but it is not working for reports pointing to windows event log.

 

 

Kindly help me .

.

ASP.NET CrystalReportViewer error "Line: 12 Error: Unable to get property 'length' of undefined or null reference" when trying to go to the next page

$
0
0

Hi, I'm using Crystal Reports 13 for VS2010 using C#, and recently I installed Support Pack 14. My problem is when I'm trying to go to next page it prompt webpage error saying: "Line: 12 Error: Unable to get property 'length' of undefined or null reference" Any suggestions?

Viewing all 2556 articles
Browse latest View live


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