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

Problem with CR FOR VS 2010 and InteropFormsTools

$
0
0

Hi,

 

I have one old application in VB6. I write a new part for this application with VB2010 and CR FOR VS 2010. This new part of application work with old application with Microsoft InteropFormsTools. Old application call forms (dll) in new application and new application have reports make with CR FOR VS 2010.

And here is a problem. Evry time when I call a report report crash and application crash too. Crash happened when this code execute

Report.SetDataSource(dt)

If I run report from Visual studio environment evrything is OK. And when I run a report from VS2010 application evryrhing is OK.

I have checked Make assembly COM visible and Register for COM interop in module in wich is this report.

Can anybody help me?

 

Regards

Miran

 


Error: The browse field type is not compatible with the parameter field type

$
0
0

Upgrading from CR11.5 to CR13.

 

I set parameters using CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue method. Works fine for Stored Procedure Parameters. Doesn't seem to work for ReportParameter types. At least that what I've determined in my investigation so far.

 

When I execute the SetParameterValue, I receive error: CrystalDecisions.CrystalReports.Engine.ParameterFieldException: {"The browse field type is not compatible with the parameter field type."}.

 

Here is a parameter that works:

 

{CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition}

    Attributes: Count = 1

    CurrentValues: Count = 1

    DefaultValueDisplayType: DescriptionAndValue {1}

    DefaultValues: Count = 0

    DefaultValueSortMethod: BasedOnValue {0}

    DefaultValueSortOrder: NoSort {0}

    DiscreteOrRangeKind: DiscreteValue {0}

    EditMask: Nothing

    EnableAllowEditingDefaultValue: True

    EnableAllowMultipleValue: False

    EnableNullValue: True

    EngineObjectFactory: {CrystalDecisions.CrystalReports.Engine.EngineObjectFactory}

    FormulaName: "{?P_DATE_FROM}"

    HasCurrentValue: True

    IsOptionalPrompt: False

    Kind: ParameterField {6}

    MaximumValue: Nothing

    MinimumValue: Nothing

    Name: "P_DATE_FROM"

    NumberOfBytes: 8

    ParameterFieldName: "P_DATE_FROM"

    ParameterFieldUsage: Unknown {3}

    ParameterFieldUsage2: InUse Or DataFetching {33}

    ParameterType: StoreProcedureParameter {1}

    ParameterValueKind: DateTimeParameter {5}

    PromptText: Nothing

    RasDocument: {CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper}

    RasField: {System.__ComObject}

    RasObject: {System.__ComObject}

    ReportName: ""

    UseCount: 0

    ValueType: DateTimeField {15}

 

 

Here is the one that doesn't:

{CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition}

    Attributes: Count = 1

    CurrentValues: Count = 0

    DefaultValueDisplayType: DescriptionAndValue {1}

    DefaultValues: Count = 0

    DefaultValueSortMethod: BasedOnValue {0}

    DefaultValueSortOrder: NoSort {0}

    DiscreteOrRangeKind: DiscreteValue {0}

    EditMask: Nothing

    EnableAllowEditingDefaultValue: True

    EnableAllowMultipleValue: False

    EnableNullValue: False

    EngineObjectFactory: {CrystalDecisions.CrystalReports.Engine.EngineObjectFactory}

    FormulaName: "{?p_date_from}"

    HasCurrentValue: False

    IsOptionalPrompt: False

    Kind: ParameterField {6}

    MaximumValue: Nothing

    MinimumValue: Nothing

    Name: "p_date_from"

    NumberOfBytes: 4

    ParameterFieldName: "p_date_from"

    ParameterFieldUsage: Unknown {3}

    ParameterFieldUsage2: InUse Or DataFetching {33}

    ParameterType: ReportParameter {0}

    ParameterValueKind: DateParameter {3}

    PromptText: "STARTING WORK DATE"

    RasDocument: {CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper}

    RasField: {System.__ComObject}

    RasObject: {System.__ComObject}

    ReportName: ""

    UseCount: 0

    ValueType: DateField {9}

 

After I saw this is when I figured that the problem was b/c this paramter is of ParameterType of ReportParameter. I verified that case is not a problem. I also tried oReport.ReportClientDocument.DataDefController.ParameterFieldController.SetCurrentValue, but that did not work. I am using InProc RAS.

 

Any ideas? Thanks.

Connecting to SQL Server - is that so difficult???

$
0
0

I have an ASP.Net web form.

I have Crystal Reports for .NET Framework 4.0.

I have a test database with one table that has one column.  I'm using the 'sa' login.

The page has the code below.  There is a basic CrystalReportViewer control on the page.

When I preview the report in Visual Studio it shows real data correctly.

When I view the page I see this:

