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

Any known issues with CR (v. 13.0.9.1312) and MS APP-V?

$
0
0

Hi!

 

I am helping a client troubleshoot a problem with MS App-V 5. He has created an App-V pack of our app and it fails printing. The actual error is:

 

12.06.2014 11:58:48 OpenReportFile(C:\ProgramData\App-V\DA607900-9063-4A5C-A935-00D13FD31192\F298F1C1-3210-414A-BAEA-6F1BABA6245F\Root\Reports\Kontroll.rpt), alternativ fil C:\ProgramData\App-V\DA607900-9063-4A5C-A935-00D13FD31192\F298F1C1-3210-414A-BAEA-6F1BABA6245F\Root\Reports\_Kontroll.rpt

12.06.2014 11:58:49 gcnew m_Report: Retrieving the COM class factory for component with CLSID {F734A321-8381-4FFD-A614-139E8906DC83} failed due to the following error: 8007007a The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A).

 

The GUID is for clientdoc.dll and I am wondering about this "too much data". Could it be as simple as that the very long paths created by App-V results in an overflow somewhere?

 

Anyone else seen this? Ay tips for troubleshooting?

 

The error happens when the ReportDocument is instantiated (CrystalDecisions::CrystalReports::Engine::ReportDocument()) but before the actual report file is loaded. I think it is when clientdoc.dll calls crystalReports.Engine.Dll


Subreport error on Client Machine

$
0
0

Hi

Environment: I am using VS2012 on Windows 8.1 64 bit, sql server 2012 and Crystal Reports for Visual Studio .Net, 13 with sp9

Issue: I have some simple main reports, and some with SUBREPORTS. I have taken care of sub report logon credentials too.
This works fine on my development machine. When I hosted on the client machine, only the reports with SUBREPORTS are not displaying and error is, Logon parameters. Exact error is: Unable to Connect. Incorrect Logon Parameters

Then I changed the database server to the client server (REMOTE ONE) with IP address as my Server name, and tested the development project, it worked fine. So, server Logon issue is not there.

I have also linked the report link parameters.

What might be the problem?

Anyone can help me please?

 

Regards

HELP NEWBIE

$
0
0

I am just learning CR for .net. I am using VS2010 Pro. CR ver 13. What am I doing wrong. I get the following errors 102 errors in all errors for every report I CREATE. the report runs fine in design mode. I get them when I Build the solution or when compiling.



C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(14) : warning BC40056: Namespace or type specified in the Imports 'CrystalDecisions.CrystalReports.Engine' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(15) : warning BC40056: Namespace or type specified in the Imports 'CrystalDecisions.ReportSource' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(16) : warning BC40056: Namespace or type specified in the Imports 'CrystalDecisions.Shared' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(28) : error BC30284: property 'ResourceName' cannot be declared 'Overrides' because it does not override a property in a base class.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(37) : error BC30284: property 'NewGenerator' cannot be declared 'Overrides' because it does not override a property in a base class.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(46) : error BC30284: property 'FullResourceName' cannot be declared 'Overrides' because it does not override a property in a base class.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(57) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(59) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(65) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(67) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(73) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(75) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(81) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(83) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(89) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(91) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(97) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(99) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(105) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.Section' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(107) : error BC30456: 'ReportDefinition' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(112) : error BC30002: Type 'CrystalDecisions.Shared.ExportOptions' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(115) : error BC30002: Type 'ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(123) : error BC30002: Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(134) : error BC30002: Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(145) : error BC30002: Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(147) : error BC30451: 'CachedReportConstants' is not declared. It may be inaccessible due to its protection level.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(154) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(154) : error BC30002: Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(156) : error BC30456: 'Site' is not a member of 'My_CrystalReports_Project.E41_My_first_report'.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(160) : error BC30002: Type 'RequestContext' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.1 My first report.vb(160) : error BC30002: Type 'CrystalDecisions.ReportSource.ICachedReport' is not defined.

C:\CR For VS Book\CrystalReports_Book\My_CrystalReports_Project\E4.3 Employee contact list.vb(14) : warning BC40056: Namespace or type specified in the Imports 'CrystalDecisions.CrystalReports.Engine' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Crystal Reports hangs indefinitely on refresh after export/print.

$
0
0

I'm using Crystal Reports for VS 13.09 on an IIS 7 server. The application works fine except for in this one scenario. I can print or export fine, and I can refresh fine, but if I print or export and then try to refresh the "Please wait while the document is being processed." box comes up and never goes away. After printing/exporting I can still use the breadcrumb links and forward/back buttons with no problems, it's just refresh that causes issues.

 

