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

Crystal Report hangs for some method calls when called recursively.

$
0
0

Hi,

 

I have windows service that is exporting crystal report in PDF for requested context.

This is happening per batch (batch contains 1-500 entries) so report will be exported for per entry. So report (Report1.rpt) will be loaded for each entry and then will be exported using (ReportDocument.ExportToDisk).

When this batch is executed under windows service repeatedly (after every 15 min), then service hangs at ReportDocument.Load(Report1.rpt,

OpenReportMethod.OpenReportByTempCopy) or ReportDocument.Close().

 

 

Is there any known pattern where crystal report creates problem?

How can i solve this issue?

 

Things tried:

 

I had tried to move Report Load and Export on thread and wait for specified time and then kill thread, but still it doesn't work.

 

 

Thanks,

 

Nitant


Mixed Parameter Types for Subreports Causing Error

$
0
0

Hello,

 

I'm updating an ASP project:

Existing:

VS2005

CR 2011

MSDAORA

 

New:

VS2010

CR for VS 13.0.6.1027

Oracle Server

 

All reports run against stored procedures.

 

If I have a sub report that has parameter links of a single type, either linking to a report field OR linking to a parameter the reports run fine. If however I have a mix of Parameter links and Report Field links I receive an error "Cannot find parameter field <Field Name> in subreport <Sub Report>" for any link that is set to a Report Field. The error occurs whether the parameters are set in code or not. The failing reports can be displayed in preview.

 

Private Sub SetParameters()

        Dim oValue As New ParameterDiscreteValue

        Dim oKeys As NameValueCollection = Request.QueryString

 

        For Each oParam As CrystalDecisions.Shared.ParameterField In moReport.ParameterFields

            oValue.Value = oKeys(oParam.Name)

 

            If oValue.Value Is Nothing = False Then

                If oParam.ParameterValueType = ParameterValueKind.DateTimeParameter Then

                    moReport.SetParameterValue(oParam.Name, Convert.ToDateTime(oValue.Value))

                Else

                    moReport.SetParameterValue(oParam.Name, oValue.Value)

                End If

            End If

 

        Next

    End Sub

 

Any insight would be greatly appreciated.

 

Thanks

Can't export huge data to PDF

$
0
0

I'm working in a company that deals with banks and I'm working on Crystal report 2005 on visual studio 2005 and also crystal report XI Release 2 on Windows Server 2003 32 bit Standard Edition Service Pack 2 and I'm generating a statement for a customers in PDF format. the volume of data getting huge and I still need to export the whole data in order to be delivered to the bank for printing but I faced an error "invalid pointer" and didn't successfully exported using the run-time environment in the application I made for extracting the data although it succeeded from designer. I'm planning to migrate the code and environment by using SAP crystal report 2011 and visual studio 2012 and SAP crystal report fro visual studio developer edition on Windows Server 2008 R2 64 bit Standard Edition but when trying the new platform it has been also succeeded from designer but when trying the run-time it runs for long time with no feedback or errors which I had to kill it and start it again with no hope. I need a solution for this problem. I' working on Oracle DB and the dataset loads fine but the problem still in the export. the volume of data in the designer reaches about 34000 record with total size 93 MB.

Slow report performance after migration from CRVS 2005 to CRVS 2010

$
0
0

Hi Folks,

I have a client who recently migrated from Crystal Reports for Visual Studio 2005 (CRVS 2005) to CRVS 2010. They do the development in their workstation and then promote their web based project (containing the crystal report) to the web server. The server is currently on IIS 7 on WIN 2008. They have also performed clickonce deployment with SP 5 patch.

They also use Data Direct 5.3 drivers to connect to oracle 11g and run the stored procedures. I have verified that their query performance is good.

 

Reports used to run fine in their older environment, but now, after the upgrade, reports are running extremely slow. They have also mentioned that only the migrated reports are running slow in the new environment; the new reports run fine.

 

Any suggestions to troubleshoot this scenario?

 

Your input will be highly appreciated.

 

Rafiq

