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

SAP CR in a windows server 2008 environment - error - had to restart IIS to fix

$
0
0

Hello

I'm new to this community, so excuse me if I post this in a wrong section. If so can the admin move it to where it belong? thanks

I am a server admin and managing a win2008 64-bit server

We’re running CR 13.0.5 redistributables for the CR for VS2010 product.

the SAP CR is encountering an error

 

Additional info I gather from the developer:

"We actually had a dispose already.  The problem is that once CR is called it never hands back the processing thread to do the dispose.

Also, page_unload is never called at all if the user the browser directly, so it’s an unreliable place to do garbage collection and memory deallocation.

We’ve also tried try/catc/finally, and crystalreports_unload, but none of it is called – we never receive the processing thread back from CR."

 

this is the error:

 

Error in File UNKNOWN.RPT:
The request could not be submitted for background processing.


 

the fix we use was to write a script to restart IIS  every 30 minutes

 

I would appreciate it if someone has encounter this before or have an idea for me to try and resolve this problem.

 

Thank you in advance




Crystal report problem ASP.Net

$
0
0

I have a problem with my asp.net page, i have a crystal report linked to dataset, i receive the following error message:

 

CrystalDecisions.CrystalReports.Engine.DataSourceException: Failed to load database information. Error in File CrystalReport {660B78C8-D207-41F8-8EC1-818F962065CA}.rpt: Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database information. Error in File CrystalReport {660B78C8-D207-41F8-8EC1-818F962065CA}.rpt: Failed to load database information. at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault) at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet) at FormatoSolicitud.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\bcglobal.mx\httpdocs\eskala\FormatoSolicitud.aspx.cs:line 55

 

The ASP.Net webpage works fine in development environment.

 

This is my code behind:

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using CrystalDecisions.CrystalReports;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

using System.Data.SqlClient;

using System.Data;

using System.Configuration;

using System.IO;

publicpartialclassFormatoSolicitud : System.Web.UI.Page

{

    DSEditaSocio ds = newDSEditaSocio();

    DataSet dsDataSet = newDataSet();

    protectedvoid Page_Load(object sender, EventArgs e)

    {

      

        string so_id = "";

       

        so_id = Request.Form["_so_id"];

        if (so_id == null)

            so_id = "1";

              

 

        SqlConnection scSqlConnection = newSqlConnection(ConfigurationManager.ConnectionStrings["EskalaWebConnectionString"].ToString());

        SqlCommand scSqlCommand = newSqlCommand();

        scSqlCommand.CommandText = "SELECT so_id, so_nombre FROM socios WHERE (so_id = @so_id)";

        scSqlCommand.Connection = scSqlConnection;

        scSqlCommand.CommandType = CommandType.Text;

        scSqlCommand.Parameters.AddWithValue("@so_id", so_id);

        SqlDataAdapter sdaSqlDataAdapter = newSqlDataAdapter(scSqlCommand);

 

        try

        {

            scSqlConnection.Open();

            sdaSqlDataAdapter.Fill(dsDataSet);

 

            StreamWriter xmlDoc = newStreamWriter(Server.MapPath("fotos/Testdo.xml"), false);

            // Apply the WriteXml method to write an XML document

            dsDataSet.WriteXml(xmlDoc);

            xmlDoc.Close();

 

            scSqlConnection.Close();

            CrystalReportSource1.ReportDocument.SetDataSource(dsDataSet.Tables[0]);

            CrystalReportViewer1.DataBind();

            CrystalReportViewer1.Visible = true;   

        }

        catch (Exception ex)

        {

            Response.Write(ex.ToString());

        }

    }

}

 

I see that the problem is when dataset is passed to the report source.

 

So I make readable/writable temp folders (i cant make readable/writable database folder), i dont know what to do.

 

Thanks a lot in advance.

Design Mismatching With SAP Crystal Reports 2011 Vs SAP Crystal Reports for Visual Studio 2010

$
0
0

Dear Experts ,

 

I am using SAP Crystal report for visual studio 2010 and CR Version 13 ,  Advance Calculated members, Embedded summary Options are not available in CR Version 13 ,

 

