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

Crystal report for Visual studio 2012

$
0
0

In order to work on Crystal report version 13.0.5 in visual studio 2012, what am i supposed to do?

can you please help me.

I tried installing from the following link below:

 

"http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe" from this link,

 

even after installing i am not able to view the "Crystal Reports application" option Reporting template in Microsoft visual studio 2012.

as it comes in visual studio 2010. Please find the below images, respectively for VS 2010 and VS 2012.

Please let us know if any thing else is needed to be installed or any other suggestion u can give us for the above solution.


Xml and Web Services Datasources from c#

$
0
0

Hi,

 

I had a set of reports created with Crystal Reports 2011; each one is using a 'Xml and Web Service' datasource that is binded to a local XML file.  They are working well when you do a preview from Crystal Reports application.

 

The problem is when I try to export these reports from a C# application to a PDF file. Each time I try it I get this error:

 

     No es posible cargar la información de la base de datos.

     Error en el archivo stage {90F39511-918D-469A-A865-148769735C22}.rpt:

     No se pudo cargar la información de la base de datos.

 

In english is something like this:

 

     It's not possible to load the information from the database.

     Error on file stage {90F39511-918D-469A-A865-148769735C22}.rpt:

     Information from database could not be loaded.

 

The code I'm using is something like that:

 

     ReportDocument rpt = new ReportDocument();

     rpt.Load@"c:\myreport.rpt");

     rpt.ExportToDisk(ExportFormatType.PortableDocFormat, @"c:\test.pdf");

 

I have been using this kind of code without problems with reports with ADO.NET datasources but I can make it work with this 'Xml and Web Service' datasources, any ideas?

 

Thanks for you help.

Are there known issues with Crystal 2008 Runtime SP5?

$
0
0

After upgrading to Crystal 2008 Runtime SP5 (12.5.0.1190) some reports began failing to render. We found that all the reports that failed to render were being passes multiple active data tables as main table which were being joined within the RPT file. Downgrading back to SP2 (12.0.0.840) got them to work properly again. Has anyone else reported this issue. I have an example RPT file which renders with SP2 but not SP5.

Error with windows server 2008 r2 and SAP runtime

$
0
0

I have an msi installer that uses 13.0.7 runtime merge modules and application works great on windows 7, but on windows server 2008 r2 I get following error. This is a windows forms application using .net framework 3.5 its 32bit app

Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll.

STACK TRACE:
CrystalDecisions.CrystalReports.Engine

SOURCE:
   at CrystalDecisions.CrystalReports.Engine.CRPE..cctor()

TARGET SITE:
.cctor

Data from source not being displayed in report

$
0
0

Just to make sure that the dataset contains something I write it to an XML file just before the end if. When the report displays it's empty. (I'm not sure why but this editor decided that when I pasted in the code it needed to turn it all into a table so I'm not wrapping it in a code block.)

 

 

 

dbCmd.CommandText = "SP_WatchCalendar"
dbCmd.CommandType = CommandType.StoredProcedure
Try
dbCmd.Parameters.Add(New OracleParameter("vtext", OracleDbType.Long, ParameterDirection.Input)).Value = Trim(Replace(Session("drweekday"), "'", "''"))
dbCmd.Parameters.Add(New OracleParameter("vtext", OracleDbType.Int32, ParameterDirection.Input)).Value = Session("drLocid")
dbCmd.Parameters.Add(New OracleParameter("v_out", OracleDbType.RefCursor, ParameterDirection.Output))
dbCmd.ExecuteNonQuery()
Dim da As New OracleDataAdapter(dbCmd)

 

da.Fill(dsDutyRoster)

 

If Not dsDutyRoster.Tables(0).Rows.Count = 0 Then
dutyRosterRpt.Load(dutyRosterCR)
dutyRosterRpt.SetDataSource(dsDutyRoster)
dsDutyRoster.WriteXml(xmlPath + "\dsDutyRoster.xml", XmlWriteMode.WriteSchema)
End If
mySection = dutyRosterRpt.ReportDefinition.Sections("Section1")
myText = mySection.ReportObjects.Item("txtDutyWeek")
myText.Text = Session("drweekday")

 

