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

What is the cause of this Load report failed error?

$
0
0


Please see the below exception.

 

CrystalDecisions.Shared.CrystalReportsException was unhandled

  HResult=-2146232832

  Message=Load report failed.

  Source=CrystalDecisions.CrystalReports.Engine

  StackTrace:

       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 CigCrystalReports2013.Form1.ConfigureCrystalReports() in C:\Users\kkleven\documents\visual studio 2012\Projects\CigCrystalReports2013\CigCrystalReports2013\Form1.vb:line 9

       at CigCrystalReports2013.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\kkleven\documents\visual studio 2012\Projects\CigCrystalReports2013\CigCrystalReports2013\Form1.vb:line 14

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at System.Windows.Forms.Form.OnLoad(EventArgs e)

       at System.Windows.Forms.Form.OnCreateControl()

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

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

       at System.Windows.Forms.Control.WmShowWindow(Message& m)

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

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.ContainerControl.WndProc(Message& m)

       at System.Windows.Forms.Form.WmShowWindow(Message& m)

       at System.Windows.Forms.Form.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)

       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)

       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)

       at System.Windows.Forms.Control.set_Visible(Boolean value)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.Run(ApplicationContext context)

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

       at CigCrystalReports2013.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81

       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ThreadHelper.ThreadStart()

  InnerException: System.Runtime.InteropServices.COMException

       ErrorCode=-2147467259

       HResult=-2147467259

       Message=Unspecified error

       Source=sacommlayer.dll

       StackTrace:

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

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

            at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

       InnerException:

 

This error is from a very simple test application where all it does is create an instance of the ReportDocument object and loads a report. I have included a copy of the code below:

 

 

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

 

Public Class Form1

 

    Private Sub ConfigureCrystalReports()

 

        Dim Report As New ReportDocument
        Report.Load("BranchList_2013.rpt")

 

    End Sub

 

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        ConfigureCrystalReports()
    End Sub


End Class

 

From what I have read, this is the first thing that needs to be done when creating a report. I am sure that the .rpt file is the the 'C:\Users\kkleven\Documents\Visual Studio 2012\Projects\CigCrystalReports2013\CigCrystalReports2013\bin\Debug' of this test application.

Can someone please help me determine the cause of this error?

 

Thank you for your time on this.


Crystal Reports Viewer on webforms rendering issue

$
0
0

Hi,

 

We have a crystal report that loads on an aspnet web page. The report contains many pages which display correctly, however intermittently some pages will overflow into the next page and cut off. The report has a page break by customer and following pages will display correctly.

 

I have two screenshots, note that on the viewer there is a gap between the top table and the bottom list, however when printed or exported to PDF, there is no gap.

 

We have tried all the page settings and could not get rid of the extra gap in the report and prevent the cut off at the bottom of the report.

 

Notes:

1. when the crystal report is exported to PDF or printed, ALL pages print correctly including the pages that do not display correctly (see attachment)

2. we are using crystal runtime 13.0.10 and have tried previous versions as well which have the same problem

3. Attached is a copy of the crystal report

4. Screenshots below - red section is my comments

 

Any help with this issue would be appreciated.

 

Screenshot 1: Crystal viewer showing gap between top and bottom table and data cut off at bottom

ARVCrystalViewer.jpg

Screenshot 2: PDF export or print version is correctly rendered

ARVCrystalPDFExport.jpg

Error Crystal reports viewer Invalid Key Code Visual studio 2013

$
0
0

After deploy correctly InstallShield application with Crystal Reports Merge Modules (13.0.10) . Can not open reports in Visual studio 2013 anymore in develope machine.

 

Error: Invalid Key Code

Crystall Reports VS, Runtime and Merge Modules versions are 13.0.10.

 

I need then uninstall Crystal, drop all regyster key and Re-installing Crystal Reports for Visual Studio and runtime.

 

Merge module provided by SAP is conflicting with Crystal Reports for Visual Studio, and is causing failure when using Visual Studio to view or edit reports.

 

I've read a similar topic before but without any solution.

 

Help please!!!

Change XML Web Services Connection at Run Time

$
0
0

Hello, I am using an XML/Web Service Connection (HTTP(S) Data Source and HTTP(S) Schema URL) and need to change the location of the HTTP(S) Data Source at run time, for example from "/Integration.svc/GetDataView/463/en/3/50" to "/Integration.svc/GetDataView/463/en/3/62" (only the last number changes).

 

