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

CrystalDecisions.CrystalReports.Engine.ReportDocument.Load Issue

$
0
0

Hi,

 

I have a ASP.Net web application using crystal report. On few occurrences, it is throwing CrystalDecisions.CrystalReports.Engine.ReportDocument.Load error message. To fix the issue I have to reset the IIS.

 

What could be causing this and how to fix this issue permanently? Please suggest the solution.

 

 

CrystalDecisions.Shared.CrystalReportsException Message: Load report failed. Source: CrystalDecisions.CrystalReports.Engine Stacktrace:    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()     at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)     at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)     at

 

 

Regards

Anoop


need new log4net to match Crystal Update

$
0
0

I just installed the new update 12 for Crystal Reports. It includes all the CrystalDecision DLLs but does not include the log4net.

 

This new version has PublicKeyToken starting with 692fbea........ When I run my app now, it gives me a YSOD, complaining that it can't find the log4net with PublicKeyToken starting with 692fbea. I've got log4net in my web.config set with the old PublicKeyToken (starting 1b44e1d) but the YSOD still complains about not finding the new one.

 

Where can I get the new version of log4net with the new PublicKeyToken?

 

Thanks

Dave

Crystal Report Viewer Refresh Report?

$
0
0

Hey Guys,

 

Everytime I give crystalreportviewer1.refreshreport() it tells me it can't find a table in the database, but the data is not "live" when it first opens on the page.. so there has to be a way to refresh it right?  LOL Whats the trick?

 

J

 

My Current Code:

 

Private Sub ConfigureCrystalReports()            rpt = New ReportDocument()            Dim reportPath As String = Server.MapPath("1.1 Backlog.rpt")            rpt.Load(reportPath)        Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()        myConnectionInfo.DatabaseName = "database"            myConnectionInfo.UserID = "dbuser"            myConnectionInfo.Password = "dbpassword"            myConnectionInfo.ServerName = "dbserver"               CrystalReportViewer1.ReportSource = rpt        CrystalReportViewer1.DataBind()        CrystalReportViewer1.RefreshReport()    End Sub    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        ConfigureCrystalReports()    End Sub

 

Logon failed

$
0
0

I have reports developed under crystal 2008 have been running under vs2010 app just fine. Update to vs2013 and installed reports runtime for .net version 13.0.12.1494. the references in the project are all 13.0.2000.0. The reports now die with Logon failed message. What do I need to change/

Crystal Reports Viewer and Zebra Printer

$
0
0

Hi,

 

 

We have a legacy system that we've upgraded from VB6 / Crystal Reports 8.5 to .NET / Crystal Reports 14.1.1.1036.  We have a report which has historically been printed out of a Zebra 105SL Printer.

 

In the new system, we can get the report to print directly to the Zebra, and it functions perfectly.

 

Our problem is with the Crystal Reports Viewer.  We can preview the report fine, but when we print from the viewer itself, the actual print job appears momentarily in the Zebra's print queue, but nothing comes out of the printer.  Here's the code:

 

public void ShowReportViewerForZebra(ReportDocument report)

{          

  var printerSettings = new PrinterSettings();

  printerSettings.PrinterName = "ZDesigner 105SL 203DPI";

  var pageSettings = new PageSettings();

  report.PrintOptions.CopyTo(printerSettings, pageSettings);

 

  var viewer = new ReportsViewer();   // <= WPF window which contains CrystalReportsViewer

  viewer.CrystalReportsViewer.ViewerCore.ReportSource = report;

  viewer.Show();

}

 

I've already conceived of a workaround, wherein we use the Crystal Reports Viewer to preview the report, and create a separate print button.  My concern is the overall stability of this solution.  If we can't print to Zebra from the CrystalReportsViewer now, who knows if in subsequent releases we'll lose the ability to print *anything* to the Zebra Printer.

 

Here's the research I've done, thus far:

 

1.) Confirmed we have the latest version of the drivers: https://www.zebra.com/us/en/support-downloads/industrial/105sl.html#mainpartabscontainer=drivers

 

2.) Reviewed the following threads: http://scn.sap.com/thread/3244122, http://scn.sap.com/thread/3215010, http://scn.sap.com/thread/3607455

 

3.) Lastly, it appears that Zebra themselves is essentially saying that Crystal Reports *not* is a "close fit" solution for printing to Zebra =>  https://km.zebra.com/kb/index?page=content&id=SO6545

 

The legacy system printed to our Zebra fine for 12+ years... but if CR and Zebra no longer work (well) together, then such is life.  What was nice about the CR solution is that is allowed us to preview our output.

 

ALSO: if not Zebra, will you guide us to some alternative solutions for printing labels from a .NET desktop application?

 

Thanks for your help,

Aleks

 

 

EDIT: just fixed Item #2 to specify that Crystal Reports is *not* a close fit for Zebra

IIS Error

$
0
0

Hi,

 

I have a web application with visual studio 2010 and I'm using crystal to print invoices, order, etc.

 

My trouble appears after print more of 60 impressions of any type, doesn't matter if they are invoices or orders, I receive this error message:

 

Could not load the report

 

Then, to fix problem, I restart IIS and done

 

I already installed Service Pack 12 from this page SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads and the problem persist.

 

I tested my application when no one is conected and the problem persist.   

 

Anyone can help me?

 

Thanks in advance

Export programatically a drilldowndocument/ a subreport to stream and to disk

$
0
0

I am using Crystal report 2008 and Crystal Report for Visual Studio into a Visual Studio C# application. I want to export programatically a drilldowndocument (a subreport) to stream and to disk but i didn't find a way to do this. Can you help me with a solution please?

Thank you!

Export to Excel options in Crystal 2011

$
0
0

Hi, we recently upgraded to Crystal 2011 from Crystal XI...  Our new product uses the CrystalDecisions.Windows.Forms.CrystalReportViewer to display the final report and allow users to export out the report to other formats such as Excel.  In the old version, we used the CrystalActiveXReportViewer to achieve the same functionality.  The problem is that the old version, when exporting to Excel, gave more formatting options such as "Export page header and page footers", but the new version doesn't seem to have any of those options and our customers had gotten used to having that flexibility.  Is there any way to access that additional functionality in 2011?

 

Thanks,

Kent


Group sort order

$
0
0

I have a report that uses a parameter to determine what to print.  The issue I am having is that the order I pass the values in is not used in the group.  The group uses ascending order, so no matter what I pass in, it does this.  When I try to do it in specified order, it wants actual data.  My issue is that the data changes every time our Visual Studio service runs the report.  How can I get the report to use the sorted list I sent in instead of re-sorting it when it runs?  I have tried original order and specified order, neither gets me the result I need.  Let me know please, thanks.

Crystal Report Database Logon Failed

$
0
0

Developed reports in Crystal Reports XI R2 connecting to Sybase. Just upgraded to Crystal Reports 14 and Sybase 15 with new Client.

 

Reports are developed to connect to the database using OLEDB. When I open the report it's not finding the Sybase OLEDB provider.

 

When I try to just use these reports in ASP.NET application I get an error message "Database Logon Failed".

 

I do not see the Sybase driver for Crystal Reports any more.

How can you change the xml datasource location at runtime in VS.NET 2010

$
0
0

Hi,

 

Could any one please tell me as to how you can change the xml datasource location at runtime in VB.NET 2010, where the location of the datasource keeps on changing as well.

 

We have built an application in vb.net 2010 in which when you save the data it saves it .xml files as well as .xsd files. I have built a crystal report based on the .xml source and .xsd schema.

 

The problem is when the user is done with their data input and is ready for submission when they click on Submit Work Order it will create a folder based on lets say today's date and time which would be 20110106_083200 and another one lets say 20110106_083500 the .xml file of the save data will be stored in both these folders and my .xml datasource is supposed to come from the latest folder which would be 20110106_083500 in this case. Whatever data is save I'm supposed to redirect it to the latest folder.

 

I have managed to grab the latest folder, but just can't seem to change the location of my datasource to be displayed in the crystal reports. I know there are similar scenarios out there, and I have gone through them, they are still missing what I need. On another note, there is no login required. My code is as follows:

 

Private Sub ViewSubData_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim dsXMLDataset As New DataSet()

         

        'Dim dirSubData As DirectoryInfo = New DirectoryInfo(cNM_LocalDataFolder)

        'dirSubData.GetDirectories.OrderByDescending()

 

        Dim lastHigh As DateTime = New DateTime(1900, 1, 1)

        Dim highDir As String

        Dim subdir As String = ""

         

        For Each subdir In Directory.GetDirectories(cNM_LocalDataFolder)

            Dim dirSubData As DirectoryInfo = New DirectoryInfo(subdir)

            Dim created As DateTime = dirSubData.LastWriteTime

            If (created > lastHigh) Then

                highDir = subdir

                lastHigh = created

            End If

        Next

 

 

        Dim oRptdoc As New ReportDocument

 

        Try

            'dsXMLDataset.ReadXml(subdir & "\" & cNM_LocalDataFileWO & cNM_LocalDataFileExtension)

            oRptdoc.Load(cNM_LocalDataFolder & "\rptViewLastSubData.rpt")

            crvViewSubData.ReportSource = oRptdoc

            oRptdoc.SetDataSource(subdir & "\" & cNM_LocalDataFileWO & cNM_LocalDataFileExtension)

            'oRptdoc.Database.Tables(0).SetDataSource(subdir & "\" & cNM_LocalDataFileWO & cNM_LocalDataFileExtension)

        Catch ex As Exception

            MessageBox.Show(ex.Message.ToString())

        Finally

        End Try

    End Sub

 

Any help would be greatly appreciated.

 

Thanks,

Adnan.

Label height wrong

$
0
0

Since we moved to Crystal 13 all the label reports are not printing correctly anymore.

If we have a report (e.g. Herma 4450) printing 3x9 labels the last label on the page is almost half a label height off.

Has anything changed in printing labels, do we have to recreate all the reports?

 

Thomas

Aligning numbers on decimal symbol

$
0
0

Hello,

 

I need to align numbers on the decimal symbol. Is there any option to get the numbers aligned like this (but without the underscores)?

 

__20.81

___3.9

_729.841
7519.5235

 

W. Luimes

Visual Studio 2010 and SAP Crystal Reports 2013 - Javascript Error

$
0
0

I am upgrading Crystal reports 10 to Crystal Reports 2013, I downloaded the Crystal Reports for Visual Studio. Changed my visual studio project to reference the new Crystal Assemblies, copied over the "crystalreportviewers13" folder in my project path, and included the .js reference. (this solved a previous problem I was having), however when I try to run the report code, I get this wierd error:

 

MicrosoftJScript runtime error: Unable to get value of property 'value': object is null or undefined

 

And the report won't render in the browser, the SAP Crystal Toolbar will show up, but the report will not show up

 

please help

CR Print function fails on certain machines

$
0
0

Hello All,

 

I have a VS 2013 app that uses CR.  Several of my clients are reporting that when they hit the "Print" button on the report viewer, the Print Window does not show their printers, only "OneNote."  Another can see his correct printers, but when he selects one, it fails with: "Myreportviewer has stopped working."

 

All of them are using Win 7 and claim to have the latest Windows updates.  And I have asked them to update their printer drivers, which has not helped.  The printing function does work on at least a few dozen other machines.

 

I can't replicate the problem.  Any suggestions?

 

Thanks,

Charles Carroll


This field name is not known. on the server

$
0
0

I have an issue using RPT file to generate a report using my .NET web app on the server, locally the report is generated fine, but on the server it's giving me the error "The field name is not known":

 

[COMException (0x80041019): This field name is not known.

Details: errorKind

Error in File FormListAddons {74708A80-A1B6-494F-A141-C83C61F45047}.rpt:

Error in formula Object_Visibility:

'{visa_clients.addon1} = ""'

This field name is not known.

Details: errorKind]

  CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0

  CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +362

 

[FormulaException: This field name is not known.

Details: errorKind

Error in File FormListAddons {74708A80-A1B6-494F-A141-C83C61F45047}.rpt:

Error in formula Object_Visibility:

'{visa_clients.addon1} = ""'

This field name is not known.

 

The line mentioned above causing the error, is a script on crystal report to suppress the field if this condition is met:

{visa_clients.addon1} = ""

 

My PC is running Crystal Report version 11, however the Crystal Report runtime on the server running the version 10.5.1.0

 

Both locally and on the server, i'm using the same datasource. Even locally i'm connecting the database on the Server.

 

I would appreciate your help.

Report prompts for database login, although no database connection is set

$
0
0

Hey,

 

I'm using Visual Studio 2010, as well as Crystal Reports for .NET Framework (v13.0.12.1494).

I'm working on a tool, which collects data from a database and provides a list of objects to a report, to display this data. On my developer machine everything is working as expected, but when I want to run the tool on a test PC, a prompt pops up to enter database login credentials, once the report is opened. Since there is no database for the report to connect to, this prompt does not make any sense. The test PC has the runtime SP 12 installed.

 

This is where the report is created (the code-behind of a WPF window):

 

        privatereadonlyList<MeasureTestResult> m_MeasurementList;

        privatereadonlyMeasureLog m_ResultLog;

 

        privatevoid Window_Loaded(object sender, RoutedEventArgs e)

        {

            ReportDocument report = newReportDocument();

            report.Load("Sources/Report/ExportReport.rpt");

                       

            report.SetDataSource(m_MeasurementList);

           

            // wrap the result log object in an array, otherwise an error is thrown

            report.Subreports[0].SetDataSource(new[] { m_ResultLog });

 

            CrystalReportsViewer1.Owner = GetWindow(this);

            CrystalReportsViewer1.ViewerCore.ReportSource = report;

            CrystalReportsViewer1.ViewerCore.ToggleSidePanel = Constants.SidePanelKind.None;

        }

 

What can I do to get this to work?

Export to Excel options in Crystal 2011

$
0
0

Hi, we recently upgraded to Crystal 2011 from Crystal XI...  Our new product uses the CrystalDecisions.Windows.Forms.CrystalReportViewer to display the final report and allow users to export out the report to other formats such as Excel.  In the old version, we used the CrystalActiveXReportViewer to achieve the same functionality.  The problem is that the old version, when exporting to Excel, gave more formatting options such as "Export page header and page footers", but the new version doesn't seem to have any of those options and our customers had gotten used to having that flexibility.  Is there any way to access that additional functionality in 2011?

 

Thanks,

Kent

CR ODBC / .accdb report changing window / report sizes

$
0
0

Recently I upgraded my application which used an access .mdb file to ACE using a .accdb file. In the process you explained to me I had to start using ODBC because OLE DB wasn't supported. I used ODBC and though everything was fine, however I have just noticed some very strange sizing issues. Please see three pages in the attatched .pdf.

 

1. The vb.net window as programmed - fills in the whole laptop screen + a bit.

Reports1_Page_1.jpg

2. I run a report and the image is the report viewer showing ONLY about 3/4 of the report page. I cannot, using the zoom controls see the full report page in the viewer. The print is OK.

Reports1_Page_2.jpg

3. Close the report viewer and the vb.net window is smaller by about the same proportion - 3/4.

Reports1_Page_3.jpg

 

I can't send this out to customers, but don't have any idea how to trouble shoot - any ideas would be very welcome.

 

The basic code I use is

 

 

 

Thanks

CR for VS2008 10.5 error "This field name is not known" on Win2012 or later

$
0
0

I have a report that works fine in an ASP.NET 4.5 app in IIS on Windows 7 and Windows Server 2008 R2, but fails on Windows Server 2012 and Windows Server 2012 R2.

 

This is using Crystal Reports Basic Runtime for Visual Studio 2008 (10.5.0) x64. Installing 10.5 SP1 (10.5.1) did not help.

 

The datasource is an ADO.NET DataSet at runtime, with an XSD file at design-time.

 

I have debugged the app on the server to ensure the DataTable column is valid and present in the DataSet passed to CR.

 

The same report with the same database and query to build the DataSet runs normally up until it is run on Win2012 or later.

 

The error is "This filed name is not known."

 

CrystalDecisions.CrystalReports.Engine.FormulaException occurred

  HResult=-2147214848

  Message=This field name is not known.

Error in File C:\...{D106385F-1C37-4CE3-8106-E7798EF1F2F3}.rpt:

Error in formula  <Object_Visibility>.

'if ({ReportDetail_ds.DAY26} <> 'Y') then

'

This field name is not known.

  Source=CrystalDecisions.ReportAppServer.DataSetConversion

  StackTrace:

       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()

       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()

...

       Source=""

       ErrorCode=-2147217383

Viewing all 3636 articles
Browse latest View live


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