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

Is it still possible to implement Crystal Viewer 9 in VS 2010 vb.net project?

$
0
0

Dear all,

 

I know this is a very bad idea but all of sudden there is an emergency need to support a very legacy CR9 report viewer in the rewritten VB.NET environment.  My very first question will be -- is it posible ( i.e. make use of the DLL )?  And if possible, any possible advice or steps will be much appreciated.

 

So far I've tried to add the crviewer9.dll to VS2010 toolbar and drag it to the form -- but the control appeared with width and height being 0, not resizable.  It compiles with all legacy code, but it just pop out errors when run.

 

Or CR 13 for VS2010 package will be my ultimate goal?

 

Thanks!

 

-- Alex


Crystal reports - Database error code 17

$
0
0

Hi,

 

I have been trying to debug a project and everything is perfect except for the report generation module.

 

For report generation i am using Crystal reports, However when i try to generate the report, the Below error is displayed. Could anyone Help me to rectify the error.

 

error.png

 

The Related coding is given below:-

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using CrystalDecisions.Shared;

using CrystalDecisions.CrystalReports.Engine;

using System.Data.SqlClient;

 

 

namespace msmReports

{

   public static  class util

    {

       public static void billById(string billno)

       {

           frmrptViewer frm = new frmrptViewer();

 

 

           frm.crv.ReportSource = new rptbill();

 

 

           ParameterFields fields = new ParameterFields();

           ParameterField field = new ParameterField();

           field.Name = "@billno";

           ParameterDiscreteValue value = new ParameterDiscreteValue();

           value.Value = billno;

           field.CurrentValues.Add(value);

           fields.Add(field);

           frm.crv.ParameterFieldInfo = fields;

 

 

           frm.Show();

       }

 

 

       public static void viewstock()

       {

           msmReports.frmrptViewer frm = new msmReports.frmrptViewer();

        

           frm.crv.ReportSource = new msmReports.rptStockview();

           frm.Show();

       }

    }

}

 

.

 

Please Check and reply if any solutions can be offerred.

 

 

Regards Noel......

 

Message was edited by: Don Williams

Developer version for Visual Studio 2013

$
0
0

I downloaded and installed a trial version of Crystal Reports Developer edition for Visual Studio (CRforVS_13_0_11.exe).  As far as I can tell, this is CR 2013 and is for Visual Studio 2011 (it might be for 2010).  I installed this on a computer with Visual Studio 2013 and it appeared to install the components of CR into VS 2013.  Do I now need to install Support Pack 9 and 10?  What would happen if we tried to use what was installed in the original installation?

RAS - Can I remove section suppress condition formula?

$
0
0

I need to modify a report on the fly so that sometimes the 'Suppress (no drill down)' condition formula is completely removed. Optionally I would just modify the formula to return FALSE so that the section appears. It seems like the code below works when the section format 'EnableSuppress' option is TRUE, but does not seem to do anything when there is a suppress formula for the section.

 

is this possible to do?

Thanks

Helen

 

private void RemoveSuppress(CrystalDecisions.ReportAppServer.Controllers.ReportSectionController ctlSec

    , CrystalDecisions.ReportAppServer.ReportDefModel.Section sect)

{

    CrystalDecisions.ReportAppServer.ReportDefModel.ISCRSectionFormat

   secFmt = new CrystalDecisions.ReportAppServer.ReportDefModel.SectionFormat(); // also tried getting the current section format object

 

    secFmt.EnableSuppress = false;

    secFmt.ConditionFormulas.RemoveAll(); // *** Should ensure the condition formulas are removed right?

    ctlSec.SetProperty(sect, CrystalDecisions.ReportAppServer.Controllers.CrReportSectionPropertyEnum.crReportSectionPropertyFormat, secFmt);

}

private void doOutput(CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument oras)

{

    CrystalDecisions.ReportAppServer.Controllers.ReportSectionController

        sect = oras.ReportDefController.ReportDefinition.FindSectionByName("DetailSection1");

  

    RemoveSuppress(oras.ReportDefController.ReportSectionController, sect);

    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray

        boByteArray = oras.PrintOutputController.Export(RASDefModel.CrReportExportFormatEnum.crReportExportFormatPDF, 1);

    boByteArray.Save(@"c:\temp\r.pdf", true);

}