So I downloaded trial version of SAP Crystal Reports 2011 and design report in that individual tool .

 

While I am trying to use report in Visual studio which design in Version 14 , Group Total and Sub total format getting change in version 13 .

Please check my image file for better understanding . 1.jpg

CR Visual Basic 2010 - Report not using RecordSelectionFormula

$
0
0

I am setting the RecordSelectionFormula for a loaded report in code but cannot get the report use the selection formula.  What am I doing wrong?  Below is some exrtract from my code:

 

PrivateSub frmReports_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) HandlesMyBase.Load

 

     Dim CurrentReport AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument

     CurrentReport.Load(cstReportFilePath & "\"& cstCashflowReport)

     CRViewer1.ReportSource = CurrentReport

End Sub

 

 

PrivateSub SubtotalOption_Click(sender AsObject, e As System.EventArgs) Handles SubtotalOption.Click

 

 

     CurrentReport.Refresh()

     CRViewer1.Refresh()

End Sub

 

 

 

 

 

     CurrentReport.RecordSelectionFormula = "{lseinfo.LSE_ID} > 49999"

Crash caused by text object in report - CR 2010 SP5+

$
0
0

Hi,

 

We use Crystal Reports 2010 (Runtime) for Printing in our Desktop application. Recently we upgraded our customers to SP5 (13.0.5). We began to see errors while calling the PrintReport() Method: "External component has thrown an exception." The call stack just says "at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)"

 

After some experimentation we could narrow down the cause of the error to a text object that exists on multiple of our reports in the page footer section, the only notable thing about it are tab characters in the middle of the text. If the tabs get removed, the crash no longer occurs.

 

The printing module in our Application is implemented with C# (.NET Framework 2.0) in Visual Studio 2010, the target platform is 32 bit. The app usually fills data into Reports through ADO.NET (XML) Data sources, but the error also occurs with OLE DB (ADO) Reports and even a testing Report I created without any Data source.

 

I implemented a small .NET console application that basically just loads the Report, sets the Printer name and prints it:

 

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

crReport.Load("Crashtest01.rpt");

CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc = crReport.ReportClientDocument;

CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions o = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();

o.PrinterName = " HP Universal Printing PCL 6 (v5.2)";

rptClientDoc.PrintOutputController.PrintReport(o);

 

This produces a different error message: “The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))”

 

On every System we get this error the appropriate Version of the Crystal Runtime is installed – the Executable in Development Environments and the 32 bit MSI in Test and Production Environments.

We also ensured that the PrintControl.dll is in the correct Install-Folder of the Crystal Runtime and registered.

 

The Problems occur on different Windows Systems, no matter if it’s a 32 or 64 bit OS or Server/Client OS – except Windows Server 2012 where everything seems to work fine.

 

We use the ReportViewer Control (CrystalDecisions.Windows.Forms.CrystalReportViewer) to display a Printing Preview in our app - Printing from there gives no errors, as does starting a Preview in the 2011 Report Designer of the reports with OLE DB or without any data sources.

 

Upgrading to SP6 did not fix the error.

 

I have attached the minimal report that still causes a crash (file is renamed to .txt)

How can I create LogonToken for OpenDoc url in VS2010,64 bit and Framework 4.0?

$
0
0

I need to pass logon token as parameter in the url for OpenDocument.We are Crystal reports 2008 for reporting.

I saw some code we can do it using CrystalDecisions.Enterprise.EnterpriseSession,CrystalDecisions.Enterprise.LogonTokenMgr to genrate token,

 

Do we have 64 bit version of below dll available?

 

CrystalDecisions.Enterprise.dll

CrystalDecisions.Enterprise.Framework.dll

CrystalDecisions.Enterprise.InfoStore.dll

 

we are usind CR for VS2010 13.0 version(64 bit),please let me know how can I generate LogonToken ?

crystal report not working in popup window

$
0
0

Hi,

 

I am working on a mvc web application and learn how to use crystal report in mvc. I found a article http://hasibulhaque.com/index.php/2011/crystal-report-asp-net-mvc/

 

