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

Issue in Crystal Report

$
0
0

I am extremely beginner on Crystal Report.
I have some questions regarding Crystal Report and Microsoft Dynamics GP2013R2 (Dex 12.0)
I have Microsoft Dynamics GP sample code for how to run Crystal Report from GP. Unfortunately, I couldn’t able to run this code successfully.
Below is the sample code:

local reference Report,crxApplication;
crxApplication = COM_CreateObject(“CrystalRuntime.Application.11″);

I am getting an EXCEPTION_CLASS_OBJECT_EXCEPTION error on –>crxApplication
I am using Crystal Report version 13.0.

Which version of Crystal Report needed for Dexterity 12.0? what is the solution for solving the issue.?

Thanks in advance..
Regards,
Sathiya


Read and Write protected memory issue

$
0
0

Hi,

 

I have added a Crystal Report Viewer in my Custom Report page. I'm using Data Set as a data source. The page is loading fine with report data first time. I When i click the next page button it is started loading the report forever. I could not stop the loading. When i refresh the page i'm getting the following error message.

 

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

 

My page has 4 check boxes with different Report name. Based on the Report check box selection, first i'm loading the Data set then assigning into Crystal Report Viewer. First time the report loading fine(with the paging issue). When i select the next report check box and load the report, i'm getting the same error.

 

Please help me to fix this issue.

Crystal Reports for Visual Studio 2013 needs VS2010???

Database Vendor Code 102

$
0
0

So I am getting the below error.

 

 

 

CRdberror.png

 

 

I have verified the database in my report several times and reset the datasource location.   The report run a preview just fine.  So that seems to tell me that it has no problem connecting to the database and running the sql query.

 

I am loading and sending parameters to the report as follows...

 

        parmPCname = Session("pcname")

        parmReportDate = Session("productionDate")

        reportPath = Server.MapPath("MakingDuration.rpt")

 

 

        newMakingDuration.ReportDocument.Load(reportPath)

        newMakingDuration.ReportDocument.SetDatabaseLogon(username, password, server, database)

        newMakingDuration.ReportDocument.SetParameterValue("pcname", parmPCname)

 

 

 

I am using CR version 13 patch 10 in VS2013

 

 

 

Anyone have any ideas on the above error message?

 

 

thanks

 

 

doug

Crystal reports - Load Report Error/ Out of Memory Issue

$
0
0

Hello,

 

We are getting Load Report Error when a user tries to generate a report while the memory gets close or passes 600Mb. We were monitoring the memory usage of the server and the memory does not go down after pages are closed. We are currently forced to restart the IIS to get resources released.

 

We are using Visual Studio 2012, .NET 4.5, Telerik and CR 13.07 and the deployment server is 2003. Is there anything we have to do to solve the CR crash related to the memory issue?

 

Thanks,

Henock M.

Runtime v13.0.6.1027 causing Load Report Failed on Citrix Receiver v13.4.0.25

$
0
0

With the installation of SP6 runtime, our clients that connect via Citrix are getting the following Load Report Failed message:

 

LoadReportFailed.jpg

 

In order to fix, they must change their Citrix Connection Session Security for Files to Full Access.  And, apparently, even if this Files setting is correct, they still cannot create files on the root of their C: drive, so they must create a new folder on their C: dirve and save any files to that folder.

 

I saw this discussion Crystal report error while loading the file and Don stated:

 

"Hello,

 

It's exactly what it says, the path to the report is not correct, user does not have permission to it or it simply doesn't exist.

 

Check Citrix's Forum, there are known issues with it and CR.

 

Don"

 

Prior to our upgrade to V13.0.6.1027, we we used the Crystal 2008 runtime components to run reports, and had no issue.  Why, with this version of runtime does the access change?  We have many citrix users, and this has become a critical issue.

 

Can you please point me to the specific forum that states the known issues with Citrix and CR?

 

Thank you

Zebra printing

$
0
0

Hi,

 

 

I have a problem printing labels on a Zebra 105 S Printer,

Labels are 4cm X 2cm, 4 column, landscape orientation

 

If i define a report / stock with a single column label, it works fine and print landscape.

When i define a 4 label stock, print always occurs in portrait mode: I tried every combination of orientation (by report and by driver)

I also tried  "No printer" option.

I am using Crystal report 2013 sp1

 

 

Thank You

Enzo

Problem with vertical line combine with can grow text

$
0
0

Hi All,

 

I have problem with vertical line combine with can grow text. This case happen when the first detail of next page is grow up.

 

In page 105 the vertical line is to long. What should i do to fix this error ? Please help me ...

 

105.PNG

106.PNG


CrystalReportViewer Not Visible/Empty in ASPX Page??!!

$
0
0

Hi,

 

I have an aspx page that creates a report object, sets parameters and then sets the report source on a CrystalReportViewer control on my page.  I can step through the code and see that it is getting the report file, setting parameters, there are records returned to the report object but when it sets the report source on the viewer control and the page is done loading, the page is completely blank.

 

I am using Visual Studio 2013 and Crystal Reports 2011 (v13) on a Windows 2008 R2 64-bit server. The target framework is .NET 4.0 and the target platform is Any CPU.  Any help trying to figure this out would be great.  I've been stuck on this for over 2 weeks now.

 

I have attached the web.config and the aspx page and it's code behind below.

 

Thanks,

David

Crystal report printing error

$
0
0

Hi all,

 

I am trying to print crystal report (13.5) using javascript. We have web application using VS 2010. We are getting bobj undefined error. We have even copied the crsytalviewer13 file to our root location and also made the necessary entries in web.config.

                                                                                                                                                              Please let me know for any solution on this issue. Thanks,

login failed

$
0
0

Hi to all...

I have problem with subreport logon...

I have app running on one pc with SQL2005Express installed on that machine. Reports are working fine, with logoninfo or without it, with setting logon details for each subreport or with no setting.

Over mapped drive other users are starting that same app and they get log on error on reports with subreports. Reports with no subreports are working fine. Been everywhere, tried everything....

Subreports and main report are SQLNCLI...installed that on all machines starting app...

Tried to change provider in code....no luck.

Form with crystal print preview is opening but it is asking for uname and pwd...If I type them or choose integrated security, still the same.

 

I'm using VS2010

my code:

Dim oRpt As New rptKalkulacijaCene

                myConnectionInfo.AllowCustomConnection = True

                myConnectionInfo.ServerName = sServer

                myConnectionInfo.DatabaseName = "Oktan"

 

                If My.Settings.CNN.Contains("Password") Then

                    Dim builder As New System.Data.SqlClient.SqlConnectionStringBuilder(My.Settings.CNN)

                    myConnectionInfo.Password = builder.Password

                    myConnectionInfo.UserID = builder.UserID

                Else

                    myConnectionInfo.IntegratedSecurity = True

                End If

                myConnectionInfo.Type = ConnectionInfoType.SQL

                Dim myTables As Tables = oRpt.Database.Tables

                For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables

                    Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo

                    myTableLogonInfo.ConnectionInfo = myConnectionInfo

                    myTable.ApplyLogOnInfo(myTableLogonInfo)

                    myTable.LogOnInfo.ConnectionInfo.ServerName = myConnectionInfo.ServerName

                    'For i As Integer = 0 To myTable.LogOnInfo.ConnectionInfo.LogonProperties.Count - 1

                    '    If myTable.LogOnInfo.ConnectionInfo.LogonProperties(i).name = "Provider" Then

                    '        myTable.LogOnInfo.ConnectionInfo.LogonProperties(i).value = "SQLOLEDB"

                    '    End If

                    'Next

 

 

                Next

                Dim subReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument

                Dim subReports As CrystalDecisions.CrystalReports.Engine.Subreports

                subReports = oRpt.Subreports

                For i As Integer = 0 To subReports.Count - 1

                    subReportDoc = subReports(i)

                    For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In subReportDoc.Database.Tables

                        Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo

                        myTableLogonInfo.ConnectionInfo = myConnectionInfo

                        myTable.ApplyLogOnInfo(myTableLogonInfo)

                        myTable.LogOnInfo.ConnectionInfo.ServerName = myConnectionInfo.ServerName

                    Next

                Next

 

 

                    oRpt.RecordSelectionFormula = "{vw_sintetika_analitika_rpt.id_godine}=" & iPoslovnaGodina & " and {vw_sintetika_analitika_rpt.TipDokumenta}=" & eTip & " and {vw_sintetika_analitika_rpt.BrojDokumenta} in[" & lblKombinacija.Tag & "]"

 

 

                    Dim bTree As Boolean = False

                    Dim x As New Form2

                    bTree = True

                    x.CrystalReportViewer1.ReportSource = oRpt

                    x.CrystalReportViewer1.ShowGroupTreeButton = bTree

                    x.CrystalReportViewer1.DisplayGroupTree = bTree

                    x.ShowDialog()

 

 

Any suggestions?

Error in File - Unable to connect: incorrect log on parameters.

$
0
0

Hello, I am getting a problem when download report as Pdf file. It shows error named "Unable to connect: incorrect log on parameters."  why i am getting this error, before report was downloading without any error.

Crystal Viewer Prompting for Parameters When Clicking Any Banner Button

$
0
0

Folks,

 

Windows Server 2008 R2

IIS 7.5

Crystal Reports 13.0.9.1312

 

I'm up against a tough problem that I have not been able to find any specific documentation regarding. We have an ASP.NET page that hosts a Crystal Viewer object and we pass the report path through the URL to the page. The viewer takes the path, assigns it to the ReportDocument, loads it, and in the loading process, prompts the user for any parameters. It is very basic and has worked for years. Below is a truncated view of the code:

 

Dim strReportSource As String

Public rptDefault As New ReportDocument


strReportSource = Request.QueryString("ReportSource")

rptDefault.Load(strReportSource)

crvDefault.ReportSource = rptDefault

 

We recently moved the server from an old Windows 2003 server to a newer Windows 2008 R2 server running IIS 7.5. The site is a second site on the server, using a virtual directory. We initially had difficulties getting the report viewer to work on the second site [it works flawlessly on the site in the wwwroot directory] and had to edit the web.config file to point explicitly to the crystalreportviewers13 directory in the virtual directory of the second site.

 

Up until the move, reports prompted users for parameters, displayed, printed, and exported using the Crystal Viewer without issue. On this new, second site, the reports will prompt the user for parameters and display, but clicking any of the buttons in the Crystal Viewer menu bar will prompt the user for parameters again.

 

When clicking the print button, an error message stating, "An communication error occurred. Printing will be stopped." is displayed.

 

Running Fiddler while using the Print button, I see the following error listed: System.Runtime.InteropServices.COMException: Missing parameter values.

 

If the report does not have parameters, the print, export, navigation tree, back and forward buttons all work fine.

 

And to be clear, all aspects of the Crystal Viewer work fine on the primary site on this server, it is just on the second site for this server that the error and lack of functionality manifests itself.

 

I'm hoping someone has some insight into this.

Remove only 'Database' from DataSourceConnection Logon Properties

$
0
0

Background: winform app using Cr for VS (SP10), VS2013, ODBC connection to SQL Server.

 

Using Crystal Reports Designer, Set Data Source Location, one can manually blank out just the 'Database' property for an ODBC data source. This causes the Database property to be removed from the connection properties. I need to achieve the same effect in code (just at runtime, no need to permanently update the rpt).

 

Testing with a simple report with a DataSourceConnection(0) that has 3 Logon Properties (Database, DSN, and UseDSNProperties).

                Dim MyReportLogonProperties As NameValuePairs2

                MyReportLogonProperties = ReportN.DataSourceConnections(0).LogonProperties.Clone

                MyReportLogonProperties.Remove(MyReportLogonProperties.LookupNameValuePair("Database"))'

                '  note: at this point the number of LogonPropeties in the clone is indeed down to 2.

                ReportN.DataSourceConnections(0).SetLogonProperties(MyReportLogonProperties)

               ' at this point, there are 5 LogonProperties: DSN, PreQEDatabaseName, PreQEServerName, Trusted_Connection, UseDSNProperties

 

I believe the PreQEDatabaseName that is added for some reason by the runtime is blocking the attempt to remove the 'Database' property.

 

To recap: is there a way to remove just the 'Database' property from the LogonProperties of a DataSourceConnection?

HELP NEWBIE Integrating CR into Visual Basic 2010 pro

$
0
0

I am creating reports in CR for ms visual studio(VB) how do I do this I am lost. I do not understand how to have a menu written in vb. A menu with reports that a user can select which report to run. I have been tring to do this for weeks. I am using SQL which is on a MS SBS. Any help would be grateful.

Thanks

 


Load XML File Into Report

$
0
0

We are attempting to load an XML file through the API into Crystal Reports 13.  We are using this code:

 

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

          rptDoc.Load(@strTemplateLocation);

 

 

DataSet ds = newDataSet();

ds.ReadXmlSchema(@strXSDLocation);

ds.ReadXml(@strXMLLocation);

rptDoc.SetDataSource(ds);

 

try

{

    rptDoc.Export();

}

catch(Exception ex)

{

    ExceptionManager.InsertException(ex);

    throw ex;

}

 

 

When we execute this code we get "Failed to load database information"

 

The RPT was built using the same schema and XML file.

 

How best to use the API to load complex XML files that work in the designer using the XML and Web Services Connection?


Thanks,

Tom

sap crystal report for visual studio print error

$
0
0

vs.net 2012 crystal report paper size 8.5in x 5.5in orientation portrait will not print properly. Always it prints landscape

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

$
0
0

I am creating a Visual BASIC .Net windows application in Visual Studio 2013.

 

I have set up a Crystal Report to use the dataset in SAP Crystal Reports 2011.

 

The Visual Basic .Net application is not using the Crystal Report Viewer.  It is using the Report Document class to export the report to a PDF and/or Excel file.  SAP Crystal Reports for Visual Studio has been installed.

 

The error message "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception." occurs when running the application on a separate Windows 7 system.

 

I used InstallShield Express to create the setup package for the Visual BASIC .Net Windows application.

 

I have ran the setup package on a separate Windows 7 system.

 

The Windows application runs to the point that it shows the window for the application.  As soon as I click on the Run Report button, the error occurs.

 

Here is the code for the button:

 

        strProcedure = "btnRunReport_Click"

        Try

            Dim reportDocument1 As ReportDocument

            reportDocument1 = New ReportDocument()

 

 

            'reportDocument1.FileName = strCurPath + "\PlexACCPriceReport_2.rpt"

 

 

            If IsNothing(reportDocument1) Then

                MsgBox("reportDocument1 is Nothing.")

            End If

 

 

            MsgBox("From Date is " & dtpFromDate.Text & vbCrLf & "To Date is " & dtpToDate.Text)

            'reportDocument1 = Nothing

 

 

        Catch ex As Exception

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

                        "Procedure: " & strProcedure & vbCrLf & _

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

            MsgBox(strErrorMsg, MsgBoxStyle.Critical)

        End Try

 

The error occurs on the following line of code:

 

            reportDocument1 = New ReportDocument()

 

What do I need to do to resolve this problem?

CR 2013 Runtime, VS 2012 and OutofMemory exception

$
0
0

Hi,

 

We have recently migrated from VS 2008 to VS 2012 and so crystal reports for VS also moved to 13.0.9 version. Now one of the issues we are seeing from our web application deployed in production on IIS 6.0 on Win 2K3 is that when a module without any connection to crystal reports etc hits an exception of "out of memory", then everything else related to crystal reports stops working and it continues to throw Load report failed error message (in the event viewer on the server.) Has anyone reported this kind of error and what steps need to be taken to address? This also forces me to reset IIS which means users are forced logged out of the web application though they may have not been doing anything in crystal reports at all.

 

Thanks,

Surya

Crystal report print option does not support in google chrome

$
0
0

I have inegrated SAP crystal report version 13.0.2000.0 in visual studio 2010.Its crystal report viewer print option working properly on IE and Firefox

but its not working on Google chrome version 36.0.1985.125 m

Please suggest me how to solve this problem

Viewing all 2556 articles
Browse latest View live


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