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

BUG in PrintOutputController.PrintReport with CRRuntime_12_6_mlb.msi

$
0
0

Hi,

 

Problems with Report Application Server(RAS) component (PrintOutputController.PrintReport), instead of PrintToPrinter method 


A customerwithCRRuntime_12_4_mlb.msiinstalledruntimeinformed us of thefollowing problem:

 

Documents are printed as the default printer options and don’t assume any changes for Duplex printer


Ifset to print on one side[1-sided] does not acceptthe option ofprinting onfront and back.

If set toprintduplexon  [2-sided], does not acceptthe option of printing on one sideof the page.

 

I supposed that the same problem at de forum:http://scn.sap.com/thread/3193889
(It works if you use PrintToPrinter, doesn't work with PrintOutputController).

 

That problem was corrected with CRRuntime_12_6_mlb.msi (CRRuntime_12_5_mlb.msi have the same problem as before).

 

Butthis newruntimeintroducedthe following BUG:
     Concatenatedstrings withchr(13) are shownwith thelinefeed (ok), but are printedoverlapping(not ok)
     It's strange becausethe problemoccurs only in theGroupand Report Footerand prints well, eg, forDetailssection!

 

The argument offaulty printdrivermust be rejectedbecause itprints wellwith CRRuntime_4.

 

What happened?


Crystal Print Control got Error

$
0
0

Hi,

     i used to take print from viewer, at the time Export and Print window came,

 

after i searched, Crystal Report Viewer properties set Print mode to 'ActiveX'.  working fine in Locally. Once deployed in server got error message like.

 

Crystal Printer Control got below like after loading

 

" communication error occurred. printing will be stopped. "


please suggest some solutions,



Regards,

Manikandan

cr2008 – Huge delay sending to the printer spooler.

$
0
0

Hi,

Happy New Year

 

 

System requirements:

 

Windows 8 Enterprise (System type: 64-bit - Operating System, x64-based processor)

 

Development application tool: Microsoft Visual Studio 2008

 

Crystal Reports XI (Product version: 11.0.0.2495)

 

Crystal Reports 2008:

       CR Developer is 12.6.2.1782.

       Distributed runtimes: CRRuntime_12_6_mlb.msi

 

 

Three impressionswith2356pagesprinting were performed

(Print option: Start printing after last page is spooled)

Time andfile sizewere obtainedwhen sending toprinter spooler:

With crXI
– 60 secondsand8.16 MB

cr2008(
PrintOutputController ( RAS ))
– 164 seconds and 178MB

cr2008(withP2P)

– 3734 seconds and 450 MB


The differences intime and file sizesentare unbelievable!

 

 

How canresolve thesediscrepancies?

 

A patch for this situation is absolutely necessary!

 

Perfeito Aguiar

How does a UFL function return a date range?

$
0
0

We have some very old UFLs that we're considering rewriting in C#. Some of the functions in the UFLs return a Date Range. Is this supported in the COM/.NET world? If so, what data type is used to return a Date Range?

 

Thanks

 

- rick cameron

Creating Address book provider and Check names feature in crystal report

$
0
0

Hi,

 

In Crystal X1 R2, while exporting report to MAPI, it will launch new dialog with Check names and Address book .

 

But however in the latest runtime, this feature was removed.

 

I want to bring this features again back to crystal report.

 

while analyzing this, we found that both Check names and Address book dialog were similar with Microsoft outlook dialogs.

 

Is there any API's available to create those dialog.

 

Please guide me to develop this.

 

Thanks

Cannot Load File C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

$
0
0

I'm Using VS 2012 with CR for VS SP5 (2012) on my Development Machine with Win 7 64 Bit with MS Access ADO .Net Connection to Access 2007 DB File

 

Development and all is working fine and had also installed 64 bit CR on my Machine

 

On Executing the Application the following Err. is occuring

 

System.IO.FileNotFoundException was unhandled

  HResult=-2147024894

  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\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

  Source=mscorlib

  FileName=file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

  FusionLog==== Pre-bind state information ===

LOG: User = SGAI\Amit

LOG: Where-ref bind. Location = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

LOG: Appbase =******************************************

LOG: Initial PrivatePath = NULL

Calling assembly : (Unknown).

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: No application configuration file found.

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win64_x64/dotnet1/crdb_adoplus.dll.

 

  StackTrace:

       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

       at System.Reflection.Assembly.LoadFrom(String assemblyFile)

       at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)

  InnerException:

 

For Conferming That 64bit CR is installed properly I just created a simple app with CR Viewer and an Blank CR which is working fine.

 

Please Help

Visual Studio 2013, can't see crystal viewer

$
0
0

Version 12.0.21005.1 REL, installed CRforVS_13_0_9, NOTHING Crystal shows up in the toolbox.  Been trying for a LONG time now, just doesn't see it.  I am merely attempting to load the CrystalViewer into a test program, and I can NOT find a way to get it to show up!

 

Any help?  This seems to be unduly frustrating.

 

Nothing in the "Choose Items for .NET"

 

 

Some in the COM, though, load and puton form, get this:

 

 

Not sure where to go from here...  I did this in VS2008, and it seemed to work out of the box.

 

Thanks!

Load Report Failed - Server Only

$
0
0

Hello,

 

I have an asp.net C# application hosted on an Amazon EC2 server. I am trying to select a report using:

 

    ReportDocument rep;

 

    protected void Page_Load(object sender, EventArgs e)

    {

        string reportPath = Server.MapPath((string)Utils.GetSessionNavigator(this).GetDataFromCurrentPage(PageParams.Reports.Report));

 

        if (!IsPostBack)

        {

            rep = new ReportDocument();

        }

 

        try

        {

            if (!File.Exists(reportPath))

            {

                Response.Write("The specified report does not exist \n");

            }

 

            rep.Load(reportPath);

            //LoadReport(rep);

            rep.SetDatabaseLogon("******", "******");

            this.CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;

            this.CrystalReportViewer1.HasToggleGroupTreeButton = false;

            this.CrystalReportViewer1.ReportSource = rep;

        }

        catch (Exception ex)

        {

            Response.Write(ex.Message);

        }

    }

 

    private void Page_Unload(object sender, EventArgs e)

    {

        rep.Close();

        rep.Dispose();

    }

 

The report path is pointing towards my folder containing the reports, and the relevant file is being found with File.Exists, however upon using rep.Load, the exception message 'Load Report Failed" is being posted.

 

I have installed the correct runtimes as I have another application running on the same server, and that isn't having the same issues. Perhaps the reportPath is different but I am not sure.

 

Any advice would be greatly appreciated.

 

Thank you.


CrystalDecisions,CrystalReports.Engine.ReportDocument threw an exception

$
0
0

Trying to convert an old VS2008 app to VS2013, with latest (13.09...) DLL's.  When I try to run the program, I get:

 

 

With the following details:

 

It looks like CTOR is the constructor for the rascal, but the result is danged vague....

 

Failed to load database information.Error in File BillReport {Some numbers}.rpt

$
0
0

Hi Team I am having problm with Crystal Report for Visual Studio 2013.

I have developed windows application with Crystal Report and Visual Studio 2010.

Now when i try to run same code in VS 2013 with Crystal report for VS 2013. i am getting following error.

 

 

Failed to load database information.

Error in File BillReport {A677B982-B8FC-4349-8BE6-9D1DA6B33521}.rpt:

Failed to load database information.

 

Source : "CrystalDecisions.ReportAppServer.DataSetConversion"

 

I have used oledb connection to fill XML dataset.

That dataset is binded to Crystal report at run time..

Here is my code.

 

 

string sqlstr = "";

                sqlstr = "select * from billMaster where billid =  " + billId + " and merchantName = '"+merchantName+"' ";

cmd = new OleDbCommand(sqlstr, m1.ccon);

                if (m1.ccon.State == ConnectionState.Closed)

                {

                    m1.ccon.Open();

                }

                OleDbDataAdapter da = new OleDbDataAdapter(sqlstr, m1.ccon);

 

 

                BillPrint bp = new BillPrint();

Visual Studio 2013

$
0
0

Hi,

I installed VS 2013 update 2 and, then, the executable support pack 9 (v. 13.0.9.1312) of SAP CR, downloaded from snc.sap.com/docs/DOC-7824.

The template of CR does not appair when I open a CR report or when I want add a new CR report.

I have already re-installed the support pack.

I have also VS 2010 and MS-SQL 2014 standard on my PC.

Can you help me ?

Thans.

 

marco

Error when saving report

$
0
0

I receive the following error only when using CR 13 in vs 2010. Microsoft visual studio has encountered a problem and needs to close. After it close it restarts.

Print, ask for parameters, set table locations, but can't display report?

$
0
0

Dang, I'm sooooooooooooo close!  The attached VB code reads a file, modifies formulas, redirects tables to new ones, will evern PRINT the danged reports, but will NOT SHOW them?  I'm converting from an old VS2008 version, where all that was needed was a CrystalReportViewer2.Refresh().

 

It absolutely connects to the database - I've printed out numerous reports, but it will NOT display them.

 

What am I missing?

 

Private Sub ShowReport()

      Dim errstr As String = "No Error"

      Try

        Dim crtableLogoninfos As New CrystalDecisions.Shared.TableLogOnInfos()

        Dim crtableLogoninfo As New CrystalDecisions.Shared.TableLogOnInfo()

        'Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo()

        Dim CrTables As CrystalDecisions.CrystalReports.Engine.Tables

        Dim CrTable As CrystalDecisions.CrystalReports.Engine.Table

        Dim i As Integer

 

        errstr = "Loading Report"

        crReportDocument.Load(ReportName)

 

        'This code works for both user tables and stored

        'procedures. Set the CrTables to the Tables collection

        'of the report

 

            CrTables = crReportDocument.Database.Tables

            crReportDocument.SetDatabaseLogon("RPT", MyPassWord)

 

 

        'change formula values

        i = 1

        While (i < MaxParms) And (Parms(i, 1) <> "")

          errstr = "Setting Formula " & Parms(i, 1)

          crReportDocument.DataDefinition.FormulaFields(Parms(i, 1)).Text = Parms(i, 2)

          i = i + 1

        End While

 

        ' now add login info to each table, see if needs to be changed

        i = 1

        For Each CrTable In CrTables

          crtableLogoninfo = CrTable.LogOnInfo

                'crtableLogoninfo.ConnectionInfo.ServerName = "IQORA"

                crtableLogoninfo.ConnectionInfo.UserID = "RPT"

                crtableLogoninfo.ConnectionInfo.Password = MyPassWord

                CrTable.ApplyLogOnInfo(crtableLogoninfo)

                MessageBox.Show(CrTable.Name & " - " & CrTable.Location & " - " & TableNames(i, 1))

          If (i < MaxTables) Then

            If (TableNames(i, 1) <> Nothing) Then

              errstr = "Setting table " & CrTable.Location & " to " & TableNames(i, 1)

              CrTable.Location = TableNames(i, 1)

            End If

          End If

                'MessageBox.Show(CrTable.Name & " - " & CrTable.Location)

                i = i + 1

            Next

 

            errstr = "Display"

            'Set the viewer to the report object to be previewed.

 

            'MessageBox.Show(crReportDocument.FileName)

            CrystalReportViewer2.ReportSource = crReportDocument '"R:\Rpt60\IMC_Templatex.rpt"

            'CrystalReportViewer2.PrintReport()

            CrystalReportViewer2.Refresh()

            CrystalReportViewer2.RefreshReport()

 

 

        Catch E As Exception

            ' Let the user know what went wrong.

            MessageBox.Show("Report error:  " & errstr & E.Message)

        End Try

    End Sub

 

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

      Readparms()

      ShowReport()

    End Sub

0x800a1391 - JavaScript runtime error: 'bobj' is undefined error

$
0
0

Hi,

 

I am new to crystal reports. I have a requirement to display CR in ASP.Net web app.

 

I have installed SAP CR version for VS(13) in my machine.

runtime engine 64

 

Config :

 

window server 2008 r2(64)

.net framework 4

IIS Express 8

VS 2012

 

I have added a crystal report viewer control in my default page and given data source as "C:\sample.rpt"

 

web.config enteries:

 

<configSections>

    <sectionGroup name="businessObjects">

      <sectionGroup name="crystalReports">

        <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304, Custom=null" />

        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />

      </sectionGroup>

    </sectionGroup>

  </configSections>

 

  <businessObjects>

    <crystalReports>

      <rptBuildProvider>

        <add embedRptInResource="true"></add>

      </rptBuildProvider>   

      <crystalReportViewer>

        <add key="resourceURI" value="~/crystalreportviewers13" />

      </crystalReportViewer>

    </crystalReports>

  </businessObjects>

 

My app pool is default app pool which is classic mode

 

i have copied CrystalReportViewers13 to my project working folder

 

I have chosen IIS web server instead of IIS express in my project properties.

 

When I run in debug mode, i get the following error

 

0x800a1391 - JavaScript runtime error: 'bobj' is undefined error

 

<script type="text/javascript">

 

//<![CDATA[

 

bobj.crv.stateManager.setComponentState('CrystalReportViewer1__UI',eval('('+document.getElementById('__CRYSTALSTATECrystalReportViewer1').value+')'));

 

WebForm_InitCallback();new bobj.crv.ViewerListener('CrystalReportViewer1__UI',new bobj.crv.AspDotNetAdapter("__doPostBack('CrystalReportViewer1','VIEW-CONTEXT')", "VIEW-CONTEXT", "__CRYSTALSTATECrystalReportViewer1","WebForm_DoCallback('CrystalReportViewer1','arg','cb','ctx','errcb',true)","4.0.30319.18055"));//]]>

 

</script>

 

Pls. let me know how to solve it.

 

Thanks.

 


Vs2008 Win7(64 bit)an error has occurred while attempting to load the crystal reports runtime

$
0
0

HI,

I am working on win7(64 bit) operating system I have installed following components on machine

VS2008(pro) licensed.

CR2008Sp3

Following are the installed programs

Crystal report runtimesp3 12.3.0.601

Crystal report basic for VS2008 10.5.0.0

Crystal report basic runtime  for VS2008 10.5.0.0

Crystal report basic runtime  for VS2008(64) 10.5.0.0

 

I am getting the following error on runtime

 

An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports

runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports

runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information

 

 

Please let me know what else I need to view my crystal report.


Export to PDF - Section 508 Accessibility Compliance

$
0
0

I have a .Net program that includes several Crystal Reports.  The program uses Crystal to generate a report and then immediately export it to a PDF format which is saved and used through out the company.  Recently we've been doing checks and it was discovered that these PDFs are not compliant with  [Section 508|http://www.section508.gov/|section508.gov]

 

The two main issues discovered in the check were:

This document is not [tagged|http://www.acrobatusers.com/tutorials/what-are-pdf-tags-and-why-should-i-care|what are PDF tags and why should I care]; the reading order of the contents may be incorrect

None of the images in this document that need alternate text have it

 

Are there settings or properties that can be set in the Crystal Report document that would solve these issues when exporting the document to a PDF?  If not, is there a thrid party component I could use to solve these issues?  I already use [PDFSharp|http://pdfsharp.com/PDFsharp/|pdfsharp.com] to merge PDFs with different orientations (landscape/portriat) and to add security and set document properties like Title, Author, Description, etc.  But am unable to figure out how to add tagging or alternate text on images at that point.

 

If anyone has any advice on the subject I would greatly appreciate it.

Moved to VS 2010, installed SAP CR for VS 2010 and SP1 ~ crashes

$
0
0

Long story short - I created an app in VS 2012. Installed SAP CR and was in a healthy bliss. Unfortunately, environmental changes forced me to change to VS 2010. In doing so, all of my reports will not work. I can open the report in VS 2010. I can verify the database. However anything else I try, the report just crashes. When I run the application and it calls the Crystal Report, it just hangs. One of the things I noticed is that I can see the server, the username and password which I pass to it, however I do not see the database variable passed correctly.

 

None the less, everything crashes when I try to mess with the crystal reports. Any help would be appreciated.

VB.NET 2012 - Crystal Report - how to change or set crystal report data source by a connection string in app.config

$
0
0

Good Day everyone

Is there possible way to change the data source of my crystal report via connection string in a app.config? we don't want to change the crystal report's data source when we are changing SQL Server, this might help to reduce setting up using Visual Studio when there is a changes on a SQL Server or our servers (Like reformat or movie to other servers).

I hope someone can help me on this thanks and regards.

Crystal Reports for VB 2013 Fails on server 2008 with trying to read protected memory error

$
0
0

VB.Net 2013 program works and prints CR reports fine on development PC (Windows 8.1)  but fails on MS Server 2008 Standard every time you try and print a CR report. Program was upgraded from VB.Net 2010. Using CR version 13.0.9.1312 on server and workstations.

 

Program also fails with same error and at same location on MS Server 2012 R2.

 

All our VB.Net programs using CR now have the same problem.

 

Hard to pinpoint exactly where it fails, most often on a statement like this "Dim rptDocument as New ReportDocument".

 

References are CrystalDecisions.CrystalReports.Engine  13.0.2000.0

CrystalDecisions.Reportsource  13.0.2000.0

CrystalDecisions.Shared 13.0.2000.0

CrystalDecisions.Windows.Forms 13.0.2000.0

 

If u use a new VB.Net 2013 program, some reports work and some do not.

 

Error program receives "Attempted to read or write protected memory".

 

CR is the only program failing with this error.

SAP Crystal Reports for VS 2013 Premium

$
0
0

Service Pack 9 for SAP Crystal Reports, developer version for Microsoft Visual Studio is now available for download.  CRVS SP 9 does support VS 2013 professional.

 

But i want to know that it supports VS 2013 Premium or not??

 

 

Can anyone help me with the list of required installations for crystal report support with VS2013 Premium also?

 

I have tried installing Support Pack 9  64bit.msi and 32bit.msi from below link:

 

http://scn.sap.com/docs/DOC-7824.  But it is not working.

 

Message was edited by: Ludek Uher

Viewing all 3636 articles
Browse latest View live