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

Dynamic image in Crystal report 10.5

$
0
0

Hi

 

I am using Visual Studio 2008 with Crystal Report Basic 10.5.

 

I would like to add a signature image in the crystal report(pdf,word,excel formats) while generating the report. This image is stored as byte array in the database. The report already have a datasource, so I wish to set this image as parameter field.

 

 

There is no option found in the OLE object to set the image source dynamically.

 

The window platform is 64 bit.

 

Is there any way to achieve this with Crystal report 10.5.

I cant upgrade the Visual Studio 2008 to higher version as of now due to the project requirements.

 

Kindly provide me the ways to do this.

 

Many Thanks,

Priya


Crystal Export Error - The file is in use by another application

$
0
0

When running two Crystal reports, I'm currently seeing the attached error "The file is in use by another application". This issue started to occur mid/late July 2015. This issue is only occurring on 4 machines. The problem machines we replicated the issue on currently has all anti-virus software disabled and there hasn't been any automated processes or scheduled tasks currently running on the machines. When the user logs into another machine that doesn't see this issue, these two reports are able to be previewed and printed as well. The problem machines are running Windows 7 and are 32 bit machines. The machines seeing this issue have always ran Windows 7.

 

 

 

Items completed on one of the problem machines:

1) Reinstalled the Crystal .NET SP3 runtime

2) Reinstalled the XML parser

3) Reinstalled the XML driver

4) Gave full read/write permissions to the c:\xml folder for all users  (This is were the Crystal temporary files are written out to)

6) Made sure an ODBC connection to the databases is able to be made from the problem workstation

7) Confirmed that this issue wasn't associated with a Windows User Profile corruption issue

8) Changed the default printer on the problem machine and that didn't resolve this issue

 

 

 

One of the reports was last changed on 1/9/2015 and the other report was last changed on 4/20/2015.

 

 

 

Do you know what this issue could be associated with? What steps would you recommend be completed to resolve this issue?

Crystal Export Error - Database Logon Failed

$
0
0

I'm currently seeing the attached database logon failed error when trying to run one of our Crystal reports which is the standard inventory report.

 

 

I have completed/confirmed the following on the problem machine:

1) Confirmed the Crystal .NET SP3 runtime is installed

2) Cleared out the c:\xml folder

3) Gave full read/write permissions to the c:\xml folder for all users

4) Re-installed the XML Parser

5) Re-installed the XML Driver

6) Confirmed that an ODBC connection could be made to the databases

7) Ran Grant SQL rights

8) Confirmed that the anti-virus running was excluding .pl files

 

 

What typically is causing this error to occur? What items typically resolve this issue as well?

verifying the data that is brought into crystal report in visual studio 2010

$
0
0

In a VB.net 2010 desktop application that uses crystal reports, I am trying to compare the results of 2 reports where summary data should be the same between the 2 reports. When I run the same queries in access 2013, I get the same detailed results. However when I run the reports, the report called YTD sometimes has different total amounts. Thus I am trying to determine what could be causing the amount on the YTD report to change.

 

This report is not using formula fields, parameter fields, running total fields, special fields, unbound fields. There are 2 group name fields. The grand total amount in the report footer section does a sum on the MainData.Amount area. When I look at the database fields, the 'MainData' contains all the rows that the dataset select statement contains.

 

Thus could there be a selection of some data in the crystal report that I do not see? Thus can you tell me what I could try to solve this issue?

How can I data-bind using IEnumerable?

$
0
0

I'm new to Crystal Reports and I have the task to upgrade an existing application from ASP.NET WebForms to Web API/Entity Framework.

 

Looking at the SetDataSource() member method it looks like Crystal Report allows to alternatively feed a DataSet based report with some arbitrary IEnumerable object.

 

I'm supposed to feed the report with data taken from web service, i.e. deserialized JSON data. And I wouldn't want to resort to the obsolete System.Data namespace any longer, particularly as this would require me to regain the whole database schema from an arbitrary object tree.

 

So what format does the IEnumerable overload need to match to have to it work on a Crystal report that has been generated based on a DataSet?

 

Thanks for enlightening me.

Generate pdf with Crystal Reports in a 64 bit WCF Service Visual Studio 2013

$
0
0

My WPF aplication use crystal report for Visual Studio (CRforVS_13_0_14.exe)

The reports DO NOT connect to de DB directely , receive data fom a DataSet.

The reports execute sucesfuly on the client, but when try to generate a PDF in a WCF services the command

 

_reportDocument.SetDataSource(reportData);

 

generate the chrash of the server "WcfSvcHost.exe"

the same result on production environment where WCF is hosted in windows service

 

Unfortunately don't have more information on the problem only see

 

temp_e02b91ed-590f-489c-8b9f-c6b65e5e063a.rpt

temp_e02b91ed-590f-489c-8b9f-c6b65e5e063a 8372_5148_{4FADE7B1-C970-490D-92D5-22F7E52F7BC6}.rpt

~DF393076A53B2E01C3.TMP

 

 

in the temp directory

 

thank you for help

Crystal Reports 13 - Chart & Legened

$
0
0

Hi,

 

I have a pie chart report returning many records of data, the problem is the legend overlay the pie and I cant find any way to control the pie it self or the legend. So,

 

1- What is the way to move the legend to the next page or control it or make it flexible depending on the returned data and prevent it from overlay?

 

2- When I minimize the returned data the values that appears on the pie not all displayed and its font is large, how to control this?

 

The problem is using CR13 and ASP.net VS2010. By the way, I worked on CR 10 and windows apps before, and I remember that there were many ways to control the pie itself like maximize it and minimize it, and many other options. Attached screenshots.

Thanks in advance.

dynamically setting page footer length

$
0
0

is it possible to set page footer length dynamically ?


Crystal Reports - Print directly from Picturebox

$
0
0

Hi,

I am using VS-2010, drawing some shapes [polygons,squares....etc] in picture box with user input varies, now i want to print directly picture box content to CR-1. i am not calling any file to load nor storing in database or any file format.

 

Thanks in advance

Display images via CRUFLs and why does the UFL assembly not get updated at times?

$
0
0

Hello,

 

This is a two part question:

 

1. Is there in-built support in CRUFLs(via u2l2com.dll) to get images displayed directly in Crystal Reports?

    And if what are the return types allowed for the UFL functions? And is there any limit on the number of functions or any restrictions on the signature of the functions; which could be exposed via this method?

 

2. Why do the assemblies not get updated at times; this is happening on a random basis; sometimes the whole "COM and .NET UFLs(u212com.dll)" node disappears from the Additional Functions?

 

 

Any response would be appreciated.

 

 

Thanks!

Database Logon Error When Multiple Reports ran through single IIS process

$
0
0

So using the latest SP, when multiple versions of my app are being called upon through IIS, which means multiple .rpts, I get intermittent database logon errors. (I can run my app through IIS via a webservice in a "batch" mode). I'm using the ADO xml push method to send data to the crystal report.

 

However, I noticed something peculiar. If I hard code the path of the data xml or leave it blank as the only datasource connection, the intermittent errors are no longer replicatable.

 

So it looks like crystal occaissionally  will mix it's data source locations and pick the wrong one when multiple crystal reports are being called within the same process. Which is peculiar because as my code sample shows, we pass an xml data structure to crystal at runtime. It shouldn't matter what source xml is specified in the .rpt at creation time, as long as it is the same exact schema i'm passing at runtime.

 

l_objReportDocument.Load(l_strReportFileName)

                l_objReportDocument.SetDataSource(l_objDataSet)

 

                ' create the report options

                Dim l_objExportOptions As CrystalDecisions.Shared.ExportOptions

                l_objExportOptions = l_objReportDocument.ExportOptions

                l_objExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat

                l_objExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile

                l_objExportOptions.DestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()

 

Here is the previous thread where I talk about what I'm seeing.

Database logon Error Through IIS

 

Is there a way I can get crystal to truly ignore that datasource location? Somehow clear all datasource locations at runtime perhaps?

 

I tried

l_objReportDocument.DataSourceConnections.Clear() (or something like that) with no luck.

How to set parameters using VB.net SDK for unmanaged report in CRServer 2013

$
0
0

I am upgrading an old classic ASP application that used CRXI R2 Server to a new ASP.Net (VB.Net) system using Crystal Server 2013. I am unable to get report parameters successfully set in a ReportClientDocument and none of the example seem to give much help. The code below works for any report that does not have parameters, but any that do, the report viewer's content pane just remains blank. What do I need to change to make it set the parameters in the ReportClientDocument?

 

Private Sub DatabaseLogon_unmanagedRAS()
    Dim mySampleReportPath As String = Request("rpt__rpt")
    Dim path As Object = CType(mySampleReportPath, String)
    Dim rptFile As String = path.Substring(8)
    Dim databaseUserName As String = Request("rpt__un")
    Dim databasePassword As String = Request("rpt__pw")

    Dim rcd As New ReportClientDocumentClass()

 

        rcd.ReportAppServer = "localhost:6420"

 

        rcd.Open(rptFile , 0)

        rcd.DatabaseController.logon(databaseUserName, databasePassword)

 

    Dim pfld As String
    Dim pfldName As String       
    Dim crMainReportParameterFields As Fields
    Dim crField As Field
         Dim arrKeys() As String

 

        crMainReportParameterFields = rcd.DataDefinition.ParameterFields

        For Each crField In crMainReportParameterFields
            pfldName = crField.Name.ToString
            Try
                Select Case crField.ValueRangeKind
                'Ranged parameter.
                Case 0
                    Dim crRangeVal As ParameterRangeValue = New ParameterRangeValue()
                    pfld = Request(pfldName)
                    arrKeys = pfld.Split("|")
                    crRangeVal.StartValue = arrKeys(0)
                    crRangeVal.EndValue = arrKeys(1)
                    crRangeVal.LowerBoundType = RangeBoundType.BoundInclusive
                    crRangeVal.UpperBoundType = RangeBoundType.BoundInclusive
                    rcd.DataDefController.ParameterFieldController.SetCurrentValue("",pfldName,crRangeVal)
                'Discrete parameter.
                Case 1
                    Dim crDiscreteVal As ParameterDiscreteValue = New ParameterDiscreteValue()
                    crDiscreteVal.Value = Request(pfldName)
                    rcd.DataDefController.ParameterFieldController.SetCurrentValue("",pfldName,crDiscreteVal)
                End Select
            Catch e As Exception
                ' handle the error
            Finally
                ' do cleanup
            End Try
        Next

 

        myCrystalReportViewer.ReportSource = rcd

        myCrystalReportViewer.HasRefreshButton = true
End Sub

MaxRowsetRecords Registry Entries Not Working

$
0
0

Hi.  I am using Crystal Reports for Visual Studio with Visual Studio 2013 and have the reports running on .NET 4 website on Windows Server 2008 R2. One of my reports uses a dynamic parameter and the dropdown is not showing all the values.  I had this problem about a year ago and I was able to solve it by adding the MaxRowsetRecords registry entries with a value of 2000.  Now there are about 2500 values.  I have changed the MaxRowsetRecords values to 10000 and restarted the server but the dropdown still only shows 2000 values

 

Here are the registry entries I have changed:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

Does anyone have a solution for this?

 

Thanks,

 

David Perry

Crystal Reports and Sql CE

$
0
0

I have created a desktop application using SQL Server and I now want to switch it to SQL CE so that it can be a stand alone app. No problem converting the code, that works fine but  I am going crazy trying to get my reports to use the embedded database.

So far I've tried:

1. Go into report and choose Set DataSource Location then find my dataset under ado.net objects.

2. Go into report and Set DataSource Location then find my dataset under Database files.

3. Create a dataset in code and assign it to the report's datasource property.

4. Create a new report using the dataset.

 

None of these returns any records.It's like the report can't connect to the database.

 

Any help with this will be greatly appreciated.

Crystal Reports FormatSection event does not fire

$
0
0

Hello,

 

I'm writing because I'm having trouble with the implementation of the FormatSection event (vb2013).

 

I used to handle such events in my old VB6 projects, but I cannot reproduce this on vb.net.

 

My goal is to change some formatting settings at runtime, depending on some conditions.

 

I created the following code within a vb.net project:

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

Imports CrystalDecisions.Shared

Imports CrystalDecisions.CrystalReports.Engine

 

Public Class Form2

 

    Private WithEvents report As New ReportDocument

 

    Private Sub report_BeforeFormatPage(e As FormatPageEventArgs) Handles report.BeforeFormatPage

        Console.WriteLine("BeforeFormatPage!")

    End Sub

 

    Private Sub report_FormatSection(e As FormatSectionEventArgs) Handles report.FormatSection

        Console.WriteLine("FormatSection")

    End Sub

 

    Private Sub InitReport(sender As Object, e As System.EventArgs) Handles report.InitReport

        Console.WriteLine("InitReport")

    End Sub

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

 

        report.Load("d:\rpt1.rpt", OpenReportMethod.OpenReportByDefault)

 

        Dim tbl As New DataTable("tbl1")

 

        tbl.Columns.Add("c1")

 

        For i As Integer = 1 To 10

            tbl.Rows.Add(i)

        Next

 

        report.SetDataSource(tbl)

 

        report.ExportToDisk(ExportFormatType.PortableDocFormat, "d:\out.pdf")

 

    End Sub

 

End Class

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

 

Unfortunately, only the "InitReport" is fired, even though the report is correctly exported.

 

I tried to search on Internet but no one seems to use the FormatSection Event.

 

Thank You,

 

Roberto Reale


Error : .CS file not generated for adding Crystal Report to Website in VS2013

$
0
0

I have been facing issue of not finding the .CS file after adding Crystal report to VS2013 Website. It adds Crystal report to Web application, Winform etc but not to the website. Also If I create a manually generated .CS file, It runs locally but not after putting it on the server by producing the error

Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.]

  CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +233

 

I guess not generating the .cs file is the actual problem. I have updated the SP14 for VS2013. Still facing the problem.

Please let me know soon if possible. I appreciate your help. Thanks.

Regards,

Gaurav

Error using WCF datasource

$
0
0

Hi

 

We are currently evaluating crystal for our companies reporting needs.

 

I'm having some problems running a report that uses the XML and Web Services datasource. In this case it connects to a WCF service to retrieve the data.

 

I've created the report successfully in the designer and it displays the data as expected when I preview it.

 

On the same machine I'm trying to use the WPF viewer to display the report but when I run the report I get the following error.

 

 

Failed to load database information.

Error in File ReportTest 40524_54392_{0A8ECA9D-1D36-4346-A46A-E26E60F24CBE}.rpt:

Failed to load database information.

 

 

The same report with an OLE DB datasource works fine. Are there any additional requirements needed in order to display this type of report in the WPF viewer?

 

I'm using the latest version of crystal reports and the latest crytsal for visual studio 13.

 

Thanks

Export report to Excel fails

$
0
0

Hi,

 

We have received feedback from our Korean customers that the export to Excel function fails.

 

Problem has been noticed for the Crystal report for Visual Studio V13_0_13.

Their windows user account are set for Korean language.

 

The problem is not related to the report content.

 

I think that your export to Excel function is using a temp dir which is not reachable when non-unicode character is set to Korean.

 

Thanks in advance to provide a patch for this and to let me know.

 

 

Kind Regards,

 

David

Crystal Report Navigation from Page 2 to Page 3 requires 2 clicks.

$
0
0

Hi,

I am using Crystal Report 13.0.12 and Visual Studio 2013 and my purpose was to integrate Crystal Report with .aspx page. I load all my report parameters, crystal report file and my stored procedure, for multiple reports, from a compiled dll.

 

Everything worked perfectly fine except when I navigate from page 2 to page 3 I have to click the navigate to next page button twice. From page 2, if I click the next page nav button, page 2 is rendered and again when I click the same button, then only my report navigates to page 3. I have not been able to figure out the issue and I have no idea what I should be looking for.

 

I am using Session Variables to store all my parameters and report document and on post back, I am loading report from session variable.

 

Another issue I'm facing is:

I load a report with multiple pages. I navigate to some other page than page 2 (Eg: page 3 or above) then I change my report parameter values and press load button. This gives me a blank page with current page no 3 or above (which ever page I was in before). I am not sure if this issue is related to the issue mentioned above and will be resolved if the former is resolved.

 

I am totally unaware where my issue lies. Could you please help me out. (I am not so new to .NET but very new to crystal report).

how can I customize chart bar color runtime?

$
0
0

I'am a vb developer, visual studio 2005 and 2013 with the integrated Crystal report for VS

I am working on a bar chart, I need to set the bar color based on a field property

The only option seems to be under the report generator to use the color option Windows to associate a color to a field value, but I need to do it Runtime, as the field values can change.

Is there a way to access this properties Runtime and set the color as I need?

Untill now I was not able to find a way to do it.

How can I do it?

Viewing all 2556 articles
Browse latest View live


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