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

Latest CrystalReportsViewer Download?

$
0
0

I inherited a .NET web application that makes use of the SAP Crystal Reports Server 2011 and uses the CrystalReportsWebViewer control in an ASPX page which is contained in the CrystalDecisions.Web.dll. We have recently added support to our application for IE 11. There is some strange behavior in IE 11 when entering the letter "u" into the search input box, the character is "eaten" and doesn't output to the input box. I tried to follow the onkeydown event handler and don't see why this is happening. Works fine in Chrome, Safari 6 - 7 and IE 9 & 10 but having issues with IE 11

 

The version that we have and that seems to contain the bug is CrystalDecisions.Web.dll version 14.0.6.1036.

 

I figured I should try to update the CrystalDecisions.Web.dll to the latest version but can't seem to find where to obtain the latest version. We are using Visual Studio 2012 Premium Edition.


Exception ToString

$
0
0

Hi all,

 

Not often, I got the following exception when I try to produce report from our app. Usually, it can't be reproduced.

 

what is the reason?

 

BEGIN EXCEPTION LEVEL: 1

 

EXCEPTION TOSTRING: System.Runtime.InteropServices.COMException(0x8000000000):

 

No error.

 

at

 

CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerclass.ReplaceConection(Object oldConnection, Object newConnection, Object parameterFields, Object CrDBOptionUseDefault)

 

at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

 

at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(Dataset dataset)

at.....

 

 

 

 

Thanks in Advance,

 

 

 

Clara

   
 
 
 
 
 
 
 
 
 
 
 


Error (Load report failed.--System.Runtime.InteropServices.COMException (0x80040801): Transport error: Communication failure.(FWM 00001)

$
0
0

Hi All,

 

================================================================================================================== Error (Load report failed.--System.Runtime.InteropServices.COMException (0x80040801): Transport error: Communication failure.(FWM 00001)    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()) Report Name ===============================================================================================================

 

Above mentioned error popup,when we run a report from .net portal.

 

Environment:

==========

BOXI3.1 SP5

Crystal reports 2008

VS2010

.Net 3.0

Method of adding a graphic to a Report

$
0
0

After evaluating the charting that comes within Crystal Developer 14.0. and searching on the net It appears that there is not way to set the y Axis (or x axis for that matter) scale at run time.  I have a report with date/value pairs that I want in a x-y line chart.  There are several "groups" of these pairs that are different charts (the chart is in the Group footer). Each "Group of pairs" has a min and max value that is known only at run time.

 

It appears my choice is to create the chart outside of Crystal (in my C# application), convert the chart to an Image, and somehow have the image appear in the report.  I am using Visual Studio 2010 and an ADO.Net (XML) data set. (I have purchased the Bus Obj Crystal Developer I am not using the free one that you download for visual studio)

 

Is there a data type I can use to imbed the graphic in the Data Set?  (I.E. Byte[] or Object)?

 

Any other thoughts would be appreciated

 

Neal

Format options for CSV export

$
0
0

Hello

 

I am upgrading my application from crystal 8.5 to latest crystal 13 API. While doing export in CSV format, earlier crystal 8.5 provided two options as shown below in dialog box

 

CR85.png

 

While new crystal doesn't provide these options anymore. I tried a lot without any luck to figure out how to support these options. I went through a lot of posts but can't find anything. It will be great if anyone here can show the path.

 

I am using below mentioned tools for this:

Visual Studio 2012

Crystal designer 2013

Crystal RAS API: 32 bit Support Pack 10 (v. 13.0.10.1385)

VB.Net

 

Thanks for looking into the issue.

Saurabh

Reproducible error when loading many reports (Load report failed -> Not enough memory for operation)

$
0
0

Environment:

Win 7 SP 1

Visual Studio Pro 2012 Update 4

Crystal Reports for Visual Studios Service Pack 10 (13.0.10.1385)

Report created in Crystal Reports XI Release 2 (11.5.8.826)

Targeting x86 .NET 4.0

 

Scenario:

We have a program that runs and creates a large number of reports before the process is ended. When running after many hours we'd get a Load report failed/Not enough memory of operation exception. I kept removing code and found i could reproduce just using the report.Load call. I simplified the report to a completely blank report to make sure it was nothing specific to a report I was loading. (Opened Crystal Reports XI Release 2, Save As, "Blank.rpt".). I then created, loaded, and disposed of this report in a loop. I was able to cause the same exception after 32,764 iterations on my machine. I also tried using .NET 3.5 same result. I added a counter to our main program and it also went through 32,764 report loads before the same exception was thrown. Main program uses 15 or so different reports with a variable number of subreports in each.

 

Sample Code to illustrate the problem:

I did this as a WinForms project since our main program is using winforms.

References added:

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.ReportSource

CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

 

 

using System;

using System.Windows.Forms;

using CrystalDecisions.CrystalReports.Engine;

 

 

namespace CrystalTest

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

            int i = 0;

            try

            {

                while (true)

                {

                    i++;

                    ReportDocument report = new ReportDocument();

                    report.Load("Blank.rpt");

                    report.Close();

                    report.Dispose();

                }

            }

            catch(Exception ex)

            {

                MessageBox.Show(i.ToString() + ex.Message);

            }

        }

    }

}

 