Could someone please let me know the method or property to set to change the URL string for the XML web service data source at runtime? Is it on the ReportDocument object?  I haven't been able to find a method or property to set anywhere.

 

Thanks in advance.

Switch from Web Service to DataTable data source at run time

$
0
0

Hello,

I am using a web service XML data source and related web service XML Schema file at design time to create a report.  At run time, I am switching to a DataTable data source and am displaying the report as follows:

 

                Dim rptDoc As New ReportDocument
                rptDoc.Load(rptFileName)
                rptDoc.SetDataSource(dt)
                ReportViewer.ReportSource = rptDoc

 

 

The data table has the exact same field structure and schema as the web service.  Neither the web service for the results set or schema require any login information.  When I run this code on the development environment, it works perfectly.  When I run it on the web server, I am prompted to enter database login credentials, even though I'm not using a database for the results set nor does the DataTable require any additional parameters.  Please see the attachment for the prompt I am receiving.  I would expect that there would be no additional prompt at this point, except for report parameters.  Note in my ReportViewer I have the property set EnableDatabaseLogonPrompt="False".

 

Any help would be greatly appreciated!  Thanks

Issue with VerifyDatabase

$
0
0

Hi everyone, I am working on a Crystal report migration project where migration is being done from Crystal 8.5 and VB6 to crystal 2013 and VB.Net. I've a report with 21 sections including Group header and group footer. The Problem is that as soon as the VerifyDatabase call is executed, system shrinks the section count from 21 to 19, and group header-footer are not available any more. Because of this, system starts throwing the error "Object reference not set to an instance of object". If I skip this call then system works fine and report gets generated. Is there anyone out there who has experienced this problem with Crystal Reports and MS SQL server? Thanks in advance. Prateek Arora

How to specify encoding on exporting Crystal report to a text file?

$
0
0

Hello.

According to my tests whenever I export a report document to a text file (ExportFormatType = ExportFormatType.Text), Crystal engine produces UTF-8 file (BOM is EF BB BF). The question is - is there any way to explicitly specify output file encoding (ANSI / UTF-8 / UTF-16)? I am using <SAP Crystal Reports, version for Microsoft Visual Studio> 13.0.10.1385 (i.e. Support Pack 10). C# code example is following:

 

    {

      TextFormatOptions formatOptions = CrystalDecisions.Shared.ExportOptions.CreateTextFormatOptions();

      formatOptions.CharactersPerInch = 10;

      formatOptions.LinesPerPage = 60;

 

      DiskFileDestinationOptions destOptions = CrystalDecisions.Shared.ExportOptions.CreateDiskFileDestinationOptions();

      destOptions.DiskFileName = @"c:\test.txt";

 

      CrystalDecisions.Shared.ExportOptions crystalExportOptions = new CrystalDecisions.Shared.ExportOptions

        {

          ExportFormatType = CrystalDecisions.Shared.ExportFormatType.Text,

          ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile,

          ExportFormatOptions = formatOptions,

          ExportDestinationOptions = destOptions

        };

 

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

      crystalDocument.Load(@"c:\test.rpt");

      crystalDocument.Export(crystalExportOptions);

    }

 

Thanks in advance,

Gleb.

Disable object selection outline on Crystal Report Viewer

$
0
0

Hello all,

 

I have a problem with our reports having a default outline selection around margins of the report when the crystal report viewer comes up. It looks like a box with small dotted lines. Is there any way to turn this off? If I click on the the "Main Report" button, it goes away. If there is some code that I could use to click the "Main Report" button in the load event, then it could go away. This seems to be an issue with the latest version of crystal reports with this new report objects selection.

 

Thank you for all your help.

 

-Daniel


Using Crystal Report in ASP.Net website, Report not showing in CrystalReportViewer

$
0
0

I am working on an ASP.Net website to display a Crystal Report in a CrystalReportViewer on a ASP.Net page.

 

I am using Visual Studio 2013 and Crystal Reports 2011 for Sage.

 

I have Crystal Reports for Visual Studio version 13.0.2000.0 installed.

 

Trying run the Website on a Win 7 Pro in the local IIS.

 

On the Test1.aspx page, there are 2 DropDownList boxes for the user to filter the data for the report.  When the user clicks on Run Report button, it does the following:

 

1. Connect to the Oracle database.