Following the instruction in the article, I created a InvoiceController, InvoiceIndex view. When I click on Show Invoice in New Window button, It calls GenericInNewWin function.

The function contains ajax that requests ShowInvoice action in the InvoiceController. The action gets data and saves in Sessions, then ajax open a web form(ReportPage.aspx).

In the page_load of ReportPage.aspx, It renders the crystal report and display it. The followings are  the codes. The problem is the ReportPage.aspx only displays the crystal report viewer and there is no report content. If I do not use window.open(), use Response.Redirect("~/Report/ReportPage.aspx"); then it works. So if it is pop up window, it doesn't work. But I need it poped up. How to solve the problem?

 

 

 

In InvoiceIndex view:

 

<script>

function GenericInNewWin() {

    var oParam = { "FromDate": "", "ToDate": "" };

    oParam.FromDate = $("#txtFromDate").val();

    oParam.ToDate = $("#txtToDate").val();

 

    $.ajax({

        url: '../../Invoice/ShowInvoice',

        data: JSON.stringify(oParam),

        type: 'POST',

        contentType: 'application/json;',

        dataType: 'json',

        success: function () {

            window.open("../Report/ReportPage.aspx", 'mywindow', 'fullscreen=no, scrollbars=auto');

        }

    });

}

</script>

 

@using (Html.BeginForm("ShowInvoice", "Invoice"))

{

    <input type="text" id="txtFromDate" name="txtFromDate" value="@DateTime.Now.ToShortDateString()" class="dtp" /> <label>To</label>

    <input type="text" id="txtToDate" name="txtToDate" value="@DateTime.Now.ToShortDateString()" class="dtp"/>

    <br />   

    <input type="button" value="Show Invoice in New Window" onclick="GenericInNewWin()"/>

}

 

 

In the InvoiceController:

 

        [HttpPost]

        public void ShowInvoice(string FromDate, string ToDate)

        {

            this.HttpContext.Session["ReportName"] = "invoice.rpt";

            this.HttpContext.Session["rptFromDate"] = FromDate;

            this.HttpContext.Session["rptToDate"] = ToDate;

            this.HttpContext.Session["rptSource"] = "test";

        }

 

In the ReportPage.aspx :

 

        protected void Page_Load(object sender, EventArgs e)

        {

                string strReportName = System.Web.HttpContext.Current.Session["ReportName"].ToString();

                string strFromDate = System.Web.HttpContext.Current.Session["rptFromDate"].ToString();

                string strToDate = System.Web.HttpContext.Current.Session["rptToDate"].ToString();

                var rptSource = System.Web.HttpContext.Current.Session["rptSource"];

 

                    ReportDocument rd = new ReportDocument();

                    string strRptPath = Server.MapPath("~/") + "Rpts//" + strReportName;

                    rd.Load(strRptPath);

 

                        rd.SetDataSource(rptSource);

                        rd.SetParameterValue("fromDate", strFromDate);

                        rd.SetParameterValue("toDate", strFromDate);

 

                    CrystalReportViewer1.ReportSource = rd;

 

                    Session["ReportName"] = "";

                    Session["rptFromDate"] = "";

                    Session["rptToDate"] = "";

                    Session["rptSource"] = "";

        }

Field not found error when trying to modify a report object

$
0
0

I am using SAP Crystal Reports for Visual Studio SP5.

When I try to modify a Text Object using RAS I get a "Field not found" error.

 

My code look like this:

 

            ReportDocument reportDoc = new ReportDocument();

            reportDoc.Load(filePath);

 

            var reportClientDoc = reportDoc.ReportClientDocument;

            foreach (var obj in reportClientDoc.ReportDefController.ReportObjectController.GetAllReportObjects())

            {

                if (obj is CrystalDecisions.ReportAppServer.ReportDefModel.TextObject2)

                {

                    var textObj = (CrystalDecisions.ReportAppServer.ReportDefModel.TextObject2)obj;

                    reportClientDoc.ReportDefController.ReportObjectController.Modify(textObj, textObj);

                }

            }

 

 

This is only happening if I have a Text Object in the Report Footer section that has an embedded "Horizontal Page Number" special field embedded in it. The problem does not occur if I place this Text Object in any other section and also it does not occur if I remove the "Horizontal Page Number" special field.

 

