Quantcast
Channel: Crystal Reports
Viewing all 1507 articles
Browse latest View live

Parameter Problems

$
0
0

I have set up a parameter in Database expert called LocID with a default of 164

This works

    CrystalReportSource1.ReportDocument.SetParameterValue("LocID", "164");

When I want to change parameter
         CrystalReportSource1.ReportDocument.SetParameterValue("LocID", "166");

I get Failed to open the connection

Any ideas


The report you requested requires further information. Converted a VS 2008 to VS 2010 c#

$
0
0

Hi All

I converted a ASP.net C# web application from VS2008 to VS2010 but when I trying and display a Crystal Report in a viewer I get a Message Box:-

Enter Values

The report you requested requires further information.

Server Name - Order_Input_Dataset

Database Name-

User Name-

Password-

 Use Integrated Security

Here's the code to display the report:-

        public static void Open_Report(ref ReportDocument MyReport, ref CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1, TOrder Order, DataSet Order_Input_As_DataSet, System.Web.HttpServerUtility Server)
        {
            try
            {
                // As a matter of caution lets clear out any reports first.
                // Clearing out will remove the Temp Crystal Report on the Servers Windows\Temp\ Folder
                Close_Report(MyReport, CrystalReportViewer1);

                MyReport = new ReportDocument();

                MyReport.Load(Server.MapPath(Constants.rOrder_Report_Path)); // Must Load prior to setting any controls on the report

                if (Order_Input_As_DataSet != null)
                {
                    MyReport.SetDataSource(Order_Input_As_DataSet.Tables[0]);
                }
                SharedMethods.Order_Report = MyReport;

                if (SharedMethods.Order != null)
                {
                    SharedMethods.Set_Report_Objects(MyReport, Order);
                }

                CrystalReportViewer1.ReportSource = MyReport;
                CrystalReportViewer1.DataBind();
                CrystalReportViewer1.RefreshReport();

            }
            catch
            {
            }
        }


 Here's the  Source for the Page - Viewer:-

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Order_Report.aspx.cs" Inherits="Mala_Orders.Web_Pages.Order_Report" %><%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"><link rel="shortcut icon" href="~/Mala_favicon.ico" type="image/x-icon"/>    <title>Order Print Preview</title> </head><body><form id="form1" runat="server"><div><asp:Button ID="btnExport_To" runat="server" onclick="btnExport_To_Click" 
            Text="Export to -&gt;" /><asp:DropDownList ID="ddlExport_Types" runat="server"></asp:DropDownList><br /><CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" ReportSourceID="CrystalReportSource1" 
            ToolbarImagesFolderUrl="../aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer4/images/toolbar/" 
            GroupTreeImagesFolderUrl="../aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer4/images/tree/" 
            HasCrystalLogo="False" AutoDataBind="True" ToolPanelView="None"/><CR:CrystalReportSource ID="CrystalReportSource1" runat="server"><Report FileName="..\Reports\Order_Report.rpt"></Report></CR:CrystalReportSource></div></form></body></html>

I have another Crystal Reports Viewer on the same web application which now says:-

Error
The report filename was empty.

All worked when using VS 2008.

I've searched high and low on the Internet for a solution but couldn't find anything.

Any ideas?

tia

VS2010 & Crystal Reports on a AjaxToolKit.TabContainer in a MasterPage

$
0
0

Hi All

I have successful imported a ASP C# project from VS2008 to VS 2010

My VS2008 project uses Crystal Reports 10.5.3700.0

where my VS2010 project uses Crystal Reports 13.0.2000.0

Both versions of Cyrstal reports are installed and availble in the References|.Net option of the project (VS2010).

In the masterpage of the project I have a declaration:-

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

I have a web page based on the masterpage that I have a Crystal Reports Viewer embedded into a TabContainer.

This page header is:-