The dataset is created from a stored procedure and being attached to a Visual Studio datasource that was created using a view.

(Visual Studio 10 and the associated Crystal reporting facility. The database is Oracle with 11g drivers on the client side.)

I have a number of other reports that I've recently developed that run fine, but I'm using actual views.

The object process is clearly filing the dataset as the output XML contains the data that I expected to see in the report. It's just not being displayed.

 

Any input would be appreciated.

Crystal Reports issue after MS Updates on Windows Server 2012

$
0
0

We have a web application written in C# with Visual Studio 2012 (framework 4.0).  There is a simple Crystal Reports in that application using runtime version 13.0.2 (64bit).  This report has been running fine for about 2 months.  After one of our maintenance weekends when some Microsoft updates were applied the report stopped displaying.  There are no errors thrown or shown in the event log.  The report window pops up and just stays there.  Nothing is ever displayed.

 

We rolled back all of the updates except for one (KB2884256).  There appears to be no way to uninstall that one.

 

Has anyone come across this issue?

 

I've unistalled the runtime and reinstalled with no help.  I've even tried to install ever version from 13.0.2 up to 13.0.7.

 

This same exact codebase is running fine, with the report displaying on a Windows 2008 R2 server.

 

If there is any other information needed, I'll be happy to post.

 

Thanks

Cannot create a top-level child window

$
0
0

Dear Experts,

I have two issues.

I'm working in WPF browse application with framework 4.5 and using VB script as well as I'm using sap crystal report

1.  when I rebuilt project then I'm getting a Warning

Warning 1 Referenced assembly 'C:\Windows\assembly\GAC_64\log4net\1.2.10.0__692fbea5521e1304\log4net.dll' targets a different processor than the application. Ocean

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

2. is, I have created two crystal report in WPF Application  A. rptproductlist, B. rptHeader

I have insert rptHeader as subreport into rptproductlist in Report header section (Report is viewing fine)

after viewed the report when enter mouse or move mouse in subreport area then getting an error

Please guide me what is wrong with this

 

Thanks & Regards

Manoj Patel

Runtime object suppress formula

$
0
0

I would like to set the formula associated with the suppression of a field object. In design time you have a suppress check box and a formula. At runtime I use;


     objReport.ReportDefinition.ReportObjects("somefield").ObjectFormat.EnableSuppress = True

 

to access the suppress true\false. But how do I set the formula?


CRVS2010SP7 No Printer Layout issue

$
0
0

Dear,

 

This last week we upgraded from Crystal Reports 2010 SP4 to Crystal Reports 2010 SP7.

 

We use a custom developed Crystal Reports Viewer, running on a Windows Server 2008 R2.

 

We develop our reports in Crystal Reports 2008 SP4-5 on machines running Windows 7. Here we develop our reports using No Printer and page size a4

 

Before the upgrade we were able to print correctly, meaning all text is displayed correctly and not cut of at the end of the text field. Please see the screenshots below. However after the upgrade to SP7 the text gets cut off at the edges, while before it would be truncate the text instead of cutting it off. When exporting with SP to PDF we noticed the layout is correct, and gets truncated at the end of the text field, however as you can see the text on the PDF export is smaller.

 

Please note that when we use a printer when developing a report, so not using the No Printer, printing is done correctly. However the performance is pretty terrible then...

 

Please does anyone know how to solve this issue?

 

Correct SP4.jpg

Correct SP7 PDF.jpg

Incorrect SP7.jpg

 

Regards,

Pieter Jong

 

Crystal Advice

http://www.crystaladvice.com

WPF Viewer and focus issues on the tool bar

$
0
0

I'm integrating the WPF Viewer into a WPF application and I've been running into similar problems to most people with regards to the tool bar not enabling using 13 SP7.

 

I've read through this

 

https://scn.sap.com/message/13193421

and

Re: CRVS2010 BETA 2 toolbar buttons disabled

 

but both of them stop just before my problem really happens.

 

Using the trick to set the focus;


this.viewer.SetValue(FocusManager.IsFocusScopeProperty, true);

 

works for the first time.

 

But once it's been done if I switch to another window in my application and back again the buttons do not enable again.  At this point the suggested work around of clicking on the fit to width button no longer enables the toolbar because the fit to width button is also disabled.

 

Calling

 

this.viewer.Focusable = true;

this.viewer.Focus();

 

doesn't make a difference when switching windows except I can see that the return from the call to Focus() is false when the report window is not visible and true when it is.

 

Is there a way to actually get the WPF viewer to show it's buttons as enabled?  I believe the underlying controls are enabled because you can type into the page selection text box and press enter to jump to that page as well as drag the zoom slider around to zoom.  It's almost as if the buttons are bound to a property that isn't being raised as changed leaving them in the disabled state.

Print Engine equivalent in .net

$
0
0

Hi

 

I'm rewriting some old VB6 code to use C# and Crystal Decisions .net 4.0. One of the old methods was a tidy-up after which called PEGetJobStatus and PEClosePrintJob. Are there equivalents in the newer API? Is this still even necessary? Any pointers would be gratefully received.

 

Cheers

 

Nick.

Display's anomalies when use Crystal v13 Dlls

$
0
0

Hi all,

I need to use new features with SAP Crystal Reports, version for Visual Studio (V13.0.2000).

It works fine on my pc, but not on client's pc on terminal server 2003 / 2008.  

I just install SAP CR for visual studio and change DLL's reference, compile and install the exe.

I got display anomalies, some text records are covered and unreadable.

pb crystal 2012.jpg

Does anyone have an idea of what I can check to resolve this error ?

 

Thanks !

Parameters statement

$
0
0

Hi,

Because I need to use crViewer_ClickPage event, I need to change from Crystal Reports Basic for VS2008 to SAP Crystal Reports, version for MS Visual Studio. (Find on SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads.)

Since I have installing 13.0.7.1136 that is SP7 (Support pack), i need to assign twice the reportsource if I want parameter take effect immediatly !

No change in the report was done...

Only reference to CrystalDecisions Dlls 13.0.2000.0 version instead of 10.35.3700.0.

 

    Dim MonEtat As New Etat_Stock_RACK

 

    MonEtat.SetParameterValue(MonEtat.Parameter_Zone.ParameterFieldName, gsZModele)

    MonEtat.SetParameterValue(MonEtat.Parameter_Allee.ParameterFieldName, cmbAllee.Text)

    MonEtat.SetParameterValue(MonEtat.Parameter_CTQUI.ParameterFieldName, CTQui)

    MonEtat.SummaryInfo.ReportTitle = "ETAT du STOCK RACK ZONE " & gsZModele

    With crViewer

      .EnableDrillDown = False

      .ReportSource = MonEtat ' BUG avec CR V13, il faut appeler 2x pour prendre les paramètres

      .ReportSource = MonEtat

    End With

crystal viewer does not work with Internet Explorer 11

$
0
0

Hi,

We've been running the crystal html viewer fine on version IE10 but Microsoft just released IE11 and now our reports do not function properly in IE11. For example, we cannot see the entire report. Controls do not respond.

 

Is there a fix for this?

 

thx,

Mark

Cannot install Crystal Reports on Windows 7 "Cannot open package/CRRuntime_64bit_13_0_7.msi"

$
0
0

Hi,

 

I am new to this community.  I have downloaded Crystal Reports with service pack 7 and regardless of what I download I get the following errors upon extraction:

 

Extracting package/1049.mst

Extracting package/2052.mst

Extracting package/3082.mst

Extracting package/CRRuntime_64bit_13_0_7.msi

Cannot open package/CRRuntime_64bit_13_0_7.msi

Extracting package/CrystalReportsForVisualStudio.msi

Cannot open package/CrystalReportsForVisualStudio.msi

Extracting ProductId.txt

Extracting setup.exe

Extracting setup.ini

 

 

I am running on Windows 7, as an administrator.  I am not getting error 2753.  Please help!


Crystal Reports for VS2010 - Every other record is being skipped

$
0
0

What causes every other record to be skipped with a Crystal Report? I set up my report to point to a custom calss object to provide the field structure, etc. I am setting my datasource at runtime against my report and prior to loading the report I looked at my DataTable I am using to populate the report with. While debugging the application I looked at the query results from the database and the record count shows 2700+ records. However, when my report renders I only get half of that information to display on the report. So, I did some investigation and thought maybe it was a null value issue or something along those lines. When I delved into it deeper and looked at the report output vs. what I am expecting the report is actually skipping every other record. Is this a known issue and if so is there a work around for it? I'm new to Crystal Reports so I am beside myself on this one as it does not make sense to me why records would be skipped.

 

As a test I also used a LINQ query to extract my data from the DataTable I created into a LIST<T> of the Custom Class Object I set the report up with at design time. I can confirm that even using a LINQ query as the datasource and the DataTable shows me that all expected data from the database is present. Also, I have confirmed that with even using LINQ to supply the data source to my report the report skips every other record.

 

I have no selection criteria, grouping, etc defined on the report. It's a straight forward retireve the data and dump it into the report. So I am really at a loss here.

 

Any assistance is appreciated.

 

Thank you.

u25samp1.dll missing

$
0
0

Now that I finally have my report showing up, I am getting an error that u25samp1.dll is missing.  I have looked in the folders C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86 and win64_x64.  It is not in either location, on either my development machine, or my test machine.  Where can I get this dll?

Crystal report cannot export in pdf format (crxf_pdf.dll!41d90c37)

$
0
0

Hi All,

 

I met a weird issue about exporting a crystal report to pdf.

In Visual Studio 2010 (framework 4.0), crystal report version is 13. I ran the project in debug mode in VS2010, and passed the following parameters,

start_date (2010-01-01), end_date (2013-11-30), locations ( 0261, 0272,0273,0277) and LocationsType=3.

I could get pdf report on web page successfully.  So far so good!

 

However, when I setup a website with IIS(7.5) on my windows 7 machine (32 bits) and publish project there.

If I only select one location ( ex. 0261), the other parameters are the same, I can get pdf report on web page successfully.

But if selecting more than one location, such as (0261,0272), then I cannot get pdf report. It pops up an error message "Unhandled exception at 0x41d90c37 in w3wp.exe: 0xC000000FD: Stack overflow." and "Call stach location: crxf_pdf.dll!41d9037()".

 

here I used the same database, same crystal report templates. 

I have also tried to publish the website on Windows server 2003, and got the same issue as my local IIS. When submit more than one locations, there is no response and no pdf report generated.

 

Could anyone please take a look at my question?  I appreciate in advance.

 

Michael Lu

BUG! CR 13 VerifyDatabase not using updated credentials

$
0
0

Hi,

I recently updated my Visual Studio project from CR2008 to the latest (CR 13) and now all my reports fail to log on.

 

The thing is that my reports all refer to a no longer existent database. What I have done successfully with CR2008 is that I set the connection info like this:

 

            foreach (CrystalDecisions.CrystalReports.Engine.Table table in ThisReport.Database.Tables)

            {

                table.LogOnInfo.ConnectionInfo = myConnectionInfo;

                table.ApplyLogOnInfo(table.LogOnInfo);

            }

 

And now I also added:

 

          ThisReport.SetDatabaseLogon(DatabaseLogin, DatabasePassword, DatabaseServerName, DatabaseName);

 

 

However, the VerifyDatabase() now fails!!

 

If I manually open up my report and change the connection settings to an existing database and save the report I can use the above code.

 

Note that the report will execute on the database provided in my code above, it is just the actual verification that is being performed on the connection info stored in the report.

 

As far as I can see, this is a bug!

 

Please help me!

Crystal report parameter pop up issue

$
0
0

Hi,

 

I am using VS 2010. I have crystal reports 8.5. I am calling those crystal reports from asp.net application using the crystal report viewer and report document code. I am passing paramter to the crystal reports. Inspite of doing that, it is asking me for paramters. The parameter pop up opens whenever I try to load the report. I have downloaded the crystal report for VS 2010 from this document. Could someone please help me with this.

 

Thanks.

Viewing all 2556 articles
Browse latest View live


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