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

Optional Parameters didn't work

$
0
0

Hello

I've tried to handle optional parameters in our application, but it didn't work.

 

I've checked everythink on sap.com and have no more idea.

 

I've done this:

if (reportDocument.DataDefinition.ParameterFields[j].IsOptionalPrompt)

{

           reportDocument.DataDefinition.ParameterFields[j].CurrentValues.Clear();

           reportDocument.DataDefinition.ParameterFields[j].CurrentValues.IsNoValue = true;

  }

 

But when I start the CrystalViewer, it will asked me for the parameter.

 

When I try to print direct with:

 

reportDocument.PrintToPrinter(printerSettings, new PageSettings(), false);

 

I will get the missing-parameter-Exception:

 

CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Fehlende Parameterwerte. ---> System.Runtime.InteropServices.COMException: Fehlende Parameterwerte.

 

In the report I will check the parameter before Dataselektin with:

HasValue({?Parameter})

 

(When the parameter is not used in any formular of the report, it will work.)

 

So what can I do?

 

Kind regards

 

Dirk

 

I'working with:

Visual Studio 2010 and

CRRuntime_32bit_13_0_1


Problem reading contents of xi4_rassdk_net_dg_en.chm

$
0
0

I am trying to get started using Crystal Reports for Visual Studio (2013). I have downloaded the SDK and now I am trying to read the recommended documentation. It comes in the form of the file

 

          xi4_rassdk_net_dg_en.chm

 

However when I open it on my PC (or any of my servers) I see no content other than the topics, and no error messages. I am running Windows 7 and Server 2012 on other machines. Can anyone tell me what is wrong? Many other CHM files on this PC run fine. I am opening it from my hard drive -- not a network share.

Problems reading SAP CR4VS CHM.gif

Report Template File Name Exceeds 46 Characters Issue

$
0
0

Open report template ... ReportClientDocument.open() C:/AB/CDE/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.rpt  ==>(file name length (file name length >= 47 chars) This throws the following exception: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The system cannot find the path specified. ---- Error code:-2147467259 Error code name:failed Note that this issue was happening with SAP CR 2013.  But without issue with SAP CR XI. Please help to advise. Thanks in advance. Anh

ReportDocument.Rows.Count is returning DISTINCT count

$
0
0

I've got a large number of reports, and on these reports are a list of ID numbers that have need a document mailed out. Some of the time there are multiple entries for the same ID number as they need multiple documents mailed out.

When I use ReportDocument.Rows.Count in the C# CrystalReports Engine to return the count of ID numbers it gives me a distinct count, not total count regardless of duplicate entries.

Is there any known work around to this?

PJL displaying on Crystal Printing for certain printers

$
0
0

Hello,

I have a created an application that prints a Crystal Report straight from it.

This is used by a client of mine.

 

We have found that on certain printers, the report will print PJL code in between the report.

 

For example:

 

EDDI

111 Tester Road

Jackson, TX 11111

 

                              @PJL SET JOBNAME="Crystal Reports - Report Name"

EDDI

111 Tester Road

Jackson, TX 11111

                          @PJL SET COMMENT="HP Photosmart  6510 series; Windows  Vista 6.3  "

This should only show the first three lines and then continue with the Crystal report.

 

Does anyone know what could be causing this?  Is it the printer, the Crystal Report or the program?

 

Thanks for your help in advance!!

Eddi Rae

Crystal Reports 13.0.1.220 Push Method Not Working Windows Server 2012 R2 x64

$
0
0

Hello All,

We have Migrated our application from Windows Server 2008 R2 x64 to Windows Server 2012 R2 x64.

We have 300+ Reports with our application all reports are working except two reports which have used push method for datasource of report.

 

Previous Server and Application Configuration

 

Windows Server 2008 R2 x64

CR version Crystal Reports 13.0.1.220

Application developed in asp.net c# 4.0

Web.config is also same

 

Current Operating System

Windows Server 2012 R2 x64.

CR version Crystal Reports 13.0.1.220


Please help me.

IIS 7 , 2008R2, asp.net 1.1, crystal report version 11, not working

$
0
0

We have upgraded to IIS 7, 2008R2 and have an asp.net 1.1 application that has crystal reports imbeded in it, version 11, but do not have all the source code.  The application runs ok, but when running any crystal report it fails with the error below.  The application references crystal version 11.0.3300.0 - so we have installed version 11.  Is there any work around to get this working?

 

Thanks
Dennis Corbett

 

 

 

 

[NullReferenceException: Object reference not set to an instance of an object.]

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

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

   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +218

 

[Exception: Load report failed.]

   Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn) +798

   Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +23

   JGCI.GCICmtRpt.Page_Load(Object sender, EventArgs e)

   System.EventHandler.Invoke(Object sender, EventArgs e) +0

   System.Web.UI.Control.OnLoad(EventArgs e) +67

   System.Web.UI.Control.LoadRecursive() +35

   System.Web.UI.Page.ProcessRequestMain() +750

Crystal Report Issue

$
0
0

We have an application that was built in ASP.net 1.1 and uses Crystal Reports 10.3. The site is working to this day on Windows 2003. In an effort to upgrade all servers to window 2008 R2 we have migrated the website to a new server. We have installed all of the dependencies necessary to run the ASP.net 1.1 application in a 2k8 environment. So far everything is working except any functionality that is dependent on Crystal Reports. We have also installed all of the required modules for CR to run. Whenever the application tries to call the CR.dll's it errors out.


SAP Crystal Reports for Visual Studio 2013 do not work on the production server

$
0
0

Hello,

 

I installed Crystal Reports for Visual Studio 2013 and they work fine on my local computer.

 

However when I deploy the website I am getting the error below:

 

Failed to open the connection. ReportName {6BB09179-0FC4-4F27-9EF2-F70776FF5D9C}.rpt

 

Event Log messages:

 

The description for Event ID 4353 from source Crystal Reports cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

 

The following information was included with the event:

 

The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.

 

the message resource is present but the message is not found in the string/message table

 

 

I installed CRRuntime_64bit_13_0.msi on the production server.  It did not solve the problem.

I can't install CrystalReportsForVisualStudio.msi.  I am getting the following error: "You must already have VS installed to proceed with this installation".

The aspnet_client folder exists in both wwwroot and website folders.

I tried setting "Enable 32-bit Applications" (in the Application Pool) to true but I am getting errors.

I tried running the website as: LocalSystem, LocalService, NetworkService, ApplicationPoolIdentity.  None of them work.

Why do I need Visual Studio on that server?  Is there another way to make this work? 

I was also looking for BusinessObjects.Licensing.KeycodeDecoder.dll.  The dll exists on my local computer (C:\Windows\assembly) but it is missing from the server.  I can't find it anywhere though...

 

Any help would be appreciated.

 

Thank you.

Exporting to PDF not hang sometime.

$
0
0

I am wondering if anybody has solution. I am exporting Crystal report to pdf by clicking .net button. Everything works fine and some time not as  it keep looping on the server(hang). if  we reset the iis server it works again fine. . Any solution...

How to copy Visual Studio Crystal Report to another PC?

$
0
0

I need to copy Crystal Reports from Visual Studio Pro 2010 on a Windows XP PC to Visual Studio Pro 2013 on a Windows 7 PC. The reports are integrated into solutions I am recreating in the new environment. Does anyone know a way copy a complete report from the old PC to the new PC and upgrade it to the Visual Studio 2013 Crystal Reports version. I dread having to create the reports from scratch. Thanks.

Problems with the Crystal Reader for .NET Overlapping Fields

$
0
0

SAP Crystal Reports runtime engine for .NET Framework (64-bit) version 13.0.14.1720.

 

We are using a report scheduling suite called rePORTAL.  It is a .NET web application and uses the .NET Crystal Reports Viewer to view Crystal Reports.  We have some reports that work fine when sent to PDF.  But when we save them as Crystal Reports and try to view them in the viewer, some of the large fields bleed over into the text below them.  These fields have "can grow" checked and "0" selected for the lines, so they should not be limited in size.  The fields are placed in separate Detail sections so that they won't overlap the next section.  Nevertheless, they do overlap.

 

Has anyone had this problem and is there a solution?

Crystal Report Server 2008, High CPU Consumption and Slow Response, when .Net WCF Web Services used as Data Source and concurrent users exceeded to more than 5 for same report

$
0
0

Hi,

 

We were porting some of our crystal reports to use .Net WCF web services as data source. The whole work flow of reports execution is as follows:

 

1. From a WPF UI, residing on End user's machine, report printing request is initiated  when user clicks the print button on the UI.

 

2. The request along with report parameters values is posted to our web server hosting a our WCF 4.0 web services. The web service, responsible for printing receives the request and starts a thread which submits the report printing request to the Crystal Server (2008) and waits for the report. Once received, it either redirects the report to the selected (by the user) printer or back to user's machine as PDF.


3. The Crystal Reports Server 2008 is deployed on another server and handles the reports printing requests from our web services.


4. The Crystal Report being printed is designed in Crystal Reports Designer 2008. It has following structure

     a. A header, which is a sub-report with a constant string and image. It also has a formula which controls hiding or displaying a watermark. There is no database or any other external data source connection in this report.

     b. Its body has a connection to WCF Web Service. The response objects as defined in the operation and data contracts are attached the report and their fields are attached to the report fields.

     c. A footer, which is again a sub-report with all constant strings. There is no database or any other external data source connection in this report.

 

5. The report body as mentioned above, is responsible to get data from web service and render that data on the report.

 

6.  The Web service data returned as one object containing a header object and a collection of detail objects. So the mapping to reports fields is very straight forward.

 

Now it is observed that when more than 5 users tried to print that report @ e.g. 11:00 p.m then following happened:

1. CPU usage shoots to 100%

2. Report submitted and started @ almost 11:01 p.m.

3. As per web services server log, no request for data from crystal reports server is received as yet.

4. At around 11:10 pmweb services server log, shows that it received a request from crystal reports server and web service finished within few hundred milliseconds and returned.

5. Almost the same time i.e. 11:10 pm the report finished and returned.

 

We could not figure out

1. What crystal report server is doing between Report Start and Web services call. i.e. almost 10 minutes because the CPU usage was 100% through out that period.

2. Definitely it is not doing any type of report rendering because it should happen after the web service call.

3. We have tried Blank Report (with only Web Service connections), removed verify database connection, no printer etc but nothing worked.


We are investigating to install all missing service packs but as per release notes of service packs (2 to 7 for us) I don't see any targeted fix for it.  Please let us know if any one have encountered this problem or could recommend any area which needs further exploration.


Thakns

Dynamic page control?

$
0
0

Dear Experts,

 

I'm using Crystal report 13.0.7 with wpf application  and I want to control page length by vb.net code and printer independent, i have write some logic but not fount result as i wish.

Please guide me what is missing......

 

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

Dim report As New ReportDocument

Dim billrpt As String = "\print\blkprt.rpt"

 

report = New CrystalDecisions.CrystalReports.Engine.ReportDocument ' ReportDocument

report.Load(billrpt)

 

report.SetParameterValue(0, Ser) 'Bill Serial

report.SetParameterValue(1, Invno) ' Bill No

report.SetParameterValue(2, Invnodt) ' Bill Date

 

Dim PkSize As New System.Drawing.Printing.PaperSize

 

Dim wd As Integer = 8.50

Dim hd As Integer = 6.00

 

report.PrintOptions.DissociatePageSizeAndPrinterPaperSize = False

 

PkSize = New Printing.PaperSize("manoj", wd, hd)

report.PrintOptions.PaperSize = CType(PkSize.RawKind, CrystalDecisions.Shared.PaperSize)

report.PrintOptions.PaperOrientation = IIf(report.PrintOptions.PaperOrientation = PaperOrientation.Portrait, CrystalDecisions.Shared.PaperOrientation.Portrait, CrystalDecisions.Shared.PaperOrientation.Landscape)

 

report.PrintToPrinter(1, False, 0, 0)

 

report.Close()

report.Dispose()

 

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

Thanks

Manoj Patel

IDAutomation font is not displaying on client machine crystal report

$
0
0

I am using IDAutomation Code128 UFL and i have created barcode in crystal report as per in the following link,

 

Crystal Reports Barcode Font UFL | Tutorials

 

Everthing working fine in my local machine. After i deployed into the server i can not able to view barcode in client machine crystal report viewer. It's working after i installed IDAutomation code128 font in client machine. Is there any option to display barcode in crystal report viewer without installing font into the client machine?


CR13 with SP14 - Text display problems

$
0
0

Hello everyone

 

I am new into this discussion sections of the website.. First I would like to apologize for my english, it's not my first language.

 

I am using Crystal Report with VS2013 to make my own little applications I use daily for my job !

 

Today I opened Visual Studio 2013 to edit an existing report I made like months ago and the textfield and also all the database field are showing not correctly and makes every fields size too large..

 

Check screenshots for more informations: (Sorry if its in french ) but you can clearly see the display problem.. and of course the display problem also occurs in my applications.. all reports are now under this style..

 

Screenshot_1.png

Result in application : The textfield is suppose to show "Téléphone / Fax" but since my problem appears, the word FAX is not showing anymore.

This is a basic report, but in some cases, my text/db fields are not that large.. so the display is worst than this one.

ss3.png

CR2011 is an 32bit app? Why it has 64bit runtime?

$
0
0

We are upgrading our product from 32bit to 64bit.

 

Once in our 32bit product, we provide an 32bit OpenAccess data source to let CR2011 to create Crystal Report by connecting to the 32bit OpenAccess data source via ODBC.

 

Now for our 64bit product, we provide an 64bit OpenAccess data source, now we cannot use CR2011 to connect it because the ODBC administrator 32bit will be invoked via ODBC.

So we want to search to see if there is CR2011 64bit, there is 64bit runtime installation, but there is no help for the above problem. Would you please help to give us some suggestion? Thanks a lot!

Retrieving the subreport record count

$
0
0

Hi,

 

We are using the SAP Crystal runtime for Visual Studio, SP 14 and we are attempting to retrieve the count of records in a subreport, but are unable to do so because the Rows.Count always returns a value greater than 0 even when no data are returned by the subreport.

 

Sample code:

 

Private Function SubreportHasData(ByVal reportDocument As Object) As Boolean

 

Dim sections As Object = reportDocument.ReportDefinition.Sections

For Each section As Object In sections

    Dim reportObjects As Object = section.ReportObjects

 

    For Each subReportObject As Object In reportObjects

If subReportObject.Kind = 5 Then

Dim subReport As Object = subReportObject.OpenSubreport(subReportObject.SubreportName)

If subReport.Rows.Count > 0 Then Return True

End If

    Next

Next

 

Return False

End Function


When checking many of the subreport object properties in the IDE, we noticed most of the message values either contained an exception message or that they are not supported in subreports.


Is there a more appropriate property to use?


Thanks.

License for this?

$
0
0

Is there a license for SAP Crystal Report for Visual Studio 2012, and where is there information for it on the site? I can't find any specific info.

Crystal Reports - programatically create a new group

Viewing all 2556 articles
Browse latest View live


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