Exception:

 

CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041004):

Not enough memory for operation.

   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

   --- End of inner exception stack trace ---

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

   at CrystalTest.Form1..ctor() in c:\Test Projects\CrystalTest\CrystalTest\Form1.cs:line 27

Field margins shifting to the left on Crystal Report

$
0
0

Hi,

 

There is Crystal Report print issue on our web application.

 

I am working on production web server upgrade (from Windows Server 2003 to Windows 2008 R2). Our store order station (web application) calls web service to print pick slip, which contains customer and item information. We use Crystal Report as template for the pick slip.

 

After we brought the server into service at 7:00am EST, pick slip print worked fine until more stores (located in the western Canada) opened at 12:00pm EST. Almost all the data on pick slip shifted to the left about 10mm (depending the field width defined in Crystal Report), and those data exceeded left border of the fields did not get printed on the pick slip (please refer to the two attachments).

 

Once we restarted IIS, pick slip print worked again. As this is production box, we cannot leave it running and manually reset IIS frequently.  It sounds like there is load issue with Crystal Report runtime. Is Crystal runtime environment “Reset” when we restart IIS? 

 

1) Version of CR: CRRuntime_64bit_13_0_10

2) Version of VS: VS2010

3) OS: Windows Server 2008 R2

4) Version of IIS: IIS 7.5

 

Can you please help me out on this issue?

 

Thank you.

Tutorial on creating a CR webservice that serves up many reports?


Memory full & request could not be submitted to process for Reports

$
0
0


Hi.

 

I am encountering crystal report error. I have a database that store around 19k records some with and without pictures.

I am a newbie and I customized my own report. When trying to generate report for the whole database, the pictures does not appear. However, when I try to generate report with lesser records, the pictures do appear. It seems to be the picture size that may affect this. But I cannot imagine myself going to each and every record to resize the image file. May I know if it is possible to resize all the image file size at one go using SQL?

 

FYI, I'm using Crystal Report XI R2 ver 11.5.12.1838 and 64 bit windows 7.

Also, I opened the report through another software which is in 32 bit mode.

 

On top of that, I have difficulty saving the report or printing the report to PDF. Whenever I print to PDF, it print several pages and then it keeps saying memory full or this request could not be submitted for processing. As it is urgent for me to come up with this report, what I've been doing is to print the report in many PDF files and then combine all into one PDF which is super time-consuming. Please help. Thank You.

 

PY

Win32Exception by changing parameters

$
0
0

Hello,

 

I have a problem with the newest Version of Crystal Reports for .NET (13.0.10.1385).

 

If I change some parameters I get this Win32Exception:

 

System.ComponentModel.Win32Exception (0x80004005): Fehler beim Erstellen des Fensterhandles. (Error creating window handle)

   bei System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)

   bei System.Windows.Forms.Control.CreateHandle()

   bei System.Windows.Forms.TextBoxBase.CreateHandle()

   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   bei System.Windows.Forms.Control.CreateControl()

   bei System.Windows.Forms.Control.ControlCollection.Add(Control value)

   bei CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)

   bei CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()

   bei CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowAdvancedDialog(ParameterUnit pu)

   bei CrystalDecisions.Windows.Forms.InteractiveParameterPanel.pu_ShowAdvancedDialog(Object sender, EventArgs e)

   bei CrystalDecisions.Windows.Forms.ParameterUnit.OnShowAvancedDialog(EventArgs e)

   bei CrystalDecisions.Windows.Forms.ParameterUnit.editControl_ShowAdvancedDialog(Object sender, EventArgs e)

   bei CrystalDecisions.Windows.Forms.ParameterValueEditControl.CreateParameterValueEditControl()

   bei CrystalDecisions.Windows.Forms.ParameterValueEditControl.editControl_MouseDown(Object sender, MouseEventArgs e)

   bei System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)

   bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

   bei System.Windows.Forms.Control.WndProc(Message& m)

   bei System.Windows.Forms.TextBoxBase.WndProc(Message& m)

   bei System.Windows.Forms.TextBox.WndProc(Message& m)

   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Can anyone help me, or will it be fixed in the near future?

 

