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

Error after Adding a Crystal Report to VB Aplication in VS2010

$
0
0

I recently downloaded CRforVS13_0_16.exe to add to my Visual Studio 10.   When I loaded it, and creadeted a Crystal report in my Application, I immediatly get 25 errors when I launch it.  there are several similar to this: 'Type 'CrystalDecisions.Crystal Report.Engine.ReportDocument' is not defined.  Another is 'ReportDefinition' is not a member of 'SE_Attendance.crUserAttendanceEvents'.  (SE_Attendance.crUserAttendanceEvents is the name of my Crystal Report).  I provided a screenshot of all of the Error messages below.  I have found that these types of errors usually mean there is an IMPORT missing.  Does anyone have an Idea where I went wrong?

 

Thanks,

Cam


Looking for FieldFormat.NumericFormat properties

$
0
0

I am searching for some NumericFormat properties in the CrystalDecisions,CrystalReports.Engine.FieldObject class.

Referring to the discussion at Setting numeric format for a report field dynamically using C#, there are references to FieldFormat.NumericFormat properties that I do not see in my VB application.

 

For example, the code example sets the ThousandsSeparator and ThousandsSymbol properties.  But I do not see those properties.

 

I am looking for access to the following properties that appear on the Number format tab in Crystal Designer (that I currently do not see):

Decimals formula

Decimal Separator

Decimal Separator formula (for Decimal Separator value)

Thousands Separator (checkbox)

Thousand Separator formula (for Thousands Separator checkbox)

Symbol (thousands separator value)

Symbol formula (for Symbol value)

 

Since the code referenced in the link above accesses the ThousandsSeparator and ThousandsSymbol properties, which I do not see, I am assuming I can also get access to the other properties I have listed above.

 

I have installed the following Crystal Developer tools:

SAP Crystal Reports runtime engine for .NET Framework (32-bit)  Version 13.0.6.1027

SAP Crystal Reports runtime engine for .NET Framework (64-bit)  Version 13.0.6.1027

SAP Crystal Reports, version for Microsoft Visual Studio  Version 13.0.6.1027

 

I have the following references in my VB project:

CrystalDecisions.CrystalReports.Engine Version 13.0.2000.0

CrystalDecisions.Shared Version 13.0.2000.0

 

My application is compiled for Any CPU and .NET Framework 4.

 

Is there somewhere else I need to look for the properties I would like to access?

 

Do I need to upgrade my version of the Crystal Reports Developer components?

 

Thank you,

Vin

 

Message was edited by: Don Williams

More PDF TruncationAdjustment for Windows 2012 standard?

$
0
0

Recently upgraded our web server to Windows Server 2012 (64-bit) from Server 2003, also upgraded Crystal runtime from 2005 to the latest Crystal for .NET developer 13.0.16.  The "UsePrecisePositioningForText=1" and "TruncationAdjustment=2" registry keys have always worked successfully for us, unfortunately, on Windows server 2012 standard they are still cutting off part of my text when exporting to PDF.  Changing the TruncationAdjustment to 10 improves the amount of text getting cutoff but doesn't completely fix it.  Running the same web page from my Windows 7 64-bit developer machine with 13.0.16 installed works correctly and the text doesn't get cutoff.  Any ideas?

Problemas reportes en blanco Visual Studio 2013

$
0
0

Muy buenas, estoy teniendo problemas a la hora de generar reportes en visual studio 2013 con aplicación web, en la vista de programación el reporte aparece con información, pero cuando compilo, el navegador sale en blanco, no genera ninguna información, ni ningún error, ya probé en dos equipos distintos, con 4 navegadores diferentes, también trabajé con dos bases de datos diferentes para descartar que fuese la base de datos.

 

 

Si alguien me puede orientar le agradecería muchísimo.

1.jpg2.jpg

Failed to open the connection

$
0
0