Here is the ASPX I'm using:

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewReport.aspx.cs" Inherits="Intranet.ViewReport" %>

 

<%@ Register Assembly="CrystalDecisions.Web, Version=14.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" /> 

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" Width="960px" HasRefreshButton="True" HyperlinkTarget="_blank" />

    </div>

    </form>

</body>

</html>

 

And here is the code:

 

using CrystalDecisions.Enterprise;

using CrystalDecisions.ReportAppServer.ClientDoc;

using IBM.Data.Informix;

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

 

namespace Intranet

{

    public partial class ViewReport : System.Web.UI.Page

    {

        protected Connections sqlObj = new Connections();

        EnterpriseSession myEnterpriseSession;

        ReportClientDocument myReportDocument;

 

 

        protected void Page_Load(object sender, EventArgs e)

        {

            if (IsPostBack)

            {

                CrystalReportViewer1.ReportSource = (ReportClientDocument)Session["myReportDocument"];

            }

            else

            {

                BindingUsingReportAppFactory();

            }

        }

 

        void BindingUsingReportAppFactory()

        {

            try

            {

                Session["ReportPath"] = Request["ReportPath"];

                Session["Logon"] = Request["Logon"];

 

                myReportDocument = LoadReport(Session["ReportPath"].ToString());

                if (Request.UrlReferrer.ToString().Contains("/salesintranet.aspx"))

                {

                    string selectionText;

                    selectionText = myReportDocument.DataDefController.RecordFilterController.GetFormulaText();

 

                    if (selectionText != null)

                    {

                        int asteriskPos = selectionText.IndexOf('*');

                        if (asteriskPos > 0)

                        {

                            selectionText = selectionText.Substring(0, asteriskPos) + Session["Logon"] + selectionText.Substring(asteriskPos, selectionText.Length - asteriskPos);

                            myReportDocument.DataDefController.RecordFilterController.SetFormulaText(selectionText);

                        }

                    }

                }

 

                Session["myReportDocument"] = myReportDocument;

                CrystalReportViewer1.ReportSource = (ReportClientDocument)Session["myReportDocument"];

                LogReport('Y');

            }

            catch (Exception ex)

            {

                LogError(ex);

                LogReport('N');

                Response.Write("<html><body><h3>Request failed.</h3>");

                Response.Write("The document could not be loaded.<br />Please hit back to try again.<br />");

                Response.Write("If you are still unable to load the report, please contact IT.</body></html>");

                Response.End();

            }

        }

 

 

        ReportClientDocument LoadReport(string reportPath)