Any idea what the problem might be?


Prevent report from reloading on page change

$
0
0

Greetings,

 

I have a asp.net web application which includes some pages with Crystal Reports. The reports load and display fine, but when I a multi-page report and start paging through the report, everytime I "turn" a page the report completely reloads. This is not too much of an issue on reports without parameters (they load fairly quickly) but definitely an issue on reports with parameters. Some reports take about a minute to load, so having to wait that long every time I turn a page is not going to fly with my users.

I have looked around the forums and found the advice to put the report into an Ajax update panel and add a script manager, but that did nothing to resolve the problem. I also read that I should put the report variables into session variables, but I'm not sure how to do that.

Here is the html code from the aspx page:

 

<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="ItemRank.aspx.cs"Inherits="WebApplication1.IT.ItemRank" %>

<%@RegisterAssembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

   

Namespace="CrystalDecisions.Web"TagPrefix="CR" %>


<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

<headrunat="server">

<title>Item Rank Report</title>

</head>

<body>

<formid="form1"runat="server">

<div>

<CR:CrystalReportViewerID="CrystalReportViewer1"runat="server"

                      

GroupTreeImagesFolderUrl=""Height="1202px"

ReportSourceID="CrystalReportSource1"ToolbarImagesFolderUrl=""

ToolPanelWidth="200px"Width="1104px"HasRefreshButton="True"

AutoDataBind="True"/>

                  

<CR:CrystalReportSourceID="CrystalReportSource1"runat="server">

<ReportFileName="F:\Crystal\IT\ItemRank.rpt">

</Report>

</CR:CrystalReportSource>

</div>

  

</form>

</body>

</html>

 

There is currently no code in the code-behind page other than the standard auto-generated code.

 

I would appreciate any and all help!

 

Cheers,

 

Chris

BO SDK and VS2010 deployment

$
0
0

Hello all!

 

We have a VS2010 App that we use to connect to a BO InfoStore.   We then display the report using the WPF CR Viewer (from CR VS 2010).  This all work fine if we install the BO .Net Runtime SDK however, the SDK is 500MB and have over 150 desktops.  We would like to find an alternative to installing the full SDK on each end-users PC.  Any suggestions would be greatly appreciated.

 

Thanks

Bob

Reference Warnings

$
0
0

I am having a problem with Crystal Reports not playing nicely with Visual Studios 2010.  After going through several different methods of getting Crystal Reports in my projects toolbox (so that I could then use that component in my project), I was finally able to make it avialable and usable.

 

But in using it and defining a couple of Sub Procedures that handle bring in a report and setting up it's parameters, my project now has the following warnings ...

 

Warning 1 A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.Framework' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.

 

Warning 2 A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.Framework' because of an indirect reference to that assembly from assembly 'CrystalDecisions.ReportSource'. Consider changing the 'Embed Interop Types' property on either assembly.

 

Warning 3 A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.InfoStore' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.

 

Warning 4 A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.InfoStore' because of an indirect reference to that assembly from assembly 'CrystalDecisions.ReportSource'. Consider changing the 'Embed Interop Types' property on either assembly.

 

 

These warnings are easily removed (temporarily) by "Removing" unused references.  But is annoying in that they keep coming back, and I keep removing the unsed references.

 

Please help me retain what little sanity I have left, by providing a helpful solution, or by pointing me to resources that will help me understand why this is happening.

 

Thank you in advance for any assistance,

 

Phil Delay

Recurring VS2010 Warnings

$
0
0

History:  After applying several methods to try and place the Crystal Reports Viewer in the Toolbox for VS2010, I was finally able to do and started building forms that use this.  But after creating a few Sub Procedures which define which reports to use, as well as defining prameters to use with specific reports, I noticed that 4 warning (about embedded interop assemblies) keep popping up.  These warning are very easy to clear ... just by "Removing" unused references, but they (annoyingly) keep returning periodically.  I bring up my efforts to be able to use the Crystal Reports Viewer only because of trying so many different things, that I just feel that something isn't right - but I can't quite put my finger on it.

 