I have written my first application with Crystal Reports in VS2010/VB.  It works fine in visual Studio, but when I compile and deploy it to other PC's, once I get to the part that should display the Report, I get the 'Failed to open the connection'. I am logged into the network tha same on both machines.  Any Ideas?

 

Thanks,

Cam

Date rounding change from release 15 onwards?

$
0
0

We have a .net WinForms application using Visual Studio 2013, .net 4.6.1, crystal v 13 (developed using 13_0_15 Visual studio integration and being run on a variety of runtimes from 13_0_9 to 13_0_15)

 

One of our customers reported today that data on their report was showing incorrectly.

On investigation, the date in question was being sent in to the report as 31st December 2014 23:59:59.980, but was being displayed as 1st January 2015 00:00:00.000

 

This change was not reproducible in our dev environment until we upgraded the Crystal runtimes to 13_0_15 and 13_0_16 (from 13_0_14). So it seems like a change was introduced in release 15 that changed this behaviour. There is no mention of this change in the release notes, so is this an issue that is likely to be resolved in a future development?

 

thanks

 

James.

CrystalReportViewer cannot see the toolbar images, nor print

$
0
0

Hi,

 

I am converting an asp.net 2,0 web app that was originally developed in Visual Studio 2005 that targets .NET 2.0.  CrystalDecisions version is 10.2.3600.0.  The new web app is now in Visual Studio 2015 targeting .NET 4.  However, when CrystalResportViewer page comes up, images in the tool bar icons are missing.  When tyring to use the print function, it cannot find it either.  I have the aspnet_client under both my project

root and the IIS root.  It used to work this way.

 

Thanks

Caroline

blank crystal report on VS2013

$
0
0

I have installed CRforVS_13_0_16 and CRRuntime_32bit_13_0_16.msi on my 32 bit Window 7 machine. I am using Visual Studio professional 2013.

I have created a report which contains only text . This report is coming fine in "Main Report Preview" but when i am running my page on browser. the page is coming as blank. I have read all discussion regarding this, but still not able to resolve my problem.

my code is following

 

        protected void Page_Init(object sender, EventArgs e)

        {

            ReportDocument crystalReport = new ReportDocument();

            crystalReport.Load(Server.MapPath("CrystalReport2.rpt"));

            CrystalReportViewer1.ReportSource = crystalReport;

            CrystalReportViewer1.RefreshReport();

        }

 

When I am running same code on different machine , it is successfully displaying report.


Crystal Reports and External Data Sources

$
0
0

Are there certain steps that need to be taken to allow Crystal to pull data from a data source that is not Local?

 

I have a report that works fine on my local machine, but when i try to go to a different computer there seems to be a connection issue between the report and the server, and that delay causes the Report to be unable to display.

 

has anyone had any trouble with reports and using external data sets? and how did you fix it?

Getting Failed to load database information when calling Crystal from VS12 accessing xml files.

$
0
0

Have Crystal 2013SP5 (14.1.5.1501) and VS2012

 

Just trying to run Crystal over simple xml files.

 

Within SAP Crystal Reports the report is generated without any issues except:

 

- when create data source using XML and Web Services got message "A stored  procedure has been used in this report. Please make sure that no SQL ....). This does not make sense since defining under xml don't know where Crystal thinks the stored procedure is coming from?

 

 

When I try and call the program using C# VS 2012 get message Failed to load database information.

 

Code is very very simple

 

                    //code to generate xml here!

 

 

                    ReportDocument crystalReport = new ReportDocument();

 

                        crystalReport.Load(currentDirectory + @"\Reports\FormulaMixAP.rpt");

 

 

                    //populate a couple of report parameter fileds

                    crystalReport.SetParameterValue("uomQty", Main.uomQty);

                    crystalReport.SetParameterValue("uomBaseUnit", Main.uomBaseUnit);

                    crystalReport.SetParameterValue("uomType", Main.uomType);

 

 

                    //Call the report

                    crystalReportViewer1.ReportSource = crystalReport;

                    crystalReportViewer1.Zoom(2);

 

 