        {

            SessionMgr mySessionMgr = new SessionMgr();

            myEnterpriseSession = mySessionMgr.Logon("XXXX", "XXXX", "XXXX", "XXXX");

            EnterpriseService myEnterpriseService = myEnterpriseSession.GetService("InfoStore");

            InfoStore myInfoStore = new InfoStore(myEnterpriseService);

            myEnterpriseService = myEnterpriseSession.GetService("RASReportFactory");

            Object rrfObject = myEnterpriseService.Interface;

            ReportAppFactory myReportAppFactory = (ReportAppFactory)rrfObject;

 

            string query = "Select SI_ID from CI_INFOOBJECTS WHERE SI_NAME LIKE '" + reportPath + "'";

            InfoObjects myInfoObjects = myInfoStore.Query(query);

            InfoObject myInfoObject = myInfoObjects[1];

 

            return myReportAppFactory.OpenDocument(myInfoObject.ID, 0);

        }

 

Any suggestions on what might be the problem here?

Access crystal reports from asp.net

$
0
0

Hi, I am trying to access crystal reports from asp.net application. There are various reports having multiple parameters. The stored procs are written in the reports. We just pass the paramters. I am getting pop up to enter parameter values when I don't pass the parameter values. Is there any way I can just pass the parameter values to crystal reports. I am using version 13.

crystal reporter is too slow, need to improve the performance

$
0
0

I work with asp.net, C# on Visual studio.net 2013 and crystal report. I met some issue, could someone give me advice on resolving the issue?

1. crystal report viewer:

in the page_init(), I had the code:

if(!IsPostBack())

{

     this.objRpt = new ReportDocument();

     CrystalReportViewer1.ReportSource= this.objRpt;

     Session["ReportDocument"]=this.objRpt;

 

}

else

{

    this.objRpt = (ReportDocument)Session["ReportDocument"];

    CrystalReportViewer1.ReportSource= this.objRpt;

}

 

when I run the application, the report was shown on the page with Report Viewer. I clicked the next button on the report viewer, there is a message popup show "please wait while the document is being process" and I wait for some time to see the next page, then I click the next page button again, everything is fine. Why I need to wait some time to see the next page when I click the next page first time? How can make the first time click next page as the same as the second, third.. time (no message "please wait while the document is being process" pop up and work fine?

 

2. Generating the PDF with same report run in VB6 and VS.Net 2013 asp.net.

in VB6, only need 30 seconds, but in VS.Net C#, it need to 3 minutes and 30 seconds on the user's machine. I tested in my development environment with a tool. I found it need 96 seconds on my development env (localhost) to generate the PDF, but 94 seconds was used by the C# statement:

stream PDFout= objRpt.ExportToStream(crystalDecisions.Shared.ExportFormatType.PortableDocFormat);

 

How can improve the performance when I generate report PDF file in asp.net web application? change ExportToStream with other statement?

 

Thanks for any help!

group tree navigation script error - 64 bit server

$
0
0

Hi,

 

We have crystal reports embedded into our WPF application. The WPF application resides on 64-bit server with windows server 2008 OS. When trying to run a report and use the group tree navigation we are getting a script error. This is happening only when we run the report in 64-bit server. We tested the same report on a 32-bit server and everything works fine. Attached is the screen shot of the same.

I upgraded for CR13 and several of my reports...

$
0
0

I upgraded for CR13 and several of my reports are asking for login information during run-time.  Anybody have any ideas? 


Inconsistent reports...

$
0
0

I have a reports that is showing inconsistent results across different databases.  We change the login info in vb.net code.  Some reports come up blank; others work fine. 

How to configure Crystal Report from Test DB to Production DB

$
0
0


Hi,

 

I have a VB/asp.net application that is currently using Oracle DB.

Now, I'm creating a new Crytal report that will connect using any userID, password, database, servername on runtime.

 

When I created the Crystal Report I used the Oracle OLE/DB connection using the test database logon information now I would like to make this  dynamic at form load event which I have my crystal report viewer configured and then pass the dataset regardless if it is coming from test or production database.

 

Now, at form load connection using the test database I can see the report properly which I provided with the same logon information when the crystal report was created but when I switch the login using the production database, it doesn't get the correct datasource and logon information and it still uses the test datasource.

 

I would appreaciate if you can give me a solution or any links of the previous threads that has similar issue with resolution or any sample that may help.

 

Thank you,

Ryan

Crystal Generated PDFs with XMP Metadata attached to Image

$
0
0

Using Crystal Reports 11 with the .NET runtime. I'm adding images into my document. Those images have XMP metadata attached. However, when the final PDF is generated, I do not see that metadata in the resulting PDF. It seems Crystal Reports is stripping it. How can I get crystal reports to retain the metadata of that image in the resulting PDF document.

 

(When you open a PDF document in a text viewer, you can see the metadata of the image as well as the metadata for the PDF itself)

 

(Also I'm adding the image by using the insert image feature. Then I use format graphic to specify the path to that image.)

Crystal Reports XI and version 13 dll can they coexist ?

$
0
0

I currently have Crystal Reports XI. I use it for my VB 6 project mainly. However I have smaller dot net projects.

 

Now I have to use Crystal Reports 13 for my dot net project. .net 2010.

 

My question is, can they coexist in the same development box?

 

I really do not want to jeopardize my VB 6 project.

 

If there is a workaround also, please post so I can use in the same box.

 

Thank you

Derrick

Showing all records from Group table.

$
0
0

BH

Hi, i have two tables: Owner and Ledger.  The ledger table has columns:  ID, OwnerID, PaymentDate, AmmountCredit.   When i run the report, my OwnerID column is replaced by the Owner name, from Owner table, which is exactly what i need. I'm database using links for that.  I'm also grouping my report by Owner name.  However, i also need the following behavior:

Owner table has some records which are not not matched in the Ledger table (under OwnerID column).  In that case i would still like the record to appear in the report but under the columns Payment Date and AmmountCredit it shoud be 0 (since there is no record in table Ledger).  I've tried playing with the "Outer Join" links, but with no success.   How can i implement this?

Thanks so much.

Aron

asp.net crystalreportviewer not showing report

$
0
0

Hello

 

I have created crystal report in my asp.net application. It's working fine in design view and also in Preview. But when i open the page in browser it is not displaying report in viewer. Only i can see is crystalreportviewer header.

 

Can anyone please help me in this matter?

 

Code is as per below.

 

        ReportDocument rptDocument = new ReportDocument();

        rptDocument.Load(Server.MapPath("~/test.rpt"));

        //rptDocument.FileName=Server.MapPath(@"~/rptExamPaper.rpt");

        crvExam.ReportSource = rptDocument;

 

Web.Config(I read in the posts i have to add below code in web.config. which i have tried already)

 

<configSections>

    <sectionGroup name="businessObjects">

      <sectionGroup name="crystalReports">

        <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"/>

        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>

      </sectionGroup>

    </sectionGroup>

  </configSections>

 

<businessObjects>

    <crystalReports>

      <rptBuildProvider>

        <add embedRptInResource="true"/>

      </rptBuildProvider>

      <!--<crystalReportViewer>

                  <add key="ResourceUri" value="~/crystalreportviewers13"/>

            </crystalReportViewer>-->

    </crystalReports>

  </businessObjects>

 

Appreciate your help. I have attached image for reference.

question about the lisence when installing runtime on server.

$
0
0

We are executinig business use application for clients by using VisualBasic2008 bundle versionCrystalReports for VisualStudio .NET 2008
this application runs on server.
so as to run this Application on server, we are supporsing to install Runtime for customer's server. but there is a fear about the license
and want to ask whether purchase another lisence is nessesary.
Is there any problem about the license?

In this connection, we are plannning to open this application regularly by batch job , not start online  by sevral users.


Use Crystal .NET APIs to browse list of tables in a database

$
0
0

Hi

 

If I have connection info for a database - in this case, an ODBC data source - is there a way I can use the Crystal Reports .NET APIs (either the high-level CR API or the RAS API) to get a list of the tables in that database?

 

I don't want a list of tables in use in a given report, but the list of tables in the actual database, much as is shown in the Database Expert in CRW under "Available Data Sources".

 

Thanks!

 

- rick cameron

Export Hangs Entire Browser

$
0
0

I am using VS2010.  When I deploy to my web server (Win 2008 R2, IIS7.0) I can open a report in the Crystal Reports Viewer but when I click the export button the window opens to select file type and the entire browser hangs.

 

In the status bar it says "waiting for http://<servername>/<appname>/crystalreportsviewers13/js/dhtmllib/empty.html".  In task manager the iexplore.exe is chewing up 50% of my processor but still appears to be working.  I have to end the process to get control back.

 

The strange thing is I can log into server, pull up a browser and go to http://localhost/<appname>/<report> and it works fine.  As soon as I change "localhost" to "<servername>" it fails!

 

When I run it through fiddler I get 304: Not Modified on all the crystalreportsviewers13 requests.

 

I have tried everything I find online that might be close (which is why I am running the crystalreportsviewers13 folder in my app folder, was a suggestion).  Has anyone here ever seen this behavior?

Navigation

$
0
0

I'm using CR for Visual Studio 2010-2012. On my development and production servers (Windows Server 2008 R2 and 2012 R2) I have updated the 32-bit and 64-bit SP2 to SP9.

Many reports are embedded in a VB asp.net page. After installation of SP9, pagination would never go past page 2 anymore. After reinstallingSP2 on my development server, this is working again. I did not try the intermediary SP's. Is this a bug ? Thank you.

An unhandled exception of type 'System.ArgumentNullException' occurred in SAPBusinessObjects.WPF.ViewerShared

$
0
0

Hi, I am using VS 2012 and crystal report support pack 9. I am creating WPF application and in that I am creating 2 user controls. In these user control I am using CrystalReportsViewer only. I didn't bind any report so far. When I try to open crystal first user control then  it perfectly open. if I open second then also it perfectly open but when I try to open again first  then application gets crash and getting below error. Same was working in VS 2010 and .net 3.5 framework but when I tried same with .net framework 4.5 it starts crash. An unhandled exception of type 'System.ArgumentNullException' occurred in SAPBusinessObjects.WPF.ViewerShared.dll Additional information: Value cannot be null. Please help Thanks in advance.

Does SAP CR dev for Microsoft Visual C ++ exists?

$
0
0

Hi, SAP experts:

 

bool bResult = Does SAP Crystal Reports, developer version for Microsoft Visual C ++ 6.0 exist ?

 

if(bResult == true)

{

      Tell me the URL to download the package;

}

else return;

Viewing all 2556 articles
Browse latest View live


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