Crystal Report for VS10 13_02 Page Render Issue with images on IIS 7

$
0
0

Issue: An image on a CR that is hosted on IIS 7 / Windows 2008 (asp.net aspx page) causes a failure to render page error.

 

The aspx page on which the cr report and image exists will render for me and other users' with my permission levels,

it will not render for other users.

 

I have Admin rights to the IIS 7 server.

 

When I remove the image from the report, the web page on which the report appears renders correctly for all users.

 

User Environment

IE 8

Windows xp

 

 

IIS Environment:

Windows Authentication.

asp.net impersonation enabled

windows authentication enabled.

 

Development Environment

Crystal Report 13_02

Visual Studio 2010.

Picture was added to report by using Insert Picture.

I have tried both jpg and bmp versions of the image.

 

Your help will be greatly appreciated.

Crystal Viewer Events

$
0
0

Is there an event I can handle right as the document begins to load or right after any parameters have been set?  I've created a popup window that I want to start and have come to the top right when the load starts.  I'm running this popup window in a separate thread to allow the cancellation of a large report that might take too long to run, but I can't get it to stay on front because I can't find the right event.  Navigate fires right after the report source is changed, so the popup comes up, but if there are parameters, that param screen comes up on top and then pushes my form to the back, so Navigate isn't the right time.  I've looked and I can't quite find the right event.

 

Thank you in advance for your responses.

CRRuntime_32bit_13_0_4.msi - commonobjmodel.dll failed to register in Windows 2008 R2 Standard 64bit

$
0
0

Hello Everyone,

 

I was wondering if anyone has experienced this type of error.

 

I can install the CRRuntime_32bit_13_0_4.msi into the following OS without getting this error.

*WinXP

*Windows Server 2003 SP2 32-bit

*Win7 64-bit

 

However, this is not the case in Windows 2008 R2 64-bit.

Our app is a 32-bit application built in VS.NET 2010.

 

I've done a lot of searching online for a possible workaround but with no luck.

Though I was able to install CRRuntime_64bit_13_0_4.msi.

 

Please take note that I'm an admin to the server.

Got my antivirus disabled too. Initially thought this was blocking the dll to register.

 

Please advise.

 

Thanks,

Cedric

PrintToPrinter() out of memory exception

$
0
0

I am using the CR for VS2010 for printing images.  The report is made up of two data elements: tiff images and index data.

 

Each report is on average 35 pages.  I spool on average 11 consecutive print jobs in one run.  With this high volume I will get an OutOfMemory exception from the PrintToPrinter() method.

 

I'm not sure if this is related to the print driver (lexmark t650), the CR objects, or something else.

 

When this error occurred I also trap for out of memory via the print queue object (code block below).

 

printQueue.IsOutOfMemory property is always false so I do not know how to determine where the error is really happening.

 

I saw another thread on SCN but I do not know if the RAS would be applicable to my environment.

 

catch (Exception LclExp)

            {

                Sys.LogMessage("TfrmPrinter.PrintBmp error: " + LclExp.Message, "Error", TraceEventType.Error);

 

                LocalPrintServer server = newLocalPrintServer();

                PrintQueueCollection queueCollection = server.GetPrintQueues();

                PrintQueue printQueue = null;

 

                foreach (PrintQueue pq in queueCollection)

                {

                    if (pq.FullName == "Lexmark T650 (DOF)")

                        printQueue = pq;

                }

 

                int numberOfJobs = 0;

                bool mem = false;

                if (printQueue != null)

                    numberOfJobs = printQueue.NumberOfJobs;

                mem = printQueue.IsOutOfMemory;

 

                Result = false;

            }

 

Exception:

 

"System.OutOfMemoryException: Out of memory.\r\n   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)\r\n   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)\r\n   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)\r\n   at CrystalDecisions.Shared.PageRender.draw_ImageInstance(ImageObjectInstance imageInst, Graphics g)\r\n   at CrystalDecisions.Shared.PageRender.draw_ReportObjectInstance(ReportObjectInstance instance, Graphics g, Rectangle clipRect)\r\n   at CrystalDecisions.Shared.PageRender.draw_SectionInstance(SectionInstance section, Graphics g, Rectangle clipRect)\r\n   at CrystalDecisions.Shared.PageRender.Render(PageObject page, Graphics g)\r\n   at CrystalDecisions.Shared.PrintingHelper.PrintPage(PrintP