Failed to open the connection. Details: [Database Vendor Code: 17 ] Failed to open the connection. CrystalReport1 {6CDF6401-23A1-45C0-AC81-7EEAC508ABA4}.rpt Details: [Database Vendor Code: 17 ]

 

Apparently "Database vendor code 17" means "server does not exist or access denied" yet if I use the same settings and connect directly via ADO.Net code it works first time, every time.

 

It's been two days now: I've never wasted so much time getting a product to connect to a MSSQL DB.

 

protectedvoid Page_Load(object sender, EventArgs e)

        {

             ReportDocument cryRpt = newReportDocument();

             TableLogOnInfo crtableLogoninfo = newTableLogOnInfo();

             ConnectionInfo crConnectionInfo = newConnectionInfo();

             Tables CrTables;

 

             cryRpt.Load(Server.MapPath("CrystalReport1.rpt"));

             crConnectionInfo.ServerName = "localhost";

             crConnectionInfo.IntegratedSecurity = false;

            crConnectionInfo.DatabaseName = "Test1";

            crConnectionInfo.UserID = "sa";

            crConnectionInfo.Password = "xxxxxxxx";

 

            CrTables = cryRpt.Database.Tables;

 

             foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)

            {

                crtableLogoninfo = CrTable.LogOnInfo;

                crtableLogoninfo.ConnectionInfo = crConnectionInfo;

                CrTable.ApplyLogOnInfo(crtableLogoninfo);

            }

 

            CrystalReportViewer1.ReportSource = cryRpt;

 

            CrystalReportViewer1.RefreshReport();

  

        }

 

David

Subreports problem during runtime.

$
0
0

Hi,

 

I have a report with multiple pages, when I try to preview it during design time, all subreports shows without problem.  But during runtime, the subreport only shows for the first page.  Even when I click the empty subreport area, it opens an empty subreport too.

 

Am I missing something?  Any help would be very much appreciated.

 

Thanks

Louis

CrystalReportViewer error "No exception available to rethrow"

$
0
0

Dear,

 

We have upgraded a C# VS2008 project to VS 2010 SP1 and installed the latest Crystal Reports for Visual Studio 2010 SP1.

We use the built-in component 'Crystal Reports Viewer' to show the report in the form.  However, we sometimes have

an error showing up : "No exception available to rethrow".  The preloader from Crystal Reports is shown when this messagebox occures.

 

This error shows up sometimes at several reports.  Sometimes the reports are shown correctly and after performing the same operation, suddenly the error is shown and the report is not shown.

 

Is this a known bug?  How can we solve this?  Anyone any ideas?

 

Best regards,

Jens

Database connectivity

$
0
0

Hi,

I have an application written in Visual Studio 2010 which has 30 crystal reports all connecting to a sql database. In the designer all work correctly but at run time 5 of them fail to connect to the database? Can anyone point me in the right direction please?

Thanks in advance

Ray

SAP Business One 90 - 64 bit

$
0
0

Hello

 

I have an application which compiles in 32 bit and it is working with Crystal Reports 2008. The application works well with SBO 8.8, 8.81 and SAP 8.82.

Next I have upgraded CR with Crystal Report 2011 and upgraded SBO to 90. For the 64 bit OS, I have installed the 64 bit SBO version. So I have to recompile my code with 64 bit target in order to work with SBO. SAP Connections works well. But Crystal Reports not loading. Showing these messages.

1. "An error has occurred while attempting to load the Crystal Reports runtime."

2. After message 1, getting this "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception"

 

So i am in here. All components and main project built in 64 bit inorder to work with SBO 90 - 64 bit. SAP Connection works fine.

Unable to load crystal reports in my project.

 

Please let me know your ideas how I can achieve this.

 

Thanks in Advance

Anoop

How to call Crystal Reports with B1?

$
0
0

I need call with SAP Business One a report created in SAP Crystal Reports.
How can I do this?

 

 

Note: with SAP SDK API.


How to call Crystal Reports with B1?

$
0
0

I need call with SAP Business One a report created in SAP Crystal Reports.
How can I do this?

 

 

Note: with SAP SDK API.

CrystalReportViewer Date pop-up not working on first load

$
0
0

I've tried 4 XP, 3 Win7 so far..

all work except one of the XP machines..

in its IE8, when prompted for a date, when I click the icon to pop-up the date chooser. I get error:

 

Object doesn't support his property or method : allInOne.js

 

yet, if I click F5 to refresh the page, the date pop-up then works..

 