2. Run a query using a SELECT statement based on what the user selected in the DropDownList boxes.

3. Fill a dataset with the results of the query.

4. Set the CrystalReportViewer to the dataset.

 

CrystalReportViewer is not even shown on the web page.

 

I know the dataset is getting data because I can display it in a label.

 

What do I need to do to get this to work?

 

Test1.aspx  ------

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test1.aspx.vb" Inherits="Test1" %>

 

 

<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

 

 

<!DOCTYPE html>

 

 

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

<head runat="server">

    <title></title>

</head>

<body>

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

    <div>

   

        Plex H Shipment YM SUM Report<br />

        <br />

   

        Year:

        <asp:DropDownList ID="ddlYear" runat="server">

        </asp:DropDownList>

        <br />

        Month:

        <asp:DropDownList ID="ddlMonth" runat="server">

            <asp:ListItem Selected="True">ALL</asp:ListItem>

            <asp:ListItem>1</asp:ListItem>

            <asp:ListItem>2</asp:ListItem>

            <asp:ListItem>3</asp:ListItem>

            <asp:ListItem>4</asp:ListItem>

            <asp:ListItem>5</asp:ListItem>

            <asp:ListItem>6</asp:ListItem>

            <asp:ListItem>7</asp:ListItem>

            <asp:ListItem>8</asp:ListItem>

            <asp:ListItem>9</asp:ListItem>

            <asp:ListItem>10</asp:ListItem>

            <asp:ListItem>11</asp:ListItem>

            <asp:ListItem>12</asp:ListItem>

        </asp:DropDownList>

        <br />

        <br />

           

        <asp:Button ID="Button1" runat="server" Text="Run Report" />

        <br />

        <br />

        <asp:Label ID="Label1" runat="server"></asp:Label>

        <br />

        <asp:Label ID="Label2" runat="server"></asp:Label>

   

        <br />

        <br />

        <asp:Label ID="Label3" runat="server"></asp:Label>

        <br />

   

        <br />

        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" GroupTreeImagesFolderUrl="" Height="962px" ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl="" ToolPanelWidth="200px" Width="1344px" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ToolPanelView="None" />

   

        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">

            <Report FileName="PlexHShipmentYMSumReport_2.rpt">

            </Report>

        </CR:CrystalReportSource>

   

    </div>

    </form>

</body>

</html>

------------------------------------------------------------------------------------------------

 

Test1.aspx.vb -----

 

Imports CrystalDecisions.CrystalReports.Engine

 

 

Partial Class Test1

    Inherits System.Web.UI.Page

 

 

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load

        Dim strCurYear As String

        Dim intYear As String

 

 

        'Get current Year.

        strCurYear = Format(Now, "yyyy")

 

 

        If ddlYear.Items.Count = 0 Then

 

 

            'Add Items to Year Drop Down List.

            ddlYear.Items.Add("ALL")

            ddlYear.Items.Add(strCurYear)

 

 

            intYear = Val(strCurYear) - 1

            Do While intYear >= 2012

                ddlYear.Items.Add(Trim(Str(intYear)))

                intYear = intYear - 1

            Loop

        End If

 

 

 

 

    End Sub

 

 

    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim sql As String

        Dim strProcedure As String

        Dim strYear As String, strMonth As String

        Dim strErrorMsg As String

        strProcedure = "btnRunReport_Click"

 

 

        Try

            sql = ""

 

 

            strYear = ddlYear.Text

            strMonth = ddlMonth.Text

 

 

            sql = "SELECT SHIP_YEAR, SHIP_MONTH, SHIP_TO_BUILDING_CODE, TRUCK_CNT, INTERPLANT_SHIPPER_NO_CNT, " & _

                "TOTAL_ITEM_CNT, GTOT_NET_WEIGHT, GTOT_GROSS_WEIGHT, ENTRY_DATE, REVISE_DATE " & _

                "FROM VIEW_PLEX_H_SHIPMENT_YM_SUM "

 

 

            If strYear = "ALL" And strMonth <> "ALL" Then

                sql = sql & "WHERE SHIP_MONTH = '" & strMonth & "' "

            ElseIf strYear <> "ALL" And strMonth = "ALL" Then

                sql = sql & "WHERE SHIP_YEAR = '" & strYear & "' "

            ElseIf strYear <> "ALL" And strMonth <> "ALL" Then

                sql = sql & "WHERE SHIP_YEAR = '" & strYear & "' AND SHIP_MONTH = '" & strMonth & "' "

            End If

 

 

            sql = sql & "ORDER BY SHIP_YEAR ASC, SHIP_MONTH ASC"

 

 

            Label1.Text = "SQL Statement is:"

            Label2.Text = sql

            Call CreateReport2(sql)

 

 