ageEventArgs e, PageObject page, PrintLayoutSettings layoutSettings, Int32& currentPageNumber, Int32& currentHorizontalPageNumber)\r\n   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintPageEventHandler(Object sender, PrintPageEventArgs e)\r\n   at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)\r\n   at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)\r\n   at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)\r\n   at System.Drawing.Printing.PrintController.Print(PrintDocument document)\r\n   at System.Drawing.Printing.PrintDocument.Print()\r\n   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)\r\n   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)\r\n   at GOV.NYC.Finance.ACRIS.BackOffice.PrintServer.TfrmPrinter.PrintBmp(Int32 StartPage, Int32 EndPage,

Boolean Certify) in C:\\code_rewrite\\Development\\ACRIS Solution\\ACRIS.BackOffice\\PrintServer\\TfrmPrinter.cs:line 105"


Unable to load report using serverfilereport web service

$
0
0

Hi All,

 

I am having an issue with loading crystal reports file using serverfilereport web service.

 

Following are the details:

 

Crystal Reports version: 10.0.0.533

Visual Studio version: MSVS 2010 Professional

 

My Code:

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;

namespace serverfilereportcall_sample
{
    public partial class frmReportLogin : Form
    {
        private ServerFileReport crServerFileReport;

        public frmReportLogin()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {

 

                CrystalDecisions.Shared.ServerFileReport serverFileReport = new CrystalDecisions.Shared.ServerFileReport();
                serverFileReport.ObjectType = CrystalDecisions.Shared.EnumServerFileType.REPORT;

                serverFileReport.ReportPath = txtReport.Text;

                serverFileReport.WebServiceUrl = txtWebUrl.Text;

 

                ConnectionInfo connectionInfo = new ConnectionInfo();

 

                connectionInfo.ServerName = txtserver.Text;
                connectionInfo.DatabaseName = txtdatabase.Text;
                connectionInfo.UserID = txtuser.Text;
                connectionInfo.Password = txtpassword.Text;
                connectionInfo.AllowCustomConnection = true;


                crvReport.ReportSource = serverFileReport;
                SetDBLogonForReport(connectionInfo);
                crvReport.RefreshReport();

 

            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.Message);
            }


        }


        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
        {
            TableLogOnInfos tableLogOnInfos = crvReport.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
            {
                tableLogOnInfo.ConnectionInfo = connectionInfo;
            }
        }

 

        private void crvReport_Error_1(object source, CrystalDecisions.Windows.Forms.ExceptionEventArgs e)
        {
            try
            {
                if ((e.Exception) is EngineException)
                {
                    EngineException engEx = null;
                    engEx = (EngineException)e.Exception;
                    MessageBox.Show(engEx.InnerException.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                else
                {
                    MessageBox.Show(e.Exception.InnerException.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.InnerException.Message);
            }
        }

    }
}

 

Resulted Exception:

Logon failed.\nDetails: ADO Error Code: 0x\n

Source: Provider

\nDescription: Multiple-step OLE DB operation generated errors.

Check each OLE DB status value, if available. No work was done.

\nNative Error: \rError in File C:\\WINDOWS\\TEMP\\TestReport1 {C752248F-3E57-43AB-BCBF-56E6B5B59E65}.rpt:\n

Unable to connect: incorrect log on parameters."} CrystalDecisions.CrystalReports.Engine.EngineException {CrystalDecisions.CrystalReports.Engine.LogOnException}

 

 

Please tell me where I have gone wrong.

How to fix this issue?

Let me have any working sample code if you have.

 

Appreciate your help !

 

- Kumara

Is ExportToStream considered as 1 CPL?

$
0
0

Hi All,

 

I have an application that generates a Crystal Report and exports it as a PDF.  It is a multithreaded Window Service built using Visual Studio 2010 and is using Crystal Report for Visual Studio 2010 version 13.0.4.  I've read that the version I'm using only supports 3 CPL, meaning that only 3 reports could be generated at a time.  However, when I ran my application it could generate more than 3 reports concurrently.  Is the function ExportToStream not considered as 1 CPL?  Below is the line of code used to generate the report:

 

var report = new ReportDocument();

 

Logger.Debug("Loading crystal report.");

report.Load(reportPath);

 

Logger.Debug("Generating crystal report output.");

using (Stream exportedStream = report.ExportToStream(GetExportFormatType(form)))

                                        {

                                                       var exportedReportStream = new BufferedStream(exportedStream);

                                                       exportedReportStream.Seek(0, SeekOrigin.Begin);

                                                       reportData = new byte[exportedReportStream.Length];

                                                       exportedReportStream.Read(reportData, 0, reportData.Length);

                                        }

fail to link a file by a hyperlink in crystal report viewer

$
0
0

Hi everyone,

 

In my case,my report  fail to link a  file by a hyperlink in crystal report veiwer.

 

I open my reports in the design View.

 

Added hyperlinks to the fields byright click -> Format Object - >  hyperlink

 

and add the path of the file to the dialog provoded.

 

Then I preveiw it, it works fine . It is able to show the file in a new pop up.

 

When I run it , the report show all Data I want as it in preview mode.

 

However, when I click on the field with hyperlink, it has no response.

 

Nothing happened.

 

I would like it should show the file in a pop up

 

what should I do ?

 

my crystal report is version 2010 , and work with VB.net

 

Thanks

Keith

Develloper edition to CRVS2010

$
0
0

Hello,

I can't find an answer for my question under the Crystal Reports versions list so...

 

 

I'm using Crystal Reports XI r2 (Develloper Edition) and want to upgrade to a develloper edition equivalent to CRVS2010 but without using Visual Studio.

There are any upgrade for this situation or do I need to devellop with Visual Studio? If there is an upgrade, which one is it?

 

In another words, which upgrade, from CR XI r2 to a newer version (forget VS2012), should I buy so I can still develloping withou using Visual Studio?

 

Thanks in advance

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.

Upgrading from Windows Server 2003 32-bit to 2008 R2 64-bit

$
0
0

Hi, I'm upgrading my server from Windows 2003 32-bit to Windows 2008 R2 64-bit

 

I have an ASP.NET application with Crystal Reports. The server has CRRedist2008_x86 installed. The application works fine on the 2003 server but I'm getting this error on the 2008 server. "is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) "

 

I also tried CRRedist2008_x64 on the new server but the same error happens.

 

The application is a Visual Studio 2008 ASP.NET website

 

I have successfully moved 2 applications to the new server that do not have any Crystal dll's in the bin folder.

 

I have 2 other applications with Crystal dll's in the bin folder that work fine on the 2003 server.  But on the 2008 server the site will not even come up.

Server Error in '/reports' Application.

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[BadImageFormatException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint,

StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0

System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,

Boolean forIntrospection) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&

stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String assemblyString) +35

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190 

 