Some of the processes I used were uninstalling & re-installing CRXI, uninstalling & re-installing CR for VS2010, and uninstalling & re-installing the runtime engine.  All of which never worked, but eventually I discover the real way to getthe report viewer in my toolbox - .NET Framework 4 vs .NET Framework 4 Client Profile (in the Advanced Comipler settings).  I have no guarantee of the sequences nor of the results in all of my previous attempts, since this has absolutely left my mind in a state of mush.

 

The 4 warning I am getting are as follows:

 

 

    1. A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.Framework' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.
    2. A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.Framework' because of an indirect reference to that assembly from assembly 'CrystalDecisions.ReportSource'. Consider changing the 'Embed Interop Types' property on either assembly.
    3. A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.InfoStore' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.
    4. A reference was created to embedded interop assembly 'CrystalDecisions.Enterprise.InfoStore' because of an indirect reference to that assembly from assembly 'CrystalDecisions.ReportSource'. Consider changing the 'Embed Interop Types' property on either assembly.

 

 

Using Visual Basic, I also have these 3 references imported where needed (2 Forms):

 

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.ReportSource

Imports CrystalDecisions.Shared

 

 

My dev environment is Win7, VS2010, and (most recently) re-installing CR XI (which was removed a couple of years back ... something about CR not playing nicely with VS2010 ... or something like that ... my memory of the whole episode is a bit fuzzy).

 

If someone could please help me restore my sanity, by pointing me to where I am going wrong -OR- pointing me to such resources, I would be ever so thankful.  In fact any kind of help would be very much apprecaited.

 

Phil Delay

WPF Crystal Viewer not showing in tabs

$
0
0

We have a WPF application using a custom control containing a Crystal Viewer. Each new opened report is placed in its own tab and you are suppose to be able to switch between them. After having just installed SP6 of SAP Crystal Reports, developer version for Microsoft Visual Studio (previously used SP2) this has stopped working - as soon as you switch from one tab to the other the Crystal Viewer disappears from view. We have tried different methods to make it reload but without success. Is this a known issue and is there any known workaround? Would be grateful for any input, thank you!

Runtime Install Issue

$
0
0

Trying to install the Runtime on a Win 2008R2 sp1 server and keep getting an error when it gets to crdb_adoplus.dll.  5-10 minutes later I get a pop up an error occured.  I tried this CRforVS_13_0_2 and CRforVS_13_0_6, same error.  Please image below for error.

 

THanks

6-28-2013 9-28-37 AM.jpg

crdb_adoplus.dll Error When Class Library/COM Interop

$
0
0

I know the fix for the "could not load file or assembly 'file:///C:Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified: C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll." has been around for quite some time now however the solution is always to add

 

<startup useLegacyV2RuntimeActivationPolicy="true">

  <supportedRuntime version="v4.0"/>

</startup>

 

 

to the config file, this works great if the report viewer is in a .net executable or being referenced by a .net executable.  However my VB6 application is calling a passthrough DLL which launches the report viewer form contained in another assembly.  I cannot figure out how to get the dll containing the report viewer to recognize the legacy setting.  All dll's and tlb's are in the VB6 Application directory that is making the initial call.

 

Thank you

Nick.

 

 

 

 

 



"Load Report Failed" error when initializing a Crystal Report forms at start up

$
0
0

Hello,

     This is my first time posting on this forum.

 

     My company recently began noticing an intermittent error which is thrown by Crystal Reports as our application is starting up. The error is a simple message which states, "Load Report Failed". This error message is thrown sporadically at best, and normally is benign. However, this error is also occasionally followed immediately by an AppCrash.

 

     The reason that this is happening at start up is because we initialize a bare report at this time in order to increase Crystal Report load times later on. The call here is very simple, we basically set the form location to be off screen, and then show and close it. Unfortunately this issue does not appear to cause an exception which we can catch and troubleshoot. I was able to log the issue and determine that it seems to be occurring after successfully showing the report form.

 

I have also reviewed this pdf on the issue, Load Report Failed troubleshooting, but was unable to resolve it by ensuring that we were disposing of the form correctly.

 