ExitReport:

 

 

        Catch ex As Exception

            'strErrorMsg = "Date/Time: " & Format(Now, "MM/dd/yyyy HH:mm:ss") & vbCrLf & _

            '            "Procedure: " & strProcedure & vbCrLf & _

            '            "Application: " & strAppName & vbCrLf & _

            '            "Error Message: " & ex.Message & vbCrLf & vbCrLf

            'My.Computer.FileSystem.WriteAllText(strCurPath + "\" + strErrorLogFile, strErrorMsg, True)

        End Try

    End Sub

    Protected Sub CreateReport(ByVal strSql As String)

    End Sub

    Protected Sub CreateReport2(ByVal strSQL As String)

        Dim OrConn As Oracle.ManagedDataAccess.Client.OracleConnection

        Dim OrCmd As Oracle.ManagedDataAccess.Client.OracleCommand

        Dim OrDa As Oracle.ManagedDataAccess.Client.OracleDataAdapter

        Dim OrCB As Oracle.ManagedDataAccess.Client.OracleCommandBuilder

        Dim Rpt1 As ReportDocument

 

 

        OrConn = New Oracle.ManagedDataAccess.Client.OracleConnection()

 

 

        If IsNothing(Rpt1) Then

            Rpt1 = New ReportDocument

        End If

 

 

        If OrConn.State <> Data.ConnectionState.Open Then

            'Connection string using ODBC

            'OrConn.ConnectionString = "DATA SOURCE=GTRANS01;PERSIST SECURITY INFO=True;USER ID=GADMIN;PASSWORD=GADMINPASS;"

 

 

            'Connection string without using ODBC

            OrConn.ConnectionString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=999.8.7.65)(PORT=999)))(CONNECT_DATA=(SERVICE_NAME=Z99)));User Id=user;Password=password;"

 

 

            OrConn.Open()

        End If

 

 

        OrCmd = New Oracle.ManagedDataAccess.Client.OracleCommand(strSQL, OrConn)

        OrCmd.CommandType = Data.CommandType.Text

        OrDa = New Oracle.ManagedDataAccess.Client.OracleDataAdapter(OrCmd)

 

 

        OrCB = New Oracle.ManagedDataAccess.Client.OracleCommandBuilder(OrDa)

 

 

        Dim dsData As New Dataset1()

        dsData.DataSetName = "PlexHShipmentYMSumData"

        OrDa.Fill(dsData)

 

 

        Label3.Text = "Dataset has " & dsData.Tables(0).Rows.Count & " records."

 

 

        Rpt1.Load(Server.MapPath("PlexHShipmentYWSumReport_2.rpt"))

        Rpt1.SetDatabaseLogon("user", "password")

        Rpt1.SetDataSource(dsData.Tables(0))

 

 

        CrystalReportViewer1.ReportSource = Rpt1

 

 

    End Sub

End Class

Export to PDF from populated c# Dataset without Database connection

$
0
0

I have Crystal Reports Developer Full version 11.5.12.1838, all versions of Visual Studio and about 100+ reports targeting printed paper.