[ConfigurationErrorsException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11241896

System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388

System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232

System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48

System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210

System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76

System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +283

System.Web.Compilation.BuildManager.CompileGlobalAsax() +50 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676

 

[HttpException (0x80004005):  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76

System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012

System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory

configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025 

 

[HttpException (0x80004005):  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4355316

 

Has anyone run into and resolved this?

 

Thanks for your help.

Load Report Failed VS2012

$
0
0

I am getting Load Report Failed when I try to open a particular CR report.

 

I have 6 reports and 5 of them work but I have one of them that fails every time.

I can't even drag and drop into VS2012 or VS2010. I can only open it in VS2008.

 

1st message when drag&drop:

VS2012 CR fail drag & drop 1.PNG

2nd message when drag&drop:

VS2012 CR fail drag & drop 2.PNG

 

diff rpt file, had no issues when drag&drop:

VS2012 CR success drag & drop 1.PNG

 

I had SP5 installed, then saw this thread http://scn.sap.com/message/14194418#14194418

so I installed SP6 (exe) and I'm still having the same issue.

 

 

Thanks,

James


Looking for documentation on upgrading vb.net 2008 project with CR to 2010

$
0
0

I have looked at the discussions on this topic here and searched documentation but am not finding what I need.  I have a vb 2008 windows application using cr2008  for .net.  I wish to upgrade the project and all the many reports to vb. 2010 using cr 2010.

 

Is there documentation on the steps for doing this.   For example

 

1.  do I first run the vb upgrade program to upgrade my vb.net 2008 project (which includes the reports of course) to vb 2010.

2.  I am presuming that this does not convert the reports.

3.  How do I convert  these 2008 cr reports  to using the cr 2010 for .net and will this process also install the  cr 2010 for the future reports I will be creating with this upgraded project.  

 

I have already installed cr2010 on new vb 2010 projects  but not sure what to do in an upgrade.

 

 

I read some of the posts saying they were using cr 2008 in upgraded vb 2010 projects.  Would this be the result only of upgrading using the visual studio upgrade process?

 

That is not what I wish to do.  I want to be able to run cr 2010 and have all the reports I have upgraded use cr 2010 .

 

Currently all the CR reports in vb 2008 are created by using the WriteXmlSchema() to create an xsd file.

 

For example  mydataset.WriteXmlSchema("c:/windows/temp/paypos.xsd"

The data is created by sql stored procedures.  I use the cr wizard to create the reports and they are accessed via the cr viewer.

 

So my question is what steps do I need either before or after using the upgrade program in visual studio to upgrade the project.  Also, will all my xsd files still work properly once this process is finished.  Any link to documentation if exists (or your detailed instructions) would be appreciated.

 

Thanks.                                                                                                                                                                                               

Pass Crystal an ODBC Connection

$
0
0

Hello Crystal folks,

 

We're putting the last touches on an upgrade to a native C++ application that had been relying on the native CR9 Print Engine (PE) interface, and is now (almost) using the CR13 .NET API.  The last hurdle, I think, is passing an open ODBC Connection to CR13. 

 

Specifically, under CR9, our application had been using PELogOnSQLServerWithPrivateInfo(), which accepts an HDBC handle as a parameter (which we got from CDatabase::m_hdbc).  Passing Crystal the connection (rather than just a connection string) was/is desirable, since the application does some black magic with to the connection before it's useable.

 

Yesterday, I stumbled across DatabaseController.ReplaceConnection() in the RAS (CrystalDecisions.ReportAppServer.Controllers.DatabaseController).  This looks promising, especially the freeform style of the PropertyBags that ReplaceConnection() relies on (via the ConnectionInfo object).  However, although documentation seems to suggest that it's possible to pass a Connection through ReplaceConnection(), I couldn't find an example of how to do it.  Furthermore, I couldn't find a complete list of properties that the ConnectionInfo recognises as meaningful.

 

Essentially, the question boils down to: Does the CR13 .NET API have an equivalent to CR9's PELogOnSQLServerWithPrivateInfo() -- or some other method of accepting an open ODBC Connection?

 

Thanks,

 

Kevin

Refreshing Viewer with Formula Changes (without resetting ReportSource)

$
0
0

The RDC model had a

CRViewer1.RefreshEx(False)
method that allowed changes to formula values (via code) to be reflected in the viewer without resetting the report source.

 

But with the .NET model, the same thing seems to require re-assigning the viewer's report source (to the existing report source).

CRViewer1.ReportSource = MyExistingReportObject
which causes a distracting screen refresh (including a brief display of gray area and progress animation).

 

Are you aware of a .NET method that allows the viewer to simply reflect changes to the underlying report source without resetting the ReportSource or without the progress animation?

Merge modules for Crystal Reports XI R2 SP6?

$
0
0

Are merge modules available for Crystal Reports XI R2 SP6?

 

Thank you

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?

Viewing all 3636 articles
Browse latest View live


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