Is there any sort of Crystal Reports logging that might be able to give us more information on this issue?

 

Thank you in advance,

- Jesse

Error when setting Top N options a second time (via the API)

$
0
0

I'm trying to set the Top N options for a group using the CR .NET API. The group already has a Top N sort defined for it in the report file.

 

My C# code looks like this:

 

        public void SetTopNOptions(bool top, int nGroups, bool discardOthers)

        {

            ISCRSort groupSort = reportDocument.ReportClientDocument.DataDefController.DataDefinition.Sorts[groupIndex];

 

            TopNSort topNSort = new TopNSort();

 

            topNSort.Direction = top ? CrSortDirectionEnum.crSortDirectionTopNOrder : CrSortDirectionEnum.crSortDirectionBottomNOrder;

            topNSort.DiscardOthers = discardOthers;

            topNSort.NIndividualGroups = nGroups;

            topNSort.SortField = groupSort.SortField;

 

            reportDocument.ReportClientDocument.DataDefController.SortController.Modify(groupSort, topNSort);

          }

 

This succeeds the first time, and I can show the report in a preview control & it displays the correct number of groups.

 

However, the second time I call this on the same ReportDocument I get a NullReferenceException when I call Modify. I think this is due to the fact that groupSort.SortField is null (and therefore so is topNSort.SortField).

 

Interestingly, if I try to do this using the Engine classes, I get the same behaviour!

 

            SortField sortField = reportDocument.DataDefinition.SortFields[groupIndex];

 

            TopBottomNSortField tbnsf = sortField as TopBottomNSortField;

 

            if (tbnsf != null)

                tbnsf.NumberOfTopOrBottomNGroups = nGroups;

 

The first time through this code succeeds, but the second time throws a NullReferenceError. I wouldn't be surprised if the Engine-level code is doing something pretty similar to the RAS code above.

 

Anyway, please repro and file a bug report.

 

Thanks

 

- rick cameron

Softrak

Crystal Reports Basic Runtime for Visual Studio 2008 licensing

$
0
0

Hi ALL,

 

I found that the Crystal Reports Basic Runtime for Visual Studio 2008 is bundled with Visual Studio .NET 2008 and free to distribute with a vaild copy.  May I know hot to get the official evidence or licensing schema that for our IT audit.  Thanks.

Invalid file path after some time on web server

$
0
0

I developed web application in VS 2008 using Crystal report. i hosted this web app on IIS SERVER and Installed this file "CRRedist2005_x86" on server for crystal report. Reports work fine but after some time it shows invalid report file path error on top on the page.

Load Report Failed

$
0
0

I've created a winforms application in Visual Studio 2010 .NET 4.0 using SAP crystal reports for Visual Studio 2010. When deploying the application to a Citrix server, we can't get the report to open. We get this error:

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The system cannot find the path specified.

   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 HierarchyBrowserWin.WODetailReport..ctor(String sWONO)
   at HierarchyBrowserWin.AssetViewer.dataGridEvents_CellClick(Object sender, DataGridViewCellEventArgs e)
   at System.Windows.Forms.DataGridView.OnCellClick(DataGridViewCellEventArgs e)
   at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.DataGridView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///M:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
HierarchyBrowserWin
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///N:/HiearchyWinDistribute/HierarchyBrowserWin.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Oracle.DataAccess
    Assembly Version: 9.2.0.700
    Win32 Version: 9.2.0.700
    CodeBase: file:///M:/WINDOWS/assembly/GAC/Oracle.DataAccess/9.2.0.700__89b483f429c47342/Oracle.DataAccess.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Shared
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.Windows.Forms
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
----------------------------------------
CrystalDecisions.ReportSource
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///M:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///M:/WINDOWS/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/log4net.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.2.469
    CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

 

 

The report is located in the same folder as our application executable. We have loaded the 13.0.2 msi file on the citrix server. We saw an article about needing to add a "ReportDirectoryPath" entry in the registry, we saw articles on permissions so we added the network service user  to the m:/ drive and gave it full permissions and did the same for the ASPNET user but none of these worked.

Viewing all 2556 articles
Browse latest View live