I have been searching internet and SAP forum site for a couple of days for similar issue and solutions and it does not seem that many just try and access xml files directly without using ADO.NET (xml) connection.

 

I have read the Crystal help and still none the wiser.

 

Is the ONLY way to read xml files via ADO.NET (XML) and not XML and Web Services?

 

I am using a local install of SQL 2014.

 

 

Thanks.

Application stopped working

$
0
0

Hi,

 

I have build an application in VB.NET with crystal reports. It runs in my laptop. It also runs in my client's computer. But each time I generate a bill or a report (in Crystal Report), the application stopped working. It says...

 

Description:
Stopped working

Files that help describe the problem
:
  C
:\Users\Manager\AppData\Local\Temp\WER46BF.tmp.WERInternalMetadata.xml
  C
:\Users\Manager\AppData\Local\Temp\WER7030.tmp.mdmp

Read our privacy statement online
:
  http
://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement isnot available, please read our privacy statement offline:
  C
:\Windows\system32\en-US\erofflps.txt


I am unable to solve this. This never happened to me. One of my friend posted a question in StackOverflow, but didn't get any answer.


I've reinstalled .NET framework and tried again, but failed.


What should I do ?


For your information, I am using Visual Studio 2010, MySQL, Crystal Reports 13.0.14

Edge clarification

$
0
0

Hello,

We are using the SAP Crystal Reports runtime engine for .NET 32 bit (version 13.0.8.1216).  We understand that the way printing was done in IE was via the activeX print control.  We know that Edge will no longer support activeX controls.  When we try and print in Edge, it goes straight to pdf.  Do subsequent versions of the SAP Crystal Reports runtime offer any other print options - or will users continue to be directed to pdf?

Thanks for any help anyone can provide

CRRedist2008_X64 runtime with windows 10 64 bit

$
0
0

I use crystal report with visual studio 2008.I install CRRedist2008_x64 runtime setup on windows 10 64 bit operation system.Opening report on my project that gives "Unable to cast com object type" error. CRRedist2008_x64 runtime setup support windows 10 ? How can I resolve this problem?

Thanks...

Exception while exporting the CrystalReport to PDF/Excel/Word

$
0
0

My .NET application works fine when I use the CrystalReportViewer to view the generated reports and later export to pdf/excel/word.
However it throws me this runtime exception when I try to export the report programmatically to one of the formats as mentioned above.

 

The code basically tries to export the crystal report to a certain format

 

For ex:

rptLayout.SetDataSource(dataset);

rptLayout.ExportToDisk(ExportFormatType.PortableDocFormat, "C:\\TEST.pdf");

 

 

 

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'.

 

A little bit of search on the web yielded me no proper response except to install latest CR Runtime.

 

My dev pc configuration

 

  • IDE is Visual Studio 2010
  • Programming language as C# .NET 4.0
  • Version of SAP Crystal Reports for Visual Studio : 13.0.14.1720

 

Can anyone at SAP let me know what could be the possible reason for this issue

 

This issue needs to be fixed on priority in our application

 

Thanks

Srivatsa

CrystalReportViewer cannot see the toolbar images, nor print

$
0
0

Hi,

 

I am converting an asp.net 2,0 web app that was originally developed in Visual Studio 2005 that targets .NET 2.0.  CrystalDecisions version is 10.2.3600.0.  The new web app is now in Visual Studio 2015 targeting .NET 4.  However, when CrystalResportViewer page comes up, images in the tool bar icons are missing.  When tyring to use the print function, it cannot find it either.  I have the aspnet_client under both my project

root and the IIS root.  It used to work this way.

 

Thanks

Caroline


vb.net load crystal report give me an error

$
0
0

Hi,

 

When I try to run following vb code to show a crystal report, it give me an error

How could I solve it?

Thank you

 

error message

Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

 

 

 

Private Sub printreport()

        Dim ds As New dsinvoice

        Dim dtinvoice As DataTable

        Dim drinvoice As DataRow

 

        dtinvoice = ds.Tables.Add("dtinvoice")

        dtinvoice.Columns.Add("name", Type.GetType("System.String"))

        dtinvoice.Columns.Add("address", Type.GetType("System.String"))

        dtinvoice.Columns.Add("tel", Type.GetType("System.String"))

        dtinvoice.Columns.Add("invoiceid", Type.GetType("System.Int32"))

        dtinvoice.Columns.Add("ponum", Type.GetType("System.String"))

        dtinvoice.Columns.Add("date", Type.GetType("System.DateTime"))

        dtinvoice.Columns.Add("remark", Type.GetType("System.String"))

        dtinvoice.Columns.Add("sale", Type.GetType("System.String"))

        dtinvoice.Columns.Add("transport", Type.GetType("System.String"))

 

        drinvoice = dtinvoice.NewRow

        drinvoice.Item("name") = "日本城"

        drinvoice.Item("address") = "日本城行"

        drinvoice.Item("tel") = "22222222"

        drinvoice.Item("invoiceid") = 1000

        drinvoice.Item("ponum") = "opnum"

        drinvoice.Item("date") = Now

        drinvoice.Item("remark") = "日本城日本城日本城日本城"

        drinvoice.Item("sale") = "陳小姐"

        drinvoice.Item("transport") = "阿全"

 

        Dim objRpt As New rptinvoice

 

        objRpt.SetDataSource(ds)

        CrystalReportViewer1.ReportSource = objRpt

        CrystalReportViewer1.Refresh()

    End Sub

?" indicates character encoding issues with the PDF export.

$
0
0

ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);IMG_23042016_131243.png

charts

$
0
0

Hello,

 

I am using CR for VS 13.0.16. I want to format charts:

- Setting dedicated colors to variables

- Setting the first day of week for grouping weeks (CR seems to have Sunday for the first day)

- formatting x-values

- formatting the direction/rotation for labels (for example 45 degrees)

 

Where can I find something about formatting? In the properties for the Chart I didn't find anything about this .....

 

Thanks for any help

Andreas

Crystal Reports upgrade problem going from 13.0.2 to 13.0.16

$
0
0

I am upgrading a Windows desktop application from Crystal Reports 13.0.2 to 13.0.16 and am seeing problems.  The CrystalReportViewer is displaying the hard coded strings of the report title and column headers properly.  And the subreports that display the page headers and footers are working.

 

But no data is displayed.  I set a breakpoint and can see that the dataset being passed to the ReportDocument has data.

 

I ran the rpt file with no changes and saw this behavior.  I loaded the report in Visual Studio 2010 after running CRforVS_13_0_16.exe.  I checked the Datasource Location, verified with Database Expert the fields matched, and ran Verify Database and it said everything is up to date.  I then saved the file and upgraded it to the latest version.  I am running the application under the "SAP Crystal Reports runtime engine for .NET Framework 13.0.16.1954".  I see the exact same behavior as before.

 

I am at a loss for what to check next.  Any thoughts would be appreciated.

 

Thanks,

Tom

after adding Crystal reprots class library isnt reffred.

$
0
0

i have a windows application which have multiple class liubrary

 

windows application:

  1.           User class library
  2.           Inventory Class library
  3. purchase Class Library
  4. Sales Class Library
  5. Accounting Class Library
  6. and more other according to their Functionality

 

i try to use crystal reports in sales class library to make print layout for the sales bill. after adding and creating reports when i finally complied i find the application where i created instance of Sales class library the reference is invalid whether the .dll for the same class library already in reference. if i delete that reports generated there in that sales class again the .dll is reffed perfectly in main project.

 

i didn't understand why it is and didn't find any solution to solve that. plz help me regarding this.

Viewing all 3636 articles
Browse latest View live


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