<%@ Page Language="C#" MasterPageFile="~/Master Page/Main Master Page.Master" AutoEventWireup="true" CodeBehind="Orders_Associated_Users.aspx.cs" Inherits="Mala_Orders.Master_Page.Orders_Associated_Users" Title="Associated Users" MaintainScrollPositionOnPostback ="true" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %><%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

 

When I view the tab (in Design) containing the Crystal Reports Viewer at design time it says:-

Error Creating Control - Crystal Reports Viewer

the server tag 'cr crystalreportviewer' is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix

 

When I look athe thsource for the page I now have :-

<%@ Page Language="C#" MasterPageFile="~/Master Page/Main Master Page.Master" AutoEventWireup="true" CodeBehind="Orders_Associated_Users.aspx.cs" Inherits="Mala_Orders.Master_Page.Orders_Associated_Users" Title="Associated Users" MaintainScrollPositionOnPostback ="true" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %><%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %><%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

I have a page thats not related to the masterpage with a Crystal Reports Viewer and that works fine.


Hope that makes sense.

Any ideas why this is happening ?

Can I disable the reference on the Crystal Reports Version=10.5.3700.0 in the references?

 

tia

 

 

 

 

Missing Parameter Fields

$
0
0

Getting Missing Parameter Fields. any ideas would be helpful

//////////////////// Code

ReportDocument cryRpt = newReportDocument();

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

ParameterFields parameterFields = newParameterFields();

   ParameterField parameterField = newParameterField();

        parameterField.ParameterFieldName ="LocID";

  ParameterDiscreteValue parameterValue = newParameterDiscreteValue();

       parameterValue.Value = 164;

      parameterField.CurrentValues.Add(parameterValue);

       parameterFields.Add(parameterField);

       CrystalReportViewer1.ParameterFieldInfo = parameterFields;

        CrystalReportViewer1.ReportSource = cryRpt;

Crystal Report in ASPNET Website

$
0
0

I have a aspnet 4.5 website with a ew reports made using CRforVS2012 13.0.9. The reports are working fine in the development environment (Widows 7 SP1, VS 2012, SQL Server 2008 R2). All reports work fine and get exported in to pdf using a httphandler. But the reports do not work when I try to host the website in the same machine and try to view the reports. I get an error message 'Operation not supported. Document processed in JRC engine can not be opened in C++ stack'. A bit of research indicated that this could be due a a host of issues such as

(a)    Not installing correct CRforVS runtime redistributable.

(b)    The website not being able to find the report document due to access right restrictions to the temp dir of the ApplicationPoolIdentity or due to incorrect report path specification in the website.

Therefore I installed the Runtime Redistributable and checked the path specifications of the report for correctness. I also checked that the ApplicationPoolIdentity has access to its temp directory.

There were also suggestions of copying the aspnet_client folder content from c:/inetpub/wwwroot to the website folder. The web.config file was also altered with additions of <add embedRptInResource="true" value="/crystalreportviewers13"/>, after copying the crystalreportviewers13 folder into the website folder as well as to the wwwroot folder. All these actions are based on the suggestions I found on various related posts.

However, I continue to get the same error message.

I also read that it would require me to change the website project to a WebApplication Project, which I dont want to do due to time constraints.

Any one has any suggestions?

Access Denied when load a Crystal Report

$
0
0

Hi!

First, an apologize for my english not is very good.

my problem is a little strange, because is not recurrent only sometimes appear a error that said:

"Access Denied, Load Report Failed"

my code is this:

Dim ds As DataSet
        Dim dt As DataTable = Nothing
        dt = New dsReportes.resumen_semanalDataTable
        Try
            query = sqlReporteResumenSemanal.sp_cp_reporte_resumen_semanal("D_Recurso_Semana", dropSemanas_ini.SelectedValue.Split("-")(0), dropSemanas_ini.SelectedValue.Split("-")(1), dropSemanas_ini.SelectedValue.Split("-")(2), dropSemanas_fin.SelectedValue.Split("-")(0), dropSemanas_fin.SelectedValue.Split("-")(1), dropSemanas_fin.SelectedValue.Split("-")(2), Master.UserID, dropAnalistas.SelectedValue, Master.UserArea)
            ds = AccesoDatos.LoadDataSet(query)
            lblArea.Text = ds.Tables(0).Rows(0).Item("Area")
            lblSemana_ini.Text = ds.Tables(0).Rows(0).Item("Periodo_ini")
            lblSemanas_fin.Text = ds.Tables(0).Rows(0).Item("Periodo_fin")

            dt = ds.Tables(1)
            crSource.Report.FileName = "Reportes\rptResumenSemanal.rpt"
            crSource.ReportDocument.SetDataSource(dt.DefaultView)
        Catch e As Exception
            Master.ShowError(e.Message)
        End Try

and the exception is in this line:

crSource.ReportDocument.SetDataSource(dt.DefaultView)

thanks for your help!

regards!

P.S. this image show the exception before that i put my code "Try...Catch"

https://drive.google.com/file/d/0B_M1wbQtwa3vQzNxdFFFbmx3emc/edit?usp=sharing

Crystal report query - Hiding Text Object in absence of its value and move next Text object upward

$
0
0

I have created crystal report where the data fields are set in a single vertical column. See below link

http://intelnet.in/Report.aspx

I want to hide Text object with blank or 0.00 value and move next text object upwards

e.g In Terms and Condition - Transporter is blank so I want to hide it and move Delivery upwards , similarly for Education cess and other Text objects.

I have formatted Detail section with Section Expert as Suppress Blank Section and Text Object with Fromat Object asSuppress Embedded Field blank Lines.


But I could not make Text object invisible in absence of its value and move next Text object upward.

If there is any coding require, Pls provide the sample code if possible.

Pls guide me in this regard.

Thanks in advance.

Crystal Report displaying blank in web server

$
0
0

Hi all,

Crystal Reports are appearing correctly in the  development environment , getting blank page after application hosted at webserver. Instead of displaying report blank page appearing.

I tried alot to fix this problem, also tried the below fixes but no use.

1) Enable 32 Applications True at Application pool.

2) placing the aspnet_client folder in the root folder.

Any help!

Thanks & Regards,

Srinivasu D.


Code to embedding DOC's dynamically in Crystal Reports

$
0
0

I was assigned a project which need to do the following jobs:

1) Print cover letter in which display member name and address based on memberID in Member table (Done)

2) Using the same memberID to embed a word doc file. The file name is the same memberID from a file server, eg. 12345.doc (Need help to code???)

3) Export to a file server as pdf file(this should be no problem for me)

Can some experts give me an idea of how to do 2)?

Using sub report or ole object ? How to code?

Crystal Reports + IIS 7.5 Move -> Database logon failed

$
0
0

I'm sorry if this is the wrong section and should be in the IIS part, but I figured since the error only happens when running something made in Crystal that it might be the right spot.

Any, we have been in the middle of a server move from W2003 over to W2008 R2 and everything on the site works fine, except all the reports we have done in Crystal.  I have tried reloading the install and even loading two newer versions, but it always gives the same error.  The big kicker to this is our web developer kind of "quit" right in the middle of all of this and I am no developer. 

We always get the [COMException (0x8004100f): Database logon failed.] error.  I have tried it with our old server using the new database and that is fine, so it seems the database isn't having the issue.  If I open the report in Crystal it works fine - verify the database connection and everything. 

If any other information is needed I will provide what I can - I've been trying to work on this for a week and gotten no where! Frown

Here is the error that comes up:

Server Error in '/v2' Application.


Database logon failed.

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.Runtime.InteropServices.COMException: Database logon failed.

Source Error:

Line 74: 
Line 75:         Catch ex As ExceptionLine 76: Throw ex 
Line 77: End Try Line 78:


Source File: D:\inetpub\generic\GetParms.aspx.vb   Line: 76

Stack Trace:

[COMException (0x8004100f): Database logon failed.]
   CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
   CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +260

[LogOnException: Database logon failed.]
   chem_GetParms.Page_Load(Object sender, EventArgs e) in D:\inetpub\generic\GetParms.aspx.vb:76
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627



Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

how to resize the reportviewer so it fills the webform ?

$
0
0

how to resize the reportviewer so it fills the webform ?

this its my aspx webform with the report viewer

   <div style="Width:auto;">

   <form id="form1" runat="server" style="width:100%; height:100%;">
     

    <CR:CrystalReportViewer  ID="rptviewer" runat="server" AutoDataBind="true" DisplayStatusbar="False"--%>
            EnableToolTips="False" HasCrystalLogo="False" HasSearchButton="False" HasDrilldownTabs="False"
            HasDrillUpButton="False" HasGotoPageButton="False" HasPageNavigationButtons="False" HasZoomFactorList="False"
            HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" ToolPanelView="None" Width="100%" Height="900px"  BestFitPage="true" AsyncRendering="False" SizeToReportContent="True"/>
   
    </form>
   </div>

this its how the window its opened

function openWindow(url, width, height) {
    var w = window.open(url, '', 'width=' + width + ',height=' + height + ',toolbar=0,status=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1');
    //var w = window.open(url, '','toolbar=0,status=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1');
    w.focus();
}

i have tried to set resizable=0 to not allow to resize the window but only works on ie on firefox its ignored

what´s happening with this code the toolbar its resized but the report its not being resized

thanks

Crystal Report Without SQL CLI CLient

$
0
0

Hi,
I need to ask that, is it possible that crystal report will work on server without SQL CLI CLIENT. Actually, In my project, I used Crystal Report 13 and it works fine when I am running that application locally or connect the database remotely. At the time when I am hosting the application and run that part to view the crystal report, it gives "database logon error". I checked the code several times but it did not worked. and when I go for hosting support they said that they did not provide sql cli client support on shared server. Si is there any other way, that I can run it without using sql cli client on shared server rather to go for dedicated server.
Please Help Me!!!!
Thanks In Advance.

Crystal Reports 13.0.2000.0 - Invalid report file path. - Windows 7 - Only when published

$
0
0

Hi All

I have ported a vs2008 ASP.net project to vs2010 and my target .Net framework is 4

When trying to view a report when the project is published I get a:-

Server Error in '/***' Application.

Invalid report file path. 
  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: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid report file path.

Source Error: 



[No relevant source lines]
  

 Source File:  c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\****\789757cd\86c3df62\App_Web_lrg53oyw.1.cs    Line:  0 

Stack Trace: 



[LoadSaveReportException: Invalid report file path.]
   CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id) +40
   CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id) +164
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +143
   CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +107
   CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportDefinition() +51
   ns_SharedMethods.SharedMethods.Close_This_Report(ReportDocument reportDocument) +36
   ns_SharedMethods.SharedMethods.Close_Report(ReportDocument MyReport, CrystalReportViewer CrystalReportViewer1) +15
   Mala_Orders.Master_Page.Orders_Associated_Users.Page_Unload(Object sender, EventArgs e) +18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnUnload(EventArgs e) +9584962
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +227
   System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
   System.Web.UI.Page.ProcessRequestCleanup() +56
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.web_pages_orders_associated_users_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mala_orders\789757cd\86c3df62\App_Web_lrg53oyw.1.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

  


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446 

Everything is working when in the VS2010 environment (design time) 

This error only occurs on my Windows 7 development pc.

The error doesn't occur when the project has been published on my Windows Vista pc (usingexactly the same installer).

Both Windows 7 and Windows Vista pc's have VS2008 and VS2010 installed.

Any ideas why when using the same installer, do I get a "Invalid report file path" error on the Windows 7 and not on the Windows Vista when trying to view a report

on a published web site?

Hope that makes sense.

tia

MVC 4, Crystal Reports in Multi-project Solution

$
0
0

Hello all,

I am wondering if anyone can help me, I am working in a multiple project solution where all my model classes lives in one project. In my web project I am trying to design a Crystal Reports but I am having trouble at “Set Datasource Location” because my model classes in my model project are not showing up and so I am unable to select the report model class needed for the design…. I can used the XSD utility to extract the class but it would be nice to be able to have Crystal Reports see and access classes in another project in the solution… If anyone can help me I would really appreciate it…

I am using Visual Studio 2013 with MVC 4

Thank you… Andy

Invalid report file path. - Windows 7 Crystal Reports 13.0.2000.0

$
0
0

Hi All

I've got a very basic example on displaying a report in a ASP.net project using Visual Studio 2010

To display the report I use the following code:-

            MyReport = new ReportDocument();
            String ReportPath = Server.MapPath("MyReport.rpt");
            MyReport.Load(ReportPath);
            CrystalReportViewer1.ReportSource = MyReport;

The Crystal Reports viewer is:-

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
        Height="1039px" ReportSourceID="CrystalReportSource1" 
        Width="901px" DisplayStatusbar="False" DisplayToolbar="False" 
        EnableDatabaseLogonPrompt="False" EnableDrillDown="False" 
        EnableParameterPrompt="False" EnableTheming="False" EnableToolTips="False" 
        HasCrystalLogo="False" HasDrilldownTabs="False" HasDrillUpButton="False" 
        HasExportButton="False" HasGotoPageButton="False" 
        HasPageNavigationButtons="False" HasPrintButton="False" HasSearchButton="False" 
        HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" 
        HasZoomFactorList="False" ToolPanelView="None" />

The report is displayed when run within the Visual Studio environment.

But I get a "Invalid File Path" when the web site is published:-

Invalid file name. 
  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.Runtime.InteropServices.COMException: Invalid file name.

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: 



[COMException (0x800001fb): Invalid file name.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +90
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +259

[CrystalReportsException: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +322
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +850
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +78
   Reports._Default.Set_Report() +111
   Reports._Default.Page_Load(Object sender, EventArgs e) +36
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

  


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446 

The same code is works from a Visual Studio 2008 project.

I've tried all of the following:-

String ReportPath = Server.MapPath("../MyReport.rpt");
String ReportPath = Server.MapPath("~/MyReport.rpt");

but still the same error when using the published site.

Any ideas?

tia


Crystal Reports error - Dim Report as New ReportDocument *** UPDATED ***

$
0
0

I am trying to build an app that converts a Crystal Report (.rpt) to PDF.
The idea is to get the .rpt filename from Business Objects, load the report and then save it as PDF, but I am getting an error when I declare the ReportDocument
Below is the code associated with crystal.....

Imports CrystalPluginMgrLib
Imports CrystalEnterpriseLib
Imports CrystalInfoStoreLib
Imports CrystalUserPluginLib
Imports CrystalObjectPackageLib
Imports CrystalUserGroupPluginLib
Imports CrystalDecisions
Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.CrystalReports


Dim report As New ReportDocument

The error that I get is as follows....

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll

Additional information: Retrieving the COM class factory for component with CLSID {F734A321-8381-4FFD-A614-139E8906DC83} failed due to the following error: 80000003 One or more arguments are invalid (Exception from HRESULT: 0x80000003)

I am using Visual Studio Express 2012 and have installed the following:
- Business Objects Client
- Crystal Reports for Visual Studio 13.0.9

This is my first time working with Business Objects and Crystal Reports, so I might be missing something fundamental - any help would be much appreciated

*** UPDATE ***

The error only occurs when I create a Session using CrystalEnterpriseLib.SessionMgr and CrystalEnterpriseLib.EnterpriseSession, and log onto Business Objects.

If I don't log on to BO, the conversion works.
If I log on to BO and then log off, set both the Session and Session Manager to Nothing, then I still get the error.

HTML SUPPORT IN CRYSTAL REPORT

$
0
0

Hai.

I had a field created from ajax editor (RICH TEXT EDITOR) . everything seems OK. but code generated for next line . IS Not supporting the code in CRYSTAL REPORT (Text  interpretation  = HTML)

eg 

1<br/> 2<br/>3 <br/> 4<br/>5

it should  report (Crystal Report) like this

1

2

3

4

5

.

Text  interpretation = HTML

But its diplaying like this!

1 2 3 4 5

Please suggest me how to solve this issue

with regards

Inao

Need to convert static data to Upper case in Crystal report

$
0
0

Hi all,

I have designed a crystal report, to generate a letter in Asp.net using Sap Crystal reports and i have used some static data.

I want to convert static data to Upper case letters. How can i get this.

Any body..

 

Narendra

getting multiple records in crystal report

$
0
0

Hello,

          I am not able to get multiple records in crystal report from dataset. I am performing the following steps.

1. created the stored procedure , that is getting multiple records from different tables with one unique id field.

2. creating dataset  - .xsd file - and use stored procedure with parameters to get data.

3. Also in the .aspx.cs code, I have used crystalreportviewer to set the data source.

3. in crystal report using the dataset fields in formula editor to get value.

For example I have got 2 records from dataset with unique id field,

How do I loop through the dataset in formula editor of crystal report to get the value according to the conditions used in formula editor. Request you to help me specifically in formula editor for looping through the dataset

Thanks

Regards

Anoop

Crystal Report Export To PDF Error : Operation not yet implemented

$
0
0

Hi,

We are facing an issue while exporting Crystal Reports to PDF in Windows 2003 R2 Server. The Error Message is : Operation not yet implemented.

We have gone through the following different solutions available inthe internet:
1. Provide permission for Network Service and Aspnet users to the Temp folders and other required folders.
2. Register Export related dlls ( ExportModeller.dll, CrtSlv.dll, atl.dll, etc. )
3. Verify the Font availability in the System. (We are using Microsoft Sans Serif and Arial only in our crystal reports)
4. Provided full trust in the config file.
5. Setup a client server application to generate the same report and it is working.

The problem seems to be with some permission or policies for web applications. The knowledge base articles from BO (Business Objects) are also not available on the internet after BO were absorbed by SAP.

Please see the error screenshot below.

Error in File C:\windows\Temp\REportVendor {9F0FC3C9-35B5-432A-A96B-306417EC5E38}.rpt:
Operation not yet implemented.

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.Runtime.InteropServices.COMException: Error in File C:\windows\Temp\REportVendor {9F0FC3C9-35B5-432A-A96B-306417EC5E38}.rpt:
Operation not yet implemented.

Source Error:

Line 60: catch(Exception ex)
Line 61: { Line 62: throw; Line 63: } Line 64: }

Source File: c:\disco\Default.aspx.cs   Line: 62

Stack Trace:

[COMException (0x800003e7): 
Error in File C:\windows\Temp\REportVendor {9F0FC3C9-35B5-432A-A96B-306417EC5E38}.rpt:
Operation not yet implemented.]
   CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
   CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +260

[InternalException: 
Error in File C:\windows\Temp\REportVendor {9F0FC3C9-35B5-432A-A96B-306417EC5E38}.rpt:
Operation not yet implemented.]
   CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +700
   CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +315
   CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +676
   CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +214
   CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName) +266
   _Default.Page_Load(Object sender, EventArgs e) in c:\disco\Default.aspx.cs:62
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

 

The Error is throwing on this line

 rptDoc.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,@"C:\VendorReportNew.pdf");

If any one faced on this issue in your experience, please share with me.

Thanks in Advance,

Rajesh

Viewing all 1507 articles
Browse latest View live


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