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

Need help with Crystal Reports install for Visual Studio 2012

$
0
0

I'm currently running Windows 7 - 32 bit operating system. After installing Visual Studio 2012 I'm attempting to install Crystal Support Pack 5 (latest) and am encountering error 2753 agent.exe.6ED28686_7B19...

 

I've tried everything the web recommends but can't get past this error. I've tried re-creating temp folder and also using Transform to get past the error. Transform will not work when directed to the setup.exe file but does work when pointed to the msi file. Your web page however, clearly states running the msi alone will not completely install the product. Any help would be appreciated.

 

Steve.


Error in .Net with GetSqlStatement

$
0
0

Hello,

 

when i try to use GetSQLStatement on a report I have an error message "Unable to connect incorrect logon parameters" in french :

 

Echec de la connexion.

Erreur dans le fichier RAPPORT-ANAL {AF7210B3-B249-4A66-84C9-837220A9C3E9}.rpt :

Connexion impossible : les paramètres de connexion sont incorrects.

 

and the error code is -2147217393

 

Environment :

- Windows 7 Professionnal SP1 64 bits (french version)

- Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel

- Microsoft .NET Framework Version 4.5.50709 SP1Rel

- I use an ODBC Text Driver and data are saved with the report

- Version of DLL's are13.0.2000.0

- Link to the DLL's : C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI                                                             4.0\win32_x86\dotnet\CrystalDecisions.ReportAppServer.Controllers.dll

- Target Framework : 4.0

- Compile Target : Any CPU

 

This is the VB .NET code :

 

    Private Function getSQL2() As String

        ' Declarations

        Dim boReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

        Dim boReportClientDocument As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument

 

        Dim boRowsetController As CrystalDecisions.ReportAppServer.Controllers.RowsetController

        Dim boGroupPath As CrystalDecisions.ReportAppServer.DataDefModel.ISCRGroupPath

 

        ' Load the report from the application directory

        boReportDocument.Load("D:\Crystal\Reports\RAPPORT.rpt")

 

        boReportClientDocument = boReportDocument.ReportClientDocument

        boReportOptions = boReportClientDocument.ReportOptions

   

        boRowsetController = boReportClientDocument.RowsetController

        'boRowsetController.Refresh()

        boGroupPath = New CrystalDecisions.ReportAppServer.DataDefModel.GroupPath

        Return (boRowsetController.GetSQLStatement(boGroupPath))

    End Function

 

 

Joël.

Crystal report alignment problem on text object in production server

$
0
0

I have this web application that uses crystal reports for VS2010. I have crystal reports service pack 2 installed. What i don't understand is that everything works fine in the development machine however, once i publish my report to the production server, all the textboxes that have more than one word in them are disaligned. I mean, the next word scrolls down. This looks really bad if its a heading row, as the heading start overlapping the details rows.

 

I understand that it has something to do with the crystal report versions, as suggested in other discussions. However i have checked the crpe32.dll version on this location C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86 and it is 13.0.0.99 in the development machine as well as the production machine. So technically, the version is 13.0.0.99

 

Here is the page directive of the ASP.NET page that has the crystal report viewer in it.  and presumeably the version i am refering is 13.0.2. I don't know if it is the right way of doing it or not.

 

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

but i am not having the headings aligned properly. Can somebody help please?

VS 2010 ClickOnce App does not work on Win 7 x64

$
0
0

Use VS 2010 on 32-bit machine to create a ClickOnce app that uses Crystal Reports; the app targets x64 but with no prerequistes checked. The project includes references to these four Crystal libraries, but does not copy to local:

 

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportSource

CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

 

The development machine has got CRforVS_13_0_5.exe installed.

 

On a freshly-built  Win 7 x64 computer, with .NET Framework 4.0 (Client and Extended) installed, along with the latest Microsoft updates, install CRRuntime_64bit_13_0_5.msi from CRforVS_clickonce_13_0_5.zip.

 

Install the ClickOnce app - this message is displayed:

 

"Unable to install or run the application. The application requires that assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first"

 

On exploration of the Win 7 x64 computer, there is indeed no such file in the GAC.

 

The only location on the computer that has Crystal files is:

 

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

 

This location does not contain any file whose name starts with CrystalDecisions.

 

I have also tried the above test on a clean machine with the install file from CRforVS_redist_install_64bit_13_0_5.zip - same result.

 

Has anyone else got a different result?

 

Have I missed something out?

Alignment in Crystal Report for VS2012

$
0
0

I have a problem for alignment in Crystal Report for VS2012 C#, I am using Arabic design, always it come align to the left rather than middle or right (in the titles) ???

Crystal reports on the GUI

$
0
0

Hi misters,

 

Can you tell me please how to vizualise the Crystal Report and Xcelsius reports directly in the SAP GUI?

 

Thanks a lot.

Passing Values to Crystal Reports Enterprise at runtime.

$
0
0

Hi,

 

   I have several reports that I am migrating from 2011 to CR Enterprise. Here is the code that I am using to view the report using Crystal Report Viewer contraol in my web application.

 

sessionMgr = newSessionMgr();

enterpriseSession = sessionMgr.Logon("user", "psswd", "server", "Enterprise");

EnterpriseService enterpriseService = enterpriseSession.GetService("InfoStore");

InfoStore infoStore = newInfoStore(enterpriseService);

String infoQuery = String.Format("SELECT TOP 1 * FROM CI_INFOOBJECTS WHERE SI_PROGID='CrystalEnterprise.Report' AND " +

                                                  " SI_NAME LIKE '%{0}%' ORDER BY SI_Creation_Time desc", "TestProduct");

InfoObjects infoObjects = infoStore.Query(infoQuery);

InfoObject infoObject = infoObjects[1];

PSReportFactory factory = (PSReportFactory)enterpriseSession.GetService("PSReportFactory").Interface;

ISCRReportSource reportSource = factory.OpenReportSource(infoObject.ID);

this.CrystalReportViewer1.ReportSource = reportSource;

 

However when I try to set the parameters to the Crystal Report Viewer using the CrystalReportViewer1.ParameterFieldInfo, the code

does not seem to recognize the value I am setting programatically and the Crystal Native Parameter prompt keeps appearing.Here is the code that I am using to set the value.

 

ParameterFields pFields = new ParameterFields();

ParameterField pField = new ParameterField();

ParameterDiscreteValue disValue = new ParameterDiscreteValue();

disValue.Value = "TEST";

pField.CurrentValues.Add(disValue);

pFields.Add(pField);

this.CrystalReportViewer1.ParameterFieldInfo = pFields;

 

What am I doing wrong? where I can find some samples.

Printing Problem when using Visual Studio .NET 2008 crosstab report

$
0
0

Hi Everyone,

 

I'll put a disclaimer right now, this problem appears to be very specific.

 

We have a .Net 2008 program that we've developed in VB. The program makes use of many Crystal Reports reports. One of these reports is a cross tab style report that for the life of me I can't figure out how to print correctly. Here's what happens:

 

The cross-tab report is about 4 pages long. When printing to a physical printer, everything looks fine. When exporting to PDF with the built in export the page prints alright (although the fonts get messed up, thats not the realy problem)

 

When I print to PDF using a virtual printer (I've tried Broadgun PDFmachine, CutePDF and microsoft Image writer) the first page prints with a small section of the second page printed at the right margin. Likewise the second page has a a bit of the third page at the right hand margin and so on.

 

I've adjusted the margins as much as I'm able and can minimize the effect, but not fix it completely. It's like the the virtual page was loaded in the virtual printer about a 1/4 inch to the right instead of properly. Again, printing to a normal printer is fine.

 

If there are any settings I can try in Crystal or .NET I would love to know. I've tried multiple virtual printers of varying versions with the same result.

 

John.


Getting an 80070005 Access is denied error

$
0
0

I get a constant "80070005 Access is denied" error when attempting to deploy a report to the production server.

 

My report is in a subfolder named Reports, and is being called by a page within that folder named UsersReport.aspx. The report itself is named rptUsers.rpt. Its Build Action is set to none. I have copied the report to the server.

 

Everything runs fine on the local machine. It also ran properly on a local 32 bit Windows XP Pro box.

 

Here's the code:

 

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Public Class UsersReport
     Inherits System.Web.UI.Page     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load          Dim reportPath As String = (Server.MapPath("~\Reports\rptUsers.rpt"))        Dim rpt As New ReportDocument        rpt.Load(reportPath)        Dim connectionInfo As New ConnectionInfo()          With connectionInfo               .ServerName = "servername"               .DatabaseName = "database"               .UserID = "username"               .Password = "password"          End With          For Each table In rpt.Database.Tables               Dim tableLogonInfo As TableLogOnInfo = table.LogOnInfo               tableLogonInfo.ConnectionInfo = connectionInfo               table.ApplyLogonInfo(tableLogonInfo)          Next          crViewer.ReportSource = rpt     End Sub

End Class

 

Edited by: Ludek Uher on Jan 24, 2011 2:27 PM

The layout of crystal report parameter selection popup changes as soon as i add report viewer event to the aspx page.

$
0
0

The layout of aspx page changes as soon as i add any(Search,Navigate,Error,Zoom,Refresh etc) crystal report viewer event to the page. When no event of report viewer is added to the aspx page a model popup of report parameter selection criteria is prompted to select parameters, but when i add a report viewer event to aspx page the  report parameter selection screen doesn't prompt as model popup. I am using pull model of crystal report development.

 

Visual Studio-2010

Crystal reports 13.02

Windows 7

 

I am attaching the screens shots of apsx page with parameter selection criteria prompted before and after adding report viewer event"CrystalReportViewer_Error" to code behind..

 

I want the report parameter selection criteria screen to be as model pop-up even when report viewer event is added to codebehind. Please help me out its urgent.

Crystal Report 13.0 export issue

$
0
0

Hi All,

 

Currently we are migrating our server from windows 2003 x86 to windows 2008 x64 version with ASP .NET. The crystal report version we used in windows 2003 is Crystal report 12.x now we have installed crystal report 13.0.5 x64 version in windows 2008 x64 version. We have one issue which is making me crazy. To simulate the issue,

 

(1) Place crystal report viewer control in aspx page

(2) Bind and run the crystal report

(3) Click crystal report export button in the crystal report viewer screen. In the upcoming popup, select the report format and click export. File exports successfully

(4) Now without closing the crystal report viewer aspx page, click the export button again, select a report format (same or different). Click export. Now the bug is the file is not exporting. However this issue is not in crystal report 12.x. Also, when i close the crystal report viewer aspx and run the report again. I am able to export the report. Also, I noted that when you click the export button second time in crystal report viewer aspx (after first export is successfully done) the postback itself is not happening

 

 

Please help.

Crystal Reports XI & VS 2008 64 bits problem

$
0
0

I have an application with Visual Studio 2008 (Visual Basic) and reports with Crystal Reports XIDeveloper Edition.

Works fine under 32-bit platform but fails in 64-bit COM CLSID etc ....

 

I tried to load the project from a computer with 64-bit and the project fails.Not find the following references:

 

AxCrystalActiveXReportViewerLib11 COM Version 11.0.0.0 <The system can not find the reference>

CRAXDRT                                          COM Version 11.0.0.0 <The system can not find the reference>

CrystalActiveXReportViewerLib11     COM Version11.0.0.0  <The system can not find the reference>

 

I compiled the application forcing x86. No fails but not load the viewer.

 

Can you help solve the problem?

 

greetings

Printer Not Install, but they are there !!!

$
0
0

Hello

I'm usingCRforVS_redist_install_64bit_13_0_5inWindowsServer 2012. Framework4.5on clients

Runningaweb servicefor printing.

 

When I try toassigna printer withthe followingcode:

 

 

 

Dim pname AsString = ""

Dim foundprinter AsBoolean = False

ForEach pname In System.Drawing.Printing.PrinterSettings.InstalledPrinters

     If pname.Trim = NomeImpressora.Trim Then

          oRpt1.PrintOptions.PrinterName = pname

          foundprinter = True

     Exit For

EndIf

Next

 

"NomeImpressora" is the nameof the printerto print

 

I getan errorof "Noprintersareinstall"

 

Butthe printeris in the collectionofavailableprinters.

 

The following linksolvesthe problem, butthe solutionis notcorrectbecausethe printer isvisibleto the collection.

http://support.microsoft.com/default.aspx?scid=kb; en-us; 184291

 

Suggestions?

Crystal Reports 2008 Barcode fonts (code 128)

Printer dialog not appearing

$
0
0

We are using CR for Visual Studio SP 5, downloaded from the link below:

 

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_5.zip

 

We execute the report and it appears properly in DHTML Viewer. Print Mode is set to ActiveX. When clicking on the Print button using IE 9, the printer dialog appears properly. When using Firefox or Chrome, nothing happens. There is nothing displayed. Same issue when using IE 10.

 

Are there any other settings that need to be applied or does the ActiveX control only work with IE? How can we get the print dialog to appear for non-IE browsers?


Group by 2 fields

$
0
0

Hey everyone I have 2 fields, which for my purpose let's say are Name and Last Name

 

Now I wanna group, but I want the group to be shown as name and then last name not only one of the two. Is there a way to do this? Because in group expert you can only choose 1.

display the query results, horizontally on Crystal Report

$
0
0

Please help me.


Ihavedataina database tablelike this:

 

Brand          IMEI

Samsung      54356        
Samsung      54357
Samsung      54358
Samsung      54359
Samsung      54360
Samsung      54361
Samsung      54362
Samsung      54363

Nokia           65675
Nokia           65676
Nokia           65677
Nokia           65678
Nokia           65679
Nokia           65680

 


Is it possible todisplay, inCrystal Reportslike this?

 

Samsung
54356               54357          54358          54359          54360

54361               54362          54363


Nokia
65675               65676          65677          65678          65679
65680

 

Thank you.

Can't hide SidePanel - it only accepts bool?

$
0
0

Hello everyone,

 

I'm using the Crystal Reports Viewer Control to display reports in my WPF-Application.  I'm using version 13.0.3500.0 of DLL "SAPBusinessObjects.WPF.Viewer".

 

I want to hide the SidePanel of the viewer using

 

viewer.ViewerCore.ToggleSidePanel = SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None;

 

But I'm getting the error:

Cannot implicitly convert type 'SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind' to 'bool?'

 

If I use

viewer.ViewerCore.ToggleSidePanel = false;

the exception "Method not found: 'Void SAPBusinessObjects.WPF.Viewer.ViewerCore.set_ToggleSidePanel(System.Nullable`1<Boolean>)'." is thrown at runtime.

 

What am I doing wrong?

 

Thanks in advance,

Janina

To check whether the report is trusted connection or not against 300 report

$
0
0

Hi,

 

In our application we have more than 300 report. How i can check the reports(and subreports) are connected using trusted connection or not.

(During designing the report they may have created using window server authentication(trusted connection)).

I believe I cannot open 300 reports to check whether its a trusted connection or not. Its time consuming process.

 

Also if its text file we can easily search using keyword "Trusted connection" but reports are binary file it can only open through crystal

designer So we cannot search like that. Please find the attached snapshot for your reference.

 

Its any tool available to do the search.

 

Please help on this.

 

Thanks,

Soma

To check whether the report is trusted connection or not against 300 report

$
0
0

Hi,

 

In our application we have more than 300 report. How I can check the reports(and subreports) are connected using trusted connection or not.

(During designing the report they may have created using window server authentication(trusted connection)).

I believe I cannot open 300 reports to check whether its a trusted connection or not. Its time consuming process.

 

So if its text file we can easily search using keyword "Trusted connection" but reports are binary file, it can only open through crystal

designer So we cannot search like that. Please find the attached snapshot for the reference

 

Its any tool available to do the search.

 

Please help on this.

 

Thanks

Soma

Viewing all 3636 articles
Browse latest View live


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