(i've watched it with fiddler and the allInOne.js file downloads correctly the first time (code 200))

 

I've cleared the browser cache, I've made sure it was not in compatibility mode, I've tried compatibilty mode..

Ive tried putting my code in both the Page_load and Page_init sections.

 

visual studio 2012

.Net 4.0

crystal reports for visual studio 13.0.5 (32bit)

 

 String reportFile = Request.QueryString.Get("reportpath");         CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf;            CrystalReportViewer1.AutoDataBind = true;            CrystalReportViewer1.BestFitPage = true;            CrystalReportViewer1.DisplayPage = true;            CrystalReportViewer1.DisplayStatusbar = true;            CrystalReportViewer1.DisplayToolbar = true;            CrystalReportViewer1.HasCrystalLogo = false;            CrystalReportViewer1.HasExportButton = true;            CrystalReportViewer1.HasGotoPageButton = true;            CrystalReportViewer1.HasPageNavigationButtons = true;            CrystalReportViewer1.HasPrintButton = true;            CrystalReportViewer1.HasRefreshButton = true;            CrystalReportViewer1.HasSearchButton = true;            CrystalReportViewer1.HasToggleGroupTreeButton = false;            CrystalReportViewer1.HasToggleParameterPanelButton = false;            CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;            CrystalReportViewer1.Visible = true;            CrystalReportViewer1.EnableParameterPrompt = true;            CrystalReportViewer1.AllowedExportFormats = 1027;            CrystalReportViewer1.ReportSource = Server.MapPath(reportFile);            string userID = "crystal";            string password = "reports";            foreach (TableLogOnInfo boTableLogonInfo in CrystalReportViewer1.LogOnInfo)            {                ConnectionInfo boConnectionInfo = boTableLogonInfo.ConnectionInfo;                boConnectionInfo.UserID = userID;                boConnectionInfo.Password = password;            }            // pass parameters, prompt for needed ones            for (int i = 0; i < CrystalReportViewer1.ParameterFieldInfo.Count; i++)            {                if (string.IsNullOrEmpty(Request.QueryString.Get("P" + (i + 1))))                { }                else                {                    ParameterField paramField = CrystalReportViewer1.ParameterFieldInfo[i];                    ParameterDiscreteValue ParamDiscreteValue = new ParameterDiscreteValue();                    //GET PARAMETER TYPE                    switch (paramField.ParameterValueType.ToString())                    {                        case "StringParameter":                            ParamDiscreteValue.Value = Convert.ToString(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "NumberParameter":                            ParamDiscreteValue.Value = Convert.ToInt32(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "DateParameter":                            ParamDiscreteValue.Value = Convert.ToDateTime(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "DateTimeParameter":                             ParamDiscreteValue.Value = Convert.ToDateTime(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "BooleanParameter":                            ParamDiscreteValue.Value = Convert.ToBoolean(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "TimeParameter":                             ParamDiscreteValue.Value = Convert.ToDateTime(Request.QueryString.Get("P" + (i + 1)));                            break;                        case "CurrencyParameter":                             ParamDiscreteValue.Value = Convert.ToDecimal(Request.QueryString.Get("P" + (i + 1)));                            break;                    }                    paramField.CurrentValues.Add(ParamDiscreteValue);                }                           }

Crystal report CrystalDecisions.Shared conflict with 13.0.2000.0 and 11.5.3700.0 version

$
0
0

Hi,

  I have visual studio 2010 and installed crystal report 13 on my pc in order to run the crystal report on visual studio.  however, I already have crystal report 11 on my pc, so, I uninstalled it.  but when I load the crystal report web page, it display a message is crystaldecisions.shared is conflict with 13.0.2000.0 and 11.5.3700.0,

  they are located in C:\Windows\assembly  path, I tried to uninstall the CrystalDecisions.Shared 11.5.3700.0, but display "access is denied", so could you help me how to solve this problem please ?

 

 

Thanks

Kelvin

Create connection from Crystal Reports to Sql Azure

$
0
0

I have crystal reports developed in CR XI R2 and are been used within ASP.NET application.

Recently we have published the application to windows azure and we were getting the following error.

 

Not implemented. Error in File Report{82929F11-8639-4364-A315-C9E48E8C1C96}.rpt: Operation not yet implemented.

 

So, I tried connecting directly from Crystal Reports to sql azure but received the following error

 

Not implemented.
Details: ADO Error Code: 0x800a0cb3
Source: ADODB.Connection
Description: Object or provider is not capable of performing requested operation.

 

I've tried Native client 10 and 11 but no success.

How would I solve this issue

 

I've also installed CR2011 trial version and I'm still receving this error.

sorting with hidden groups

$
0
0

Hi there.

 

CR2008 (12.2.0.290), VS2010 (10.0.40219.1 SP1Rel)

I have four groups in my report.

Under certain circumstances I hide group #3 by parameter.

But still the rows in group #4 is continued to be sorted following the hidden rows in group #3.

What can I do to get my group entries level 4 to be sorted from their group names only without regarding level #3?

 

Regards

Hans

Word 2007 Export issue with Crystal reports-VS2010 version

$
0
0

hi ,

 

I need some inputs on the issue, i' m facing with Exporting of Crystal reports using Visual Studio 2010 version.

I'm using crystal reports version-12 with VS2010 . I'm having a report generated with a few images embedded in it, and while exporting this report using Microsoft Word 2007, the exported word doc does not show any of the images.

But while exporting the same report.with Microsoft Word 2010, the images are properly shown in the exported word doc.

 

Please can you provide any inputs or solution for this issue i'm facing.

 

thanking you,

Neena

Deploying crystal reports 2010 with crystal MSI runtime instead of merge module

$
0
0

I read this article http://wiki.sdn.sap.com/wiki/display/BOBJ/Deploying+Crystal+Reports+for+Visual+Studio+2010+Runtime and in it was a coming soon about "Using Crystal Reports for Visual Studio 2010 MSI file  to create a Setup project" and was wondering where that article might be written. I am trying to decide if it makes sense to use the MSI runtimes or merge modules. We tried to deploy the MSI 32 bit crystal runtimes here http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_5.zip using active directory software deployment but they would not install.


Error 5 Load Report Failed (Cr for VS, winform, SP5)

$
0
0

Before anyone suggests the typical list of suspects, I've read the document created by Ludek on Troubleshooting the “Load Report Failed” Error.

 

The problem I'm seeing can be replicated consistently with a specific report (saved with data).  The report opens fine on the same machine and under the same user in Crystal 2011 as well as in older winform viewers apps using the RDC object model.  But it fails (Error 5: Load Report Failed) to open in a .NET winform viewer application (Cr for VS, VS 2010, winform, SP5 as well as SP4)..

 

I believe this rules out the usual suspects such as temp folder permissions.

 

This report has 2 subreports. One of them is causing the issue.  When that (and only that) subreport is removed, the problem goes away. 

Question: what would be the list of possible suspects in such a specific scenario?

 

Note: I would be happy to provide the rpt with saved data if someone wants to verify I'm not dreaming...

.Net Crystal Report Viewer runs but does not display report.

$
0
0

The crystal report viewer is displayed on the aspx page with all the controls I would expect it to have.  However where the report should be is just a gray area.  The control does not re-size to accommodate the report as it should have and when resizing explicitly only a large gray area is visible where the report should be.

 

I've recreated to error using bare bones example code, with a simple "hello world" type report:

 

string serverName = "servername";

SessionMgr sessionMgr = new SessionMgr();

EnterpriseSession enterpriseSession = sessionMgr.Logon("username", "password", serverName, "secEnterprise");

EnterpriseService enterpriseService = enterpriseSession.GetService("InfoStore");

InfoStore infoStore = new InfoStore(enterpriseService);

string queryString = "Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "

               + "Where SI_PROGID='CrystalEnterprise.Report' "

               + "And SI_ID = 'reportid'";

InfoObjects infoObjects = infoStore.Query(queryString);

InfoObject infoObject = infoObjects[1];

Report report = (Report)infoObject;

CrystalReportViewer1.EnterpriseLogon = enterpriseSession;

CrystalReportViewer1.ReportSource = report;

 

I've traced the code and the report is valid and the viewer is receiving it, this if further confirmed by the fact that I can do an export of the report into pdf format from the viewer and see my report, as well as print it.

 

I'm using the crystal reports view from the latest SP5 install.  CrystalDecision.Web assembly version is 14.0.3500.0.

Crystal report is giving below error:Logon failed.

$
0
0

Crystal report is giving below error:

Logon failed.
Details:
ADO Error Code: 0x80004005
Source: Microsoft OLE DB Provider for Oracle
Description: Oracle client and networking components were not found.
These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation

 

Platform used:
Window 7 Enterprise 64 bit
Oracle client 64 bit 11g Release 2 (11.2.0.2)
Visual studio 2008
Crystal report basic runtime for VS 2008(x64) version 10.5

 

Please help to resolve this problem, form 1 week i am trying to solve this issue, tried different options from other blogs but couldnt able to solve the problem. 

Crystal report Migration

$
0
0

Current I am using crystal report 10.2.3600.0 with visual studio 2005 (window application) ,oracle 9i and WinXP.

 

Now I want to migrate to latest crystal report version with visual studio 2010(framework 4.0),oracle 11g and Window 7.

 

I am having 2 queries :

1) Which latest crystal report version is compatible with visual studio 2010(framework 4.0),oracle 11g and Window 7 ?

2) which steps will I need to follow for crystal report migration ?

Crystal Report for VS 2012. It is not appear as a option in Reporting.

Viewing all 3636 articles
Browse latest View live


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