Greets Rene

Set datasource for subreport

$
0
0

Hi, all,

 

I tried to add a subreport to a report document using inProc RAS, like so:

 

private CrystalDecisions.CrystalReports.Engine.ReportDocument document;

SubreportClientDocument subreportClientDocument;

reportClientDocument = document.ReportClientDocument;

subreportClientDocument = reportClientDocument.SubreportController.ImportSubreport("someName", pathToRPTFile, sectionWhereToAdd);


Later I wanted to set a datasource to the added subreport, but when looping through the main document, I get no subreports found.

.....

CrystalDecisions.CrystalReports.Engine.ReportDocument subReport = document.Subreports[index];

 

document.Subreports has length of 0, although, I could sware it had worked

 

Strange thing is, later in the same code I do a loop,

  foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in document.ReportDefinition.ReportObjects)

            {

                if (reportObject.Kind == ReportObjectKind.SubreportObject)

                {

            and it finds subreportObjects.

 

What am I doing wrong? And, how can I reach a given subreport, to set a datasource to it?

 

Thank you, all, in advance!

Runtime on windows 2008 SP2

$
0
0

I have a peculiar situation, i have some applications writen in .NET 1.1 that uses Crystal V10, i'm moving them from windows 2003 servers do windows 2008sp2 servers because they are the latest version that support .NET 1.1, so...

 

The server is Windows 2008 SP2 64bits

I have intalled 64 and 32 bit versions of latest runtime: CRRuntime_32bit_13_0_9 and CRRuntime_64bit_13_0_9 hoping there is retrocompatibility.

Those applications ware written in VS2003 and used Crystal Reports V10

 

Whenever i try to open a report i get this exception:

 

[COMException (0x80040154): ?] CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +11 [TypeInitializationException: The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" threw an exception.] CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0 CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() +5 Banese.SCCWeb.Negocio.Relatorios.relLogAlteracoesConstratos..ctor() in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\Relatorios\relLogAlteracoesConstratos.cs:21 Banese.SCCWeb.Negocio.GerRelatorios.GerarRelatorioLogAlteracaoContrato(DataTable dttLogs, String filtro) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\GerRelatorios.cs:536 Banese.SCCWeb.Negocio.GerLogAlteracaoContrato.GerarRelatorioLogAlteracaoContrato(SqlTransaction trans, DateTime dtInicio, DateTime dtFim, Int32 cdAgencia, Int32 nrContrato, Boolean somenteAlteracaoConta) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\GerLogAlteracaoContrato.cs:115 Banese.SCCWeb.Transacao.TOLogAlteracaoContrato.GerarRelatorioLogAlteracaoContrato(DateTime dtInicio, DateTime dtFim, Int32 cdAgencia, Int32 nrContrato, Boolean somenteAlteracaoConta) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Transacao\TOLogAlteracaoContrato.cs:14 Banese.SCCWeb.Interface.FrmPesqLogAlteracaoContrato.btnPesquisar_Click(Object sender, EventArgs e) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Interface\LogAlteracaoContrato\FrmPesqLogAlteracaoContrato.aspx.cs:104 Banese.Corporativo.WebCustomControls.SmartButton.OnClick(Object sender, EventArgs args) +19 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138 System.Web.UI.Page.ProcessRequestMain() +1292

 

Is there retrocompatibility in this pakages i have intalled?

Does anyone knows what can i do to solve it?

 

I'm trying to create pre-configured application server templates for other similar applications.

Print Problem

$
0
0

Hi,  I used CrystalReportViewer in Visual Studio 2013 to show report on Web app.  The report works fine, but when I click "Print" button to print this report, it shows the dialog "Print to PDF" to Export.  How to get "Print" dialog. 

Thank you very much for any idea and help.

Regards,

Qin

rpt exporting to doc format, then copy to a new doc error

$
0
0

Hi,sap experts

 

I'm exporting a doc file in my winform application.

 

it shows ok.

QQ截图20140923170238.png

 

 

Then I copy the content to a new doc file, it is not correct.

QQ截图20140923170354.png

 

And is there anything wrong?

Thanks.

Exception in CrystalDecisions.ReportSource.ReportSourceFactory

$
0
0

I'm deploying a Windows Forms Application and when the user try to open any report, the following exception is thrown:

 

O inicializador de tipo de `CrystalDecisions.ReportSource.ReportSourceFactory` acionou uma exceção.

STACK TRACE:    em CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()

   em CCI_WIN.frmVisualizaRelatorio.InitializeComponent()

   em CCI_WIN.frmVisualizaRelatorio..ctor()

   em CCI_WIN.UCRelatorios.UCConteudoPlanejado.btnVisualizar_Click(Object sender, EventArgs e)

   em System.Windows.Forms.Control.OnClick(EventArgs e)

   em System.Windows.Forms.Button.OnClick(EventArgs e)

   em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   em System.Windows.Forms.Control.WndProc(Message& m)

   em System.Windows.Forms.ButtonBase.WndProc(Message& m)

   em System.Windows.Forms.Button.WndProc(Message& m)

   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



The application is running on .NET Framework 3.5 and the prerequisite is the SAP Crystal Reports Runtime Engine for .NET Framework. The deploy is make using Clickonce.

Any help or suggestion on that?


Tks!


Fields no show in page header RAS Crystal Report

$
0
0

Hello to all experts,

 

i have a big problem, i create a fully dynamic crystal report using visual studio 2010 and Report Application Server Crystal Report. i Programmitically generate field in detail section. but page header field not show. i don't know why. please tell my how i programmitically create fields in page header section. i use this code for detail section.

 

 

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

ISCDReportClientDocument clientdocument = cryRpt.ReportClientDocument;

 

cryRpt.Load(@"C:\Users\Rizwan.qamar\documents\visual studio 2010\Projects\dynamic report\dynamic report\CrystalReport2.rpt");

Fields fields = clientdocument.DatabaseController.Database.Tables[0].DataFields;

 

i = fields.Find(dt.Columns[i].ToString(), CrFieldDisplayNameTypeEnum.crFieldDisplayNameDescription, CeLocale.ceLocaleUserDefault);

Field flovid = (Field)fields[i];

 

clientdocument.DataDefController.ResultFieldController.Add(-1, flovid);

 

cryRpt.SetDataSource(dt);

crystalReportViewer1.ReportSource = cryRpt;




i am waiting for your early replay,

Thanks

Drag and Drop functionality in Crystal Report

$
0
0

Hi, to all experts,

i using Visual Studio 2010 and Crystal Report with Report App Sever (RAS). i want to create fully dynamic crystal report and add  drag and drop functionality in crystal report. please give me suggestion is it possible using RAS Crystal Report? if yes so please tell my how can i achive this task. Thanks

Export functionality not working for CSV format

$
0
0

Hi

 

While trying to export file in CSV format, it is throwing "Logon failed exception" butI am able to export other formats like Word/Excel/RPT/PDF etc through code. I tried to sneak into the issue and the details.

 

When I exported the report with saved data in rpt fromat through code, opened it in crystal 2013 designer and tried export from there, I observed a weird behavior. When I am trying to export in PDF/Excel/Word/XML/RPT format things works fine but when I try to export in Text/CSV format, it asks to create field definition files.

 

I am wondering why such behavior is coming for certain few formats only for this report. This behavior us observed for this report only while other reports are working fine. I will really appreciate if someone can throw light with his/her expertise.

 

I have attached the required files for reference.

 

Version details:

RAS API Support Pack 10 (v. 13.0.10.1385)

Visual Studio 2010 SP1

Crystal designer 2013

 

(Just rename the attachment to Files.zip from Files.txt)

 

Thanks

Saurabh

How to make CR legend with color and different shapes using c#?

$
0
0

Hi, sap experts

I'm using push mode to design a rpt file, while the chart should be color.

But cr set the series shapes same as default, but with different color.

Now I want different color and differnet series shapes, Just as the below pic shows.

Pay attention to that push mode, there may be many(10 or 20 or more), so the legend shapes should be also differnet.

How to do it, thanks!

 

无标题.png

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

$
0
0

I'm developing an ASP.NET 4.0 Web Forms application in VS2013 using Windows 8.1 / 64-bit.  Crystal Reports runs fine in Debug mode from Visual Studio but when I've tried deploying it on different servers, I'm getting a variety of problems:

  1. Sometimes the "type initializer" error shown in the title appears.
  2. Sometimes just a dark gray background appears where the report normally would.

I've read through everything I can find on the Internet and tried several things but cannot get this problem resolved.

 

Assuming that the app will only ever be deployed to a 64-bit version of Windows, what are the correct steps I should take, both with Visual Studio and with the Merge Modules, to get things running properly?

 

Hoping someone can help!

 

Robert Werner
Vancouver, BC

Viewing all 2556 articles
Browse latest View live


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