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

Crystal report Migration

$
0
0

Current I am using crystal report 10.2.3600.0 with visual studio 2005 (window application) ,oracle 9i and WinXP.

 

Now I want to migrate to latest crystal report version with visual studio 2010(framework 4.0),oracle 11g and Window 7.

 

I am having 2 queries :

1) Which latest crystal report version is compatible with visual studio 2010(framework 4.0),oracle 11g and Window 7 ?

2) which steps will I need to follow for crystal report migration ?


What could be causing a missing DB field on my Crystal Report at run-time?

$
0
0

Ladies & Gentlemen,

 

I have been, thus far, successful in programmatically pulling records from a MySQL database to create a crystal report from a single table.  Using the code below, I'm trying to pull records from two tables - customer& cc_masterNow, all the fields are coming from the cc_master table except for one - nameCOMPANY - which is coming from the customer table.

 

At during debug, the report is displaying all the records from the cc_master table and the one field from the customer table isn't being displayed.  Any help would be greatly appreciated - my knowledge is quite limited, so please go easy on me.  All that I've done thus far is by watching Youtube videos and reading online articles.  Below is my code and two screenshots (one showing the report and the other showing the DataSet Visualizer with the records from the query).

 

Here's my VS Code containing the query:

 

Try   NotifyIcon1.ShowBalloonTip(3000, "Running Report, Please Wait.....", "The report you requested is being generated." & vbCrLf & _                               "Please be patient, based on the data being requested it could take more than a few seconds.", ToolTipIcon.Info)   Dim myConnectionString As String = "Server=" & FormLogin.ComboBoxServerIP.SelectedItem & ";Port=3306;Uid=parts;Password=parts;Database=accounting;"   Dim dbQuery As String = "SELECT customer_accountNumber, nameCOMPANY, ccID, cardholderFirstname, cardholderLastname, cardholderSalutation, ccNumber, " & _                           "ccExpireMonth, ccExpireYear, ccZipcode, ccLocation, ccType, ccAuthorizedUseStart, ccAuthorizedUseEnd " & _                           "FROM customer a, cc_master b " & _                           "WHERE a.accountNumber = b.customer_accountNumber"   Dim dbAdapter As New MySqlDataAdapter(dbQuery, dbConn)   NotifyIcon1.ShowBalloonTip(3000, "Querying the MySQL Database....", "The records necessary to compile your report " & vbCrLf & _                               "are being retrieved from the datasource.", ToolTipIcon.Info)   Dim dbTable As New DataTable   dbAdapter.Fill(dbTable)   Dim report As New rptCardListAll   report.SetDataSource(dbTable)   CrystalReportViewer1.ReportSource = report   CrystalReportViewer1.Zoom(1)   NotifyIcon1.ShowBalloonTip(3000, "Report Ready!", "The report you requested is now ready to view." & vbCrLf & _                                           "Thanks for your patience.", ToolTipIcon.Info)
Catch ex As Exception            'MsgBox(ex.Message)            NotifyIcon1.ShowBalloonTip(3000, "AN ERROR HAS OCCURED...", ex.Message & vbCrLf & _                               "Please report the problem to the IT/Systems Helpdesk @ Ext 131.", ToolTipIcon.Error)
End Try

Snap 2013-01-24 at 12.18.09.jpg

 

Snap 2013-01-24 at 11.39.12.jpg

Intermittent 'Load report failed' error

$
0
0

Hi,

 

I have had a website up and running for the past year with a Crystal Report successfully displaying within it (ASP.Net 4.0, WIndows Server Web edition). So I am confident that everything is set up right to work. We have recently updated the website, shipping a new version. I am displaying the report in exactly the same way (using the CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(...) functionality referencing a file directly). I set it's datasource and all works fine and data is displayed.

 

Some of the time.

 

It's an intermittent problem where a user will try and display the report and an error is caught in the exception handling saying 'Load report failed'. I log on to the website and try out a test report and I find the same happens to me. If left alone, the problem goes away after a couple of hours.

 

The path to the report (.rpt file) is contained within the web.config file and if I change the folder that the report is located in and point the web.config file to that folder it all works again straight away.

 

Any help/ideas would be greatly appreciated.

 

Many thanks

 

Julian

Unregistered interface: ICRReportPrinterPageRange

$
0
0

Hi all,

 