They were developed over the last decade with the Developer Designer (and it's predecessors) and are based on SQL Server Stored Procedures. In the past, they were produced at runtime using a MS Access VBA application that either printed them or exported them to PDF files. I have successfully converted that application to C#, however a few problems: despite loading a populated dataset and setting all parameters, the runtime still wants to refresh the dataset. That works for 95% of all reports, but some just use null values for the parameters (despite having set them correctly), others mix the sequence of the parameters (despite querying them correctly) and some don't use the provided credentials. But that is not the main problem.

 

Now I need a way to produce (export to PDF) these reports at runtime based on a populated C# Dataset without database connectivity for the Crystal environment. The structure of the data in the Dataset is identical to what the stored procedure return in the development environment.

 

The question is: is that possible and what do I need in terms of version, SDK etc. Any advice (sample links) would be much appreciated.

Do NOT show Parameter prompt when loading report

$
0
0

Hello,

 

I know there are a million threads on this topic, but that's the problem...it's impossible to find an answer.  So apologies in advance if it's out there already.

 

I have a generic report viewer page/control in my application where I load a variety of reports; I do not know what the parameters are in advance.  In ALL cases, I do NOT want to be prompted for parameters when the report is first loaded.  I want the report to use either empty values or any specific values I pass in via code when the report is first loaded and executed in the Viewer.

 

In one example, the report has one string parameter and 2 numeric parameters.  If I set the string parameter to "", then handle that in my record selection criteria, that is an OK workaround.  But for the numeric parameters, I want to set them to null or nothing and then not be prompted.  This is where I'm having difficulty: If I do nothing, I get prompted. If I set them to Null/Nothing, I'll get an error message when the report loads that there is a data type mismatch.  ALL of the parameters are set to OptionalPrompt=True.  Also, if I set EnableParameterPrompt="False", I receive an error that parameters are missing even though all parameters are Optional.  So the main issue is to be able to set numeric (and date) prompt values to something in code that will then stop them from being prompted in the Report Viewer when the report loads.

 

Thanks in advance for a solution or a pointer to another thread with the solution.

Richard

How to show preview of Crystal Reports for Windows Form?

$
0
0

Hello.

Now,I am migrating Crystal Reports.

 

 

====================================================

From

■ Seagate CrystalReports8.0,VB6,WinXP

To

■ Crystal Reports2011,VB2012(.net FrameWork4.5),Win8

====================================================

 

 

I want to show preview of CrystalReports.

 

 

1:Must I use "Crystal ReportViewer"?

2:Must I install "Crystal Reports for .NET"?

 

 

Thanks&Regards,

Hiroshi

Main Report with Subreport and linked fields. Subreport does not display all data.

$
0
0

I've had this problem several times but I can usually correct it by deleting the subreport and re-creating it. Problem is that only some of the fields show on the subreport. In this case it's only the linked fields that are showing. And by showing I mean that when I run the report from within Visual Basic 2008, sending a dataset to the main report and subreport, the fields on the subreport don't print or show in the report viewer. Also, the all fields do show up in the report designer's preview. I'm using the exact SQL statements that I used when building the report and subreport.

 

I know this is difficult to understand but I need help with this asap. It's severely holding up the project that I'm working on. ANY ideas would be tremendously appreciated.

Report taking too long to generate

$
0
0

I am running a crystal report using the viewer from vbnet (framework 4.0)  and reports without record selection run as expected.   If I add a record selection such as JobNum > 4000 to the report the report generates and database error code 17 which I suspect comes from a timeout.  I also get the same error if there are parameters on the report.

 

I am running 13.0.10.1385.

 

any ideas of how to solve the problem.

CR 2010 msi (32 bit) runtime fails with error 1904, win 8.1 and many dll's not registered

$
0
0

I searched the KB articles  on 1904 error, but nothing for win 8 and few for vb 2010 msi. windows platform.

 

I had been using cr 2008 32-bit runtime with no problem. But now I am trying to install an application that was created in vb 2010 and I need the cr 2010 runtime.  I started to install the cr 2010 runtime 32 bit.  This is a 64 bit machine but the application was created for 32 bit and I have been using 32 bit when installing msi on other x64 platforms with no problems..  This was a test machine.  It has installed the visual C++ redistributable x86 and 64 bit , versions 2005, 2008, 2010 and 2012.  bit.  The cr 2010 32 bit runtime is the one that fails.

 

During installation of the CR 2010 msi a message said that the 2008 msi had to be uninstalled which it did automatically.  But later I received the error 1904 message.  There are about 21 dll's that were listed as not registering.

 

 

 

I uninstalled the cr 2008 32 bit runtime and tried again, but that did not help.

 

I tried running the CR 2010 msi as administrator to no avail. 

 

I tried uninstalling all other crystal -related software and updates to no avail.

 

I tried disabling windows defender, to no avail.

 

My OS platform is Windows 8.1


Report deployed to new server does not display static image

$
0
0

Hi,

 

We have several web sites on a server running Windows Server 2008 R2 Standard, SP1, 64-bit.  It has installed .NET Framework 4 Client Profile and Extended, ver. 4.0.30319 (according to Control Panel->Programs, as well as c:\Windows\Microsoft.NET\Framework).  Two of the sites use many Crystal Reports, most of which include a static image as a logo. This image is embedded in each report; there is no stand-alone image file that gets deployed.

 

Recently, we migrated to a new server, running the same version of Windows & .NET Framework.  As near as we can tell, the 2 servers are nearly identical, as far as configuration and permissions, etc. One notable exception is the DefaultAppPool, which is Classic on the original server and Integrated on the new. (When I changed the new server to Classic, the apps failed to run properly.)  The other exception is the old server is on a stand-alone box, while the new server is a virtual machine.

 

For one of the apps on the new server, the embedded logo images are not displaying on the page.  Instead, there is a little red X with the word "Image".  For the other app on the new server, the reports display fine.  Furthermore, if I copy one of the "broken" rpt files from the "broken" app to the "good" app, the report displays correctly!  And of course, the same file displays correctly in all circumstances on the old server.

 

This suggests to me that there is not a problem with the report file, per se', but rather with the environment to which it is deployed.  Permissions?  If so, where?

 

Any suggestions would be much appreciated.

 

Thanks.

 

--d

Crystal Reports 13 for VS2013 Hangs when report deployed via Clickonce

$
0
0

Hi,

 

We have upgraded from vs2008 to vs2013 one of our .net C# projects. Project consist of a Server and a windows client. Reports are run in the client, and data transported with disconnected Datasets ( No direct connection to the database ). We use Microsoft clickonce to deploy this application to our users.

 

The problem we have is that after the migration clients deployed with clickonce experience a delay of about 1 minute while the report is shown with a message "please wait while the document is processing". However if we run the application directly from the filesystem the report is shown immediately.

 

running the clickonce deployed shows the following message using process monitor, however after ~1 minute the report displays correctly.

 

6:08:05.5863138 PMECMWin.exe18156CreateFileMappingD:\Users\o\AppData\Local\Temp\2\temp_6a4d2478-2cab-45d5-8e21-af5d5d3a761a {56013444-9297-4F76-A8DE-00A08C289BBF}.rptFILE LOCKED WITH WRITERSSyncType: SyncTypeCreateSection, PageProtection:

 

 

Code:

 

        CrystalReport1 c = new CrystalReport1();

        public Form1()

        {

            InitializeComponent();

            c.Load();

        }

 

 

        Stopwatch s = new Stopwatch();

        private void Form1_Load(object sender, EventArgs e)

        {          

            if (c.IsLoaded)

            {

                crystalReportViewer1.ReportSource = c.FileName.Replace("rassdk://", ""); ;

                Console.WriteLine("crystalReportViewer1.ReportSource = c;:" + s.Elapsed.TotalMilliseconds.ToString());

            }

        }

 

* Note:

1. the report from the code above is empty and has no connections to database.

2. Using Vs2013

3. Using SAP Crystal Reports, developer version for Microsoft Visual Studio - Service Pack 9 - Fixed Issues and updates - Busines…

crystal report 13.0.2 document.ExportToStream html40 file not found issue

$
0
0

when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported missing file with the .htm extension. bug?

Busy Indicator or Finished - Event for Report Viewer in WPF

$
0
0

Hello,

 

how can i get the info, if the viewer control is rendering a report or it is finished with the rendering?

 

I this time, i want to disallow some activities like closing window oder selecting another reports etc.

 

and what is the best way to dispose the viewercontrol and its reportdocument object in .net?

 

thank you

ReportDocument.PrintToPrinter function Causes memory leak and Does not release temporary files.

$
0
0

Hi All,

 

    I have piece of code where I call the PrintToPrinter function to print the contents of the report to directly to printer. Here it prints the contents to the printer, But does not release the memory or temp files created while printing. It happens every time continuously. In fact I am even closing the report using the .Close and .Dispose functions. Still it is causing memory leak and leaves the temp files in the temp folder.

 

Here is the code that causes the problem.

 

public void PrintOut(int iCopies, bool bCollated, int iStart, int iStop)

        {

            rptDocument.PrintOptions.DissociatePageSizeAndPrinterPaperSize = false;

            rptDocument.PrintToPrinter(iCopies, bCollated, iStart, iStop);

        }

 

public void CloseReport()

        {

 

  frmPrintPreview.Close();

  frmPrintPreview.Dispose();

  rptDocument.Close();

  rptDocument.Dispose();

 

        }

 

 

Any help from any body would be greatly appreciated.

Viewing all 3636 articles
Browse latest View live


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