Update the DataBase from the Report

$
0
0

I'm using Crystal Reports for Visual Studio 2010, in a web application.

 

I have a Crystal Reports that show a lot of records, some of them occupy one page and others two pages.

I want to save the pageNumber where each reord is showed in the report, into the database.

So, then I will can print another Crystal Report that shows the index of the first CrystalRerport, with the pageNumber of each record.


I have tried by code to iterate through each record of the Crystal Report or per page displayed in the CrystalViewer and write the code to update the database. But I have not gotten to write the necessary code.

 


Can you suggest suggest  a way to achieve it?

 

Thanks,

Eva Janakieff

 

Crystal Reports 2011 and rcapi via inproc ras?

$
0
0

First of all, we are using Crystal Reports 2011 (v14.0.2.364)

I'm working in a small non-profit in healthcare, where there are very limited budgets.

 

=> This lead to me using VS Express, meaning i can't use the CR for VS stuff (right?)

 

What i'm trying to do is create ad hoc report definitions (select certain stuff in a small application, and based on that, a very basic report should come out) to facilitate report creation (otherwise i need to define 50+ subreports manually, all on the same DB, with different column definitions, ...)

 

Now i've read around a lot in the last few days, and while at the moment i've succeeded in opening an existing report, and 'browsing' through its contents using the VS Debugger, it seems i'm missing the ReportDef assemblies,

 

=> so i can't change the definition of the report. (right?)

 

I'm confused... i've read that CR XI SP2+ contains the RAS SDK, which should contain the RCAPI, and i should be able to use this in-process.

Since "CR 2011" > "CR XI SP2", i assumed it would work...

 

Obviously i've read either the wrong documents, or i'm misinterpreting them, or i've overlooked something...

Just to be clear: there is no budget (not money-wise, nor time-wise) to be going after the Crystal Reports Server things, so if that is the only way i can produce the desured outcome, i might as well just ditch the current project and go after something else (like generating myDBR code)

 

could someone offer some clarifications on this please? (and maybe i'm posting this in the wrong forum, but i'm accessing cr rpt files from VS...

(using C# btw)

 

thanx in advance

 

Michael

Not printing legal size paper

$
0
0

I have an application that prints a form in crystal reports.

The form properties are set to legal but the printed output is as if the paper is letter size.

The printer properties have been checked by network services and the printer prints properly with word documents.

The program was written in VB.NET 2008 and crystal Reports 9 is loaded. this is a 64 bit machine.

 

Is there an update service pack available?

.Net Viewer 13 sp 12 - Issues with large reports (32767+ pages)

$
0
0

I have encountered two issues when working with reports in the 32 bit .Net viewer with a page count over 32767.

  • Clicking on an item in the group tree will only take me up to page 32767
  • Searching for a value will not look on pages after page 32767

 

Are there any fixes in the pipeline or a work-around that does not involve splitting the data into smaller chunks?


Can this be used for commercial software

$
0
0

Hi, I'm using Visual Studio 2013 Express(free version) for making a software and selling it. Can I add reports made using Crystal reports Developer version for Visual Studio in it without any problem. Or do I have buy a license for Crystal reports?

 

-Thanks

ADODB - replaced by CRDB_ADOPLUS?

$
0
0

We have a commitment to remove all use of the legacy ADODB.DLL assembly from our ASP.NET application, which is VB.NET and includes Crystal Reports for VS 2010. Our customer is concerned that the reference in Crystal Database Expert to 'OLEDB (ADO)' might mean that Crystal is using the ADODB assembly internally. It would help to convince our customer if someone from SAP could confirm that CR for VS 2010 is a fully native .NET component, and does not make use of the old COM ADODB assembly.

 

The reason for asking this is that we have experienced random OLEAUT32 crashes in our application, which is ASP.NET with VB code and 100+ embedded Crystal reports using the OLEDB connection. The crashes have only occurred on Windows 2008 R2 - the same app has been running for many years on Win2003 without issues.  Microsoft have diagnosed that the crashes are related to ADODB, and stated that this is not supported in .NET applications (especially ASP.NET), and hasn't been for years - see

 

http://support.microsoft.com/kb/840667

 

We have not been able to determine whether the crashes are in our VB code (which still uses some ADODB access), or in the Crystal environment. We are intending to re-write the VB code to use ADO.NET, but converting 100+ reports to use 'push' mode with ADO.NET datasets would be a major task.

 

If Crystal IS using adodb internally, this would imply that the 'pull' mode, using OLEDB to pull data from a database, is by implication not supported in Crystal for VS 2010!

 

Azure SQL Support

$
0
0

I'm going to ask the question plain and simple: Is SQL Azure supported by SAP Crystal Reports, version for Visual Studio?

 

The supported platforms document mentions nothing about Azure, but does explicitly mention other editions and versions of Microsoft SQL server.

 

I found this KB Article which mentions:

 

  • Currently no version of Crystal Reports is tested on WIN Azure and thus not supported
  • As of November 12, 2012 there are no plans to support WIN Azure with Crystal reports

 

But I can't find anything more recent.  I'm actually asking about SQL Azure - as in an Azure SQL service database.

 

I am having issues with SAP Crystal Reports, version for Visual Studio (SP 10) with VS 2013 - it does not see stored procedures on an Azure SQL database.  Tables and views, yes - but not stored procedures.

 

Any guidance would be greatly appreciated.

 

Mike

Unable to locate WPF Components for Visual Studio 2013

$
0
0

Hi,

 

We have a WPF application written in C# using Visual Studio Professional 2013.  We've also got several dozen Crystal Reports which I just converted from version 8.5 to 14 using SAP BusinessObjects Crystal Reports Version 14.1.1.1036.

 

After installing Crystal Reports v14, I attempted to follow this guide:

 

WPF Project Using the Crystal Reports WPF Viewer in 8 Easy Steps

 

... and it appeared that I did not have the necessary components, controls, etc. installed.  So, I went here:

 

SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads

 

... and I downloaded the 32-bit, 64-bit, and the click once, all for (v.13.0.12.1494)

 

My questions (I think) are:

 

Do we need to get a different Crystal Reports license?  IOW, should we purchase the Crystal Reports for Visual Studio?  Our only need is to launch the reports from the executable application - which I presume is accomplished through the WPF viewer.

 

ULTIMATELY => if I run all of the 32-bit, 64-bit and click once installers and the components don't appear in Visual Studio, what are the next steps?  Is there a way to diagnose what's missing?

 

Your help is much appreciated!

 

Thanks,

Aleks

$ symbol is does not appear when field object is embedded in text object

$
0
0

There has been an uncanny issue where a $ symbol is not visible when field object is embedded in text object. The field object is embedded in text object in following format

"<Text1><Formula field (amount)><Text2>"

Ex: BeforeString $650.00 AfterString

 

Some of the findings related to this issue are:

  • Issue only persist if report is previewed in Crystal report viewer of VS 2010, i.e. the $ symbol does not display.
  • If same report of step 1 above is exported to .RPT format and opened in crystal designer then there is no issue as the $ symbol displays.
  • If report is directly exported to any format (without preview), then also there is no issue as the $ symbol is always visible.

 

We tried certain options but none of them worked out:

  • Fetch and display the currency symbol from current locale.
  • We tried looking for some property of text object using which we can set the currency format.
  • We tried most of the field object properties to set the currency format.
  • We installed Crystal Report Service Pack 11 to check if there is any fix by SAP.

 

We also faced similar issue where in the date formatting was lost when field object contains date instead of Amount, we couldn’t find any suitable solution for that issue as well.

 

Appreciate if someone can help.

 

Version details:

VS 2010 SP1

Crystal Report for Visual Studio: Support Pack 10 (v.13.0.10.1385 )

Crystal Report Designer 2013

 

Thanks in anticipation.

Prateek

Crystal report runtime

$
0
0

Hi ,

 

I have installed latest Crystal report runtime Support Pack 12 (CRforVS_redist_install_32bit_13_0_12). But I cannot find dotnet managed dll files

 

CrystalDecisions.CrystalReports.Design.dll

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportAppServer.DataSetConversion.dll

CrystalDecisions.ReportSource.dll

CrystalDecisions.Windows.Forms.dll

CrystalDecisions.Shared.dll

 

I am using VS2013 and reference above file in my .net application.

 

Which runtime version 13.x I can use to add files reference in my .net applications?

 


Thanks

Annapurna

Crystal reports refuse running on pc

$
0
0

Hello there i have project which runs very well on my Windows 7 pc 32bit. but the issue comes when running reports. it brings the following error

 

"The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.\n\n   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

   at Octopus.Reports.Report.LoadDocument()

   at Octopus.Reports.Report.GetDocument()

   at Octopus.Reports.ReportService.LoadReport(Report report)

   at Octopus.Reports.Forms.ReportBrowserControl.OnLoadReport(Object sender, DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)"

 

I have installed CRRuntime_32bit_13_0_11 and Crystal Reports Viewer 2008 but all in vain. could it be a windows issue?

I need your help. Please any one

Thank you


How to upgrade Crystal Report 10.5 to latest version what works with VS2013?

$
0
0

Hello, My project has over 50 Crystal Reports developed in Crystal 10.5 in VS2008. We like to upgrade to latest version that works with VS 2013. I first downloaded the free developer version of Crystal Report for VS2013, (file name of downloaded file is CRforVS_13_0_11). After install completes, I was able to open the report designer in VS 2013. but when I run the report in my application, I got run time errors. So I proceeded to download Crystal Report 2013. After install it, I still have run time errors. The zip file for Crystal Report 2013 is 51048298. It supposes to install 14.1.4.1327. But it did not show up in VS2013. All I see in VS2013 is 13.0.2000.0 (from  the free developer version) and 10.5 ( mine original version).

 

Did I do anything wrong? What is the correct path to upgrade? Is Crystal Report 2013 working with VS2013?

Crystal Reports Toolbar buttons not showing on a web page

$
0
0

I am using Visual Studio 2012 and the latest Crystal Reports .NET version 13.0.12.1494. In the design view (when i design an ASP page) the buttons show and in IE or Firefox they don't. I attached two pictures to this issue.

Adding a Progress Bar Crystal Reports 2011

$
0
0

Hello,

 

I am a registered User of your Crystal Reports 2011.

 

I’m wondering if someone can please tell me how to add or activate a ‘Progress Bar’ on my crystal reports, so when it is processing in crystal viewer I’m aware of its status to completed.

 

Thank You

Export CR as email attachment

$
0
0

Hi all

 

Does CR / CR Viewer comes with built-in functionality to export report as PDF attachment in Outlook or other email client? If it doesn't, can you point me to articles or thread that have this covered?

 

A seemingly related thread at email with attachment but it looked complicated.

 

The current project was developed in VS 2010 C# and I took over now using VS 2013 C# and I was tasked to refactor and add more functionality.

Our past programmers used the method blogged at, Programmatically adding attachments to emails in C# and VB.NET - CodeProject

to achieve the outcome. However the viewer will freeze and the software may crash randomly every time the button is clicked.

Temp files locked and never deleted

$
0
0

This morning I've received form a service that create automatically reports an alert with the following exceptions attached:

I'm using Crystal Report v.13.0.12.1494.

 

Exception:System.IO.IOException

Message:File exist.

StackTrace:   in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   in System.IO.Path.InternalGetTempFileName(Boolean checkHost)

   in CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

   in CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

   in CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

   in CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)

 

This exceptions is documented in .NET and is  raised when the temp directory reach the limit of 65535 files.

In my case the directory was not the windows/temp but the c:Users/Administrator/AppData/Local/Temp

The directory was full of .tmp and .rpt files created from Crystal Report when is called the function ReportClass.Export(ExportOptions expOptions)

Cleaning the directory I've notice that many files was locked by the service from the last start.

What I'm asking is why crystal report doesn't delete the tmp files periodically, or immedialtlly after has been created?

Could be this lock also the source of the error 'The maximum report processing jobs limit configured by your system administrator has been reached'?

 

Edika

Viewing all 2556 articles
Browse latest View live


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