While trying to print a report, this exception is raised. Here's the code we use:

 

        Try
            Dim pDoc = New System.Drawing.Printing.PrintDocument
            Dim rasPROpts = New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions
            Dim printLayout = New CrystalDecisions.Shared.PrintLayoutSettings
            Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument

            rptClientDoc = pj.ReportDocument.ReportClientDocument

            rasPROpts.JobTitle = pj.ReportTitle
            rasPROpts.PaperSize = pagesetting.PaperSize.RawKind
            rasPROpts.PrinterName = printersetting.PrinterName
            rasPROpts.NumberOfCopies = printersetting.Copies
            rasPROpts.Collated = printersetting.Collate
            rasPROpts.PaperSource = Convert.ToInt16(pagesetting.PaperSource.RawKind)
            rasPROpts.PrinterDuplex = printersetting.Duplex
            rasPROpts.PrinterName = printersetting.PrinterName
            rasPROpts.AddPrinterPageRange(printerSetting.FromPage, printerSetting.ToPage)

            rptClientDoc.PrintOutputController.PrintReport(rasPROpts)
        Catch ex As Exception
            Agilis.ShowMessage(ex.Message, Windows.MessageBoxButton.OK, Windows.MessageBoxImage.Error)
        End Try

 

Obviously the fault happens in:

 

            rasPROpts.AddPrinterPageRange(printerSetting.FromPage, printerSetting.ToPage)

 

The stack trace is:

 

   in CrystalDecisions.ReportAppServer.Controllers.ISCRPrintReportOptions.AddPrinterPageRange(Int32 rangeStart, Int32 rangeEnd)

   in XSolving.CRPE.CRPEManager.Print(PrintJob pj, PrinterSettings printerSetting, PageSettings pageSetting) in C:\Workarea\Agilis\XSolving.CRPE\CRPEManager.vb:riga 512

 

We're using the last available version of CR for VS (13.0.5).

 

I already tried to uninstall and reinstall both Crystal Reports for Visual Studio and the 64-bit Runtime engine, but nothing has changed.

Problem with labels in landscape mode

$
0
0

I'm importing a Crystal Reports Visual Studio 2005 that is working fine, but in Crystal Reports Visual Studio 2010 do not.

The report have a custom size h=10cm v=8cm in the paper, and in the report h=8cm v=10cm, and I want the report print in landscape mode to rotate 90ª and fit to the paper.

The problem is that I can't do it, I have tried all the posibilites I think is possible, changing paper sizes by default in the printer, and changing landscape and portrait mode in the report, but always print bad.

I think the printer is not the problem because I use 2 different printers (TEC B-SA4G and Godex EZ-1100 Plus) and both have the same problem with the new report and both work fine with the old one.

Any ideas?

Crystal Reports 2011 Upgrade Programming Question

$
0
0

     My team now hosts many websites with .rpt files and we use
Crystal Reports 10 Report Application Server (RAS), aka Crystal Reports Enterprise 10 Embedded
under Windows Server 2003.

     We plan to upgrade to SAP Crystal Reports 2011 under Windows Server 2008 R2.

     Applications now use ASP Classic code like the following to display reports
from within their applications using the obsolete RDC programing interface.

http://cnn304.gov.ab.ca/ctopc/crystal.asp

     My question is - what is the equivalent VB.NET (ASP.NET 4.0) code to
display the same report file (CrystalRASTest.rpt) using Crystal Reorts 2011?

crystal.asp
<%
' This report is called from:
' http://cnn304.gov.ab.ca/ctopc/crystal.asp
'=====================================================================

reportname = "CrystalRASTest.rpt"
%>

<!-- #include file="CrystalRequiredSteps.asp" -->
<!-- #include file="CrystalReportsViewer.asp" -->


CrystalRequiredSteps.asp
<%
'===================================================================================
'Create the Report Application Object and Report Client Document
'===================================================================================
'
' The Crystal Reports object is scoped as a session variable.

' CREATE THE APPLICATION OBJECT                                                                    

Dim ClientDoc, ObjFactory, RptAppSession
Set ObjFactory = CreateObject("CrystalReports10.ObjectFactory.1")

'Create the ReportAppSession which allows communication to the Report Application Server
Set RptAppSession = ObjFactory.CreateObject("CrystalReports.ReportAppSession")
If Err.Number <> 0 Then
Response.Write "Failed to create CrystalReports.ReportAppSession."
Response.Write "Error message: " & Err.Description
Err.Clear
End If

' Initialize the Report Application Session
RptAppSession.Initialize
If Err.Number <> 0 Then
Response.Write "Failed to initialize ReportAppSession."
Response.Write "Error message: " & Err.Description
Err.Clear
End If                                                        
                                                                     
' CREATE THE REPORT OBJECT                                                                                                 
'The Report object is created by calling the ReportClientDocuments object's OpenReport method.

'This "While/Wend" loop is used to determine the physical path (eg: C:\) to the
'Crystal Report file by translating the URL virtual path (eg: http://Domain/Dir)  
Path = Request.ServerVariables("PATH_TRANSLATED")                    
While (Right(Path, 1) <> "\" And Len(Path) <> 0)                     
iLen = Len(Path) - 1                                                 
Path = Left(Path, iLen)                                              
Wend      
                                                                                                                                                                                    
'Create a new ReportClientDocument object for this ReportAppSession.
Set ClientDoc = RptAppSession.CreateService("CrystalReports.ReportClientDocument")
If Err.Number <> 0 Then
Response.Write "Failed to create ReportClientDocument."
Response.Write "Error message: " & Err.Description
Err.Clear
End If  

'Open the report obejct to initialize the ReportClientDocument
clientDoc.Open Path & "\" & reportname

If Err.Number <> 0 Then
Response.Write "Failed to open report """ & ReportPath & """"
Response.Write "Error message: " & Err.Description
Err.Clear
End If 
  
'**IMPORTANT**  Even though we disable the extended error messaging of the engine
'fatal errors can cause an error dialog to be displayed on the Web Server machine.
'For this reason we reccomend that you set the "Allow Service to Interact with Desktop"
'option on the "World Wide Web Publishing" service (IIS service).  That way if your ASP
'application freezes you will be able to view the error dialog (if one is displayed).
%>

CrystalReportsViewer.asp
%
'===================================================================================
'INSTANTIATE THE VIEWER AND DISPLAY THE REPORT THROUGH THE CRYSTAL REPORTS VIEWER
'===================================================================================

Response.ExpiresAbsolute = Now() - 1
Session.CodePage  = 65001 ' UTF-8

' Create the Crystal Reports Viewer
Dim viewer
Set viewer = ObjFactory.CreateObject("CrystalReports.CrystalReportViewer") 
viewer.Name = "Crystal Reports Viewer"
viewer.IsOwnForm = true  
viewer.IsOwnPage = true

'Set the source for the viewer to the ReportClientDocument's report source
viewer.ReportSource = clientDoc.ReportSource

'Process the http request to view the report
viewer.ProcessHttpRequest Request, Response, Null

'ReportClientDocument will be automatically closed when clientDoc is released
%>

Need a 64-bit version of CrystalDecisions.CrystalReports.Engine.dll

$
0
0

Is there a version of CrystalDecisions.CrystalReportsEngine?  I need a 64 bit version to get a successful result.  I installed the Visual Studio plugin and checked the 64 bit runtime. 

I can only find the 32 bit version in the following directory

 

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .Net Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll.

 

I noticed under

 

C:\Program Files (x86)\SAP Business.........\SAP BusinessObjects Enterprise XI 4.0\ there is a win64_win64 but no where in there is a CrystalDecisions.CrystalReports.Engine.dll

 

The app works fine in 32 bit but we cannot deploy it in 32 bit mode because of other 3rd party products.   Is there a 64 bit I can download and install?   I thought I did and expected it to be in C:\Program Files but no SAP products are there. 

 

Please help.

 

thanks,

 

Mike M.

Errors of crystal report in Preview.aspx page

$
0
0

i have configured my website in IIS crystal report is showing some errors .

i have installed visual studio 2010...

SAP Crystal report Version Visual studio 2010,

SAP Crystal report runtime engine for .NET framework 4 (32-bit)

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

Error 10 Unknown server tag 'CR:CrystalReportViewer'. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 132

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

Error 4 Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 5

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

Error 7 Could not load file or assembly 'CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 8

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

Error 8 Could not load file or assembly 'CrystalDecisions.ReportAppServer.XmlSerialize, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.- C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 9

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

Error 9 Could not load file or assembly 'CrystalDecisions.ReportAppServer.ObjectFactory, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 10

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

Error 5 Could not load file or assembly 'CrystalDecisions.ReportAppServer.Controllers, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 6

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

Error 6 Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 7


how to print Crystal Report

$
0
0

i am using this code to print crystal report

 

Report.PrintToPrinter(1, true, 0, 0); 

 

its giving me this error . i deployed my website in IIS

 

A StartDocPrinter call was not issued

Is there any concurrency limit to access reports in a web application deployed on IIS 7.5

$
0
0

I am using VS2010 & Crystal Reports version 13.02 to develop and deploy reports web application.

 

The application is deployed on windows 2008 r2(64 bit), IIS 7.5.

 

After going thorugh the below link, i have the doubts.

http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/804acc00-8364-2b10-b995-de99ca43c403?QuickLink=index&overridelayout=true&32809255175729

 

 

1.  Concurrency Limitation:

a.  Confirm if there is a limit(how many users can access reports deployed on IIS concurrenctly).

b.  If the limit is there - what is the limit?  Can it be configured?  If the limit can be configured, what is the procedure and are our servers configured to use the allowable max limit?

 

2.  Reporting Application: If the concurrency limit (free or purchased product) is reached, is it possible to display a message to the subsequent users indicating that the concurrency limit is reached and if possible, provide them with list of users.

 

3.  Product(s) to be procured: If we decide to buy the software, which product(s) and how many licenses need to be procured.  Are there any concurrency limits on the purchased product(s).

problem with multiplying in CR formula

$
0
0

i use

isnumber({table.field1}) * isnumber({table.field2})

 

first it was working just fine then a months late it come up with an error 'string is non-numeric'. after searching around i found a solution which look like this after i generated it to my code

((If NumericText ({table.field1}) then ToNumber ({table.field1}) else 0) * (If NumericText ({table.field2}) then ToNumber ({table.field2}) else 0))

 

but it does not multiply, it's only printing table.field1 value on report. where did i do wrong?.

 

thanks before

Get Parameter value passed by Crystal Reports from main report to subreport

$
0
0

Hi,

 

I have report which has a Sub-report. The data on the main report is huge. When the user clicks on the link on each row the sub-report appears. The data for this sub-report is based on a number field (id - primary key) which is passed as parameter, but fetched from multiple tables (which are not part of the main report) using complex joins.

 

All this is working. Now let me come to the problem.

 

As the data in question is so huge the sub-report is awfully slow. I was thinking if I could catch hold of the parameter being passed to sub-report at runtime in ClickPage or DrillDownSubreport events, I could have created the dataset on the fly myself and set the datasource for the sub-report dynamically. This would improve performance multi-fold.

 

I did try 'CrystalReport11.Subreports[0].DataDefinition.ParameterFields[0].CurrentValues', but I am getting count as zero.

Also tried 'CrystalReport11.Subreports[0].ParameterFields' but getting 'Not supported within subreports.' exception.

 

We can not depend on the Crystal Report feature of firing the SQL from Crystal report for the subreport, as we need the application to work on different types of databases. Hence we need control over creating and supplying the datasource.

 

Edit: This is a Windows Forms application. The database is in a remote server accessed via internet. This is why the performance is paramount.

 

Please advise me the correct path to take.

 

-- Suresh Balasubramanian

Replace or insert a new custom image in place of existing picture object

$
0
0

I have a crystal report with default logo displayed. During runtime, i need to replace that picture with another image dynamically.

 

Things that i tried are:

Using Graphic location formula set to custom image path. When crystal report is exported, i see the same old image. When i right click on old image and check the graphic location formula, the path is pointing to the custom image path. I dont know why this is not working. check the below code:

 

            oCustomPicture = CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject

           oCustomPicture = oPicture.Clone(True)

           oCustomPicture.GraphicLocationFormula = cf '(condition formula with custom location path)

 

         oRpt.ReportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Modify(oPicture, oCustomPicture)

 

Second thing, i am trying is removing the old image and then trying to add a new picture object. Trying to figure out how do i do this.

 

I am using CR XI sp5.

 

Any help is appreciated.

 

Thanks,

Deepak P

Crystal report Migration

$
0
0

Current I am using crystal report 10.2.3600.0 with visual studio 2005 (window application) ,oracle 9i and WinXP.

 

Now I want to migrate to latest crystal report version with visual studio 2010(framework 4.0),oracle 11g and Window 7.

 

I am having 2 queries :

1) Which latest crystal report version is compatible with visual studio 2010(framework 4.0),oracle 11g and Window 7 ?

2) which steps will I need to follow for crystal report migration ?

Crystal Report - Need to print the report continuously without page break, the printer is a POS printer with continuous paper feed.

$
0
0

Hi all,

I am customizing POS solution for my client and my client is using POS printer that supports continuous paper feed.

 

I have designed the receipt using crystal report.

I have displayed Company Detail, Cashier Info in Report Header.

Cash Received and Change displayed in Report Footer.

The purchased item displayed in Details Section as there might have more than one items purchased.

 

The dimension under the page setup is Horizontal: 7.5 cm, Vertical: 10 cm.

The horizontal is measured with ruler and accurate whereas vertical is a random number.

 

I have set the top and bottom margins to 0.00 so that when I print, it will be continuous with the previous page content.

However, I cannot avoid page break if the purchased item not fully utilize one single page, the Report Footer content always displayed in one new page.

This causes the previous page left a big blank area.

 

How to fix this? Please let me know if you have a better idea to achieve this requirement.

Or is it possible to change the Vertical on runtime, but the purchased item details could be short or long (Multiple line is enabled) and I have no idea how many lines of one purchased item detail it could occupy.

 

Thanks in advanced.


Inject Custom Code in Crystal Report CS file for visual studio 2010

$
0
0

I am very new in Crystal Report environment. Can you please help me for following point?

 

I am using crystal Report for VS2010.[ASP.NET Project in C#]

 

I have a sample Report say “Report.rpt”.

In visual studio IDE I can see two file for that report like: “Report.rpt” and “Report.cs”.

 

Now, I have added some custom code in Report constructor in “Report.cs” file.

i.e

Public Report()
{

//My Code: Line 1;

//My Code: Line 2;

}

It works fine.

 

But,  if I change anything in report design, i.e.  In “Report.rpt” the “Report.cs” is getting Reset.

i.e. the custom written line in report constructor is vanished.

i.e.

Public Report()
{

}

 

Is it possible to inject any custom code in Crystal Report CS file?

Why the CS file is getting reset? Is there any way to stop it.

 

Thanks for any help/suggestion.

 

Regards

Abhisek

A StartDocPrinter call was not issued

$
0
0

i am using this code to print crystal report

 

Report.PrintToPrinter(1, true, 0, 0);  

 

its giving me this error . i deployed my website in IIS

 

A StartDocPrinter call was not issued

 

i have installed

Visual studio 2010 ultimate

SAP Crystal Report runtime engine for .NET Framwork 4 (32-bit)

SAP Crystal Report version for Visual Studio 2010

IIS 7

Failed to export using the options you specified. Please check your options and try again.

$
0
0

I Cant Print or Export  Crystal report with print icon

 

By exporting with pdf or by taking print with ActiveX its giving me this error

 

Failed to export using the options you specified. Please check your options and try again.

 

 

i have installed

Visual studio 2010 ultimate

SAP Crystal Report runtime engine for .NET Framwork 4 (32-bit)

SAP Crystal Report version for Visual Studio 2010

IIS 7

deploy Crystal Report version 13.0.2000.0 in 64 bit Window server 2008 operation system, with IIS 7.0

$
0
0

Hi,

I am very new in Crystal Report environment. Can you please help me for following point?

I am using crystal Report for VS2010. [ASP.NET Project in C#]. Crystal Report version 13.0.2000.0

In developer machine the crystal report is installed, and application is running fine.

In other machines [32 bit os], where the crystal report is not installed, after installing “CRforVS_redist_install_32bit_13_0_2.msi” there, the application is running fine.

But, when it is deployed in a server machine where the configuration is like below:

1.     Window server 2008 server 64 bit operating system

2.     IIS 7.0

3.     .NET framework 4.0.

The application is giving error even after run, “CRforVS_redist_install_32bit_13_0_2.msi” in that server machine.

Can you please suggest how to deploy Crystal Report version 13.0.2000.0 in 64 bit Window server 2008 operation system, with IIS 7.0

Thanks for any help.

Regards

Abhisek

Application crashes on ReportDocument.Close()

$
0
0

Hello everybody,

 

our reports are developed in SAP Crystal Reports Version 14.0.2.364 RTM. The reports are being called by a c# dll, written in.NET 4.0 and CR for VS2010. This works nice and without any problems.

 

Now, we have a new customer and our software should be used on a Windows 2008 R2 terminalserver. We have installed the runtime CRforVS_redist_install_32bit_13_0_4.zip on the system. On this server, some reports crashing at the call of ReportDocument.Close().

 

Close() is being called as follows:

 

MainCRWReport.Close();

MainCRWReport.Dispose();

 

GC.Collect();

GC.WaitForPendingFinalizers();

 

All other customer installations work fine with this calls.

 

A little bit curious is, that if "Crystal Reports .NET-Logging" is enabled, the application doesn't crash. When logging is disabled the crash can be avoided only if we delete the line MainCRWReport.Close() from our code.

 

I have tried to analyse the crash dump via Microsoft Debug Diag, but I didn't find a solution.

 

Do you have any idea, why Close() raises a crash?

Viewing all 3636 articles
Browse latest View live


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