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

I have upgraded CR version from 13.0.2000 to 13.0.13.1597 and using VS2013. all of the solution is running error free but the problem is, CR viewer is not displaying anything (when i run the solution i just find out a blank web page on the browser).

$
0
0

any information regarding this issue?

Thanks for helping in advance


Remove schema information

$
0
0

Hi,

 

 

I'm using "Crystal Reports for Visual Studio" version 13.0.13.1597 with C#/.Net 4.5. I'm connection to an Oracle database and I'm searching for a way to remove the schema information of the report.

 

Scenario:

We create reports for customers using our development database (schema "X"). Apparently Crystal Reports stores this information and when the SQL is generated, the tables are fully qualified, eg. "X.CUSTOMERS" as "CUSTOMERS". This is kind of an issue because we have several databases for testing (with the same database tables, views, etc, but different data). When we start our application we can specify start parameters to tell the application to which database (read: schema) it should connect, e.g. "TestDB1", "TestDB2", etc. The report connects to the desired database (via 3713954 - Changing server/database of a report in code), but of course it now should use the tables of that schema, not "X" which was used when creating the report.

 

I found 3713954 - Overridden Qualified Table Name issue which sounds like a similar request, but it's quite old and the outcome is not applicable for my scenario. I've already experimented with CrystalDecisions.CrystalReports.Engine.Table.Location, but without success (also, setting location always performs a "VerifyDatabase", so it's pretty slow)

 

I guess what I'd actually like to set is CrystalDecisions.CrystalReports.Engine.Table.RasTable.QualifiedName, but the "RasTable" is not publicly accessible.

 

Any suggestions are welcome.

 

Thanks,

Markus

"The system cannot find the path specified" error

$
0
0

Hi, Thanks for taking the time and reading.

I had to update an old report that was made in CrystalReports. I copied the rpt files and pasted them into a csharp solution in VS 2010.

The report structure is of a Main report and 6 subreports. I have to run this Main report many times and feed it a different integer as a parameter.

 

 

I can preview the report in report viewer perfectly. When i try to export the main report into a pdf format

i get an exception. I have tried a few different formats and it spews the same error. 

 

 

 

Oddly enough the export sometimes works if the report i am previewing has the "Save data in the report" check box checked. My guess is that this is cached. Also when i run just the subreports through my application, it works.

 

 

 

Things i have tried:

  I installed: CRRuntime_64bit_13_0_13

  I installed: CRforVS_13_0_13

  Took a look at the Procmon and i could not find an access denied error

  Event Viewer has no detail.

  Changed Registry values of ConnectionDirectoryPath and ReportDirectoryPath to "c:\"

 

Code:

 

 

  if (!Directory.Exists(filePath))

  {

  Directory.CreateDirectory(filePath);

  }

  string fileName = filePath + string.Format(GlobalVaraiables.FILE_SAVE_NAME, i);

 

  cryRpt.SetParameterValue(GlobalVaraiables.FUND_DATA_KEY_PARAMETER, i.ToString());

 

  cryRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fileName);

 

Error message:

 

  System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.

 

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

    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.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)

    at FundDataPDFSaver.SaveReport.GenerateReports(List`1 l) in C:\Users\user.name.here\Documents\Visual Studio 2010\Projects\FundDataToPDF\FundDataPDFSaver\SaveReport.cs:line 74

  

System Details:

Windows 7 Enterprise N  64 bit

ServicePack 1

 

IDE:

Visual studio 2010 .Net framework 4

Application is set to run as "Any CPU"

 

CrystalReports :

  dll's: 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

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

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

 


Thanks for your help

Silent Installation For Crystal Reports Runtime Engine

$
0
0

Hi

 

I am now using vs2010 and I had created a setup package for my project.

 

I had added the merged module CRRuntime_13_0_1.msn into the setup project.

 

After building the setup package, I got the following items:

Project.msi

setup.exe

 

So, by executing the setup.exe, the program will check all the prerequisite. If those are not existed, the setup program will try to install.

 

Everything is fine. The program can detect the workstation missing the CR Runtime and installing it accordingly

 

Now, we want to deploy it to the whole company. We had decided to execute the setup package using a batch file.

 

So, we want to install the program silently. However, every time we call the setup.exe, it mentioned that we are required to accept the EULA from the SAP. The user is required to click the accept button on the screen and it is no longer a silent installation.

 

I had tried a number of method to suppress it but no luck. Is there a way to suppress the EULA?

 

Thank You!

Different SQL queries on server

$
0
0

Hello there

 

We have a strange problem with a report.

The queries that the report generates on the server are different to the queries that are generated on my local machine.

I saw that while running the MS SQL profiler. I already compared the schema from the local database and the server database, they are definitely the same. I'm also sure it's the same .rpt file that is ran. I also reinstalled Crystal Reports both on my local machine and on the server, no differences spotted.

In the wrong query on the server is a table missing and thus the results are different. The query does not join tables on the server, but it does on my local machine.

 

I uninstalled my installation of crystal reports on my local machine and installed the runtime that is installed on the server. The result was that the query on my local machine still is correct.

 

Server information:

OS: Windows Server 2008 Standard SP1

CR-Runtime: Crystal Report 2008 Runtime SP4

Database: Microsoft SQL Server 2008

 

Local machine information:

OS: Windows 7 Enterprise SP1

CR-Version: Crystal Reports 2008 SP4

Database: MS SQL Server 2008

 

We use Crystal Reports Assembly version 12.0.2000.0.

 

We need a solution for this problem since we're running out of ideas where this error comes from.

"Log on failed" with ODBC and Stored Procedure

$
0
0

I am in the process of porting our application from CR10 to CR.NET and am having some trouble setting the log on info.

 

I have a report that was designed against a stored procedure and a development database.  The connection at design time is ODBC to a SQL Server.  At runtime I want to set the database and logon credentials to that of the production server, set the stored procedure parameters, and then display the report.  No matter what I do always get "Log on failed" error.

 

After having considerable trouble with ApplyLogOnInfo on the tables where it seemed to not actually apply my changes, I finally found code which appeared to work elsewhere on this forum.  So this is the code that I have now, but the call to VerifyDatabase on the report always throws the Log on Failed exception:-

 

void SomeClass::SetLogOnInfoForReportRecursively(ReportDocument^ ReportObj)

{

        CrystalDecisions::Shared::TableLogOnInfo^ l_pTableLogOnInfoToSet = gcnew CrystalDecisions::Shared::TableLogOnInfo();

        CrystalDecisions::Shared::ConnectionInfo^ l_pConnectionInfo = l_pTableLogOnInfoToSet->ConnectionInfo;

       

        l_pConnectionInfo->AllowCustomConnection = true;

        l_pConnectionInfo->ServerName = gcnew String(m_strServerName);

        l_pConnectionInfo->DatabaseName = gcnew String(m_strDatabaseName);

        l_pConnectionInfo->UserID = gcnew String(m_strUserID);

        l_pConnectionInfo->Password = gcnew String(m_strPassword);

 

        DbConnectionAttributes^ l_pConnectionAttributes = gcnew DbConnectionAttributes();

        l_pConnectionAttributes->Collection->Set("Database DLL", "crdb_odbc.dll");

        l_pConnectionAttributes->Collection->Set("QE_DatabaseName", String::Empty);

        l_pConnectionAttributes->Collection->Set("QE_DatabaseType", "ODBC (RDO)");

        l_pConnectionAttributes->Collection->Set("QE_SQLDB", true);

        l_pConnectionAttributes->Collection->Set("SSO Enabled", false);

 

        l_pConnectionInfo->Attributes = l_pConnectionAttributes;

       

        //main connection

        ReportObj->SetDatabaseLogon(l_pConnectionInfo->UserID, l_pConnectionInfo->Password, l_pConnectionInfo->ServerName, l_pConnectionInfo->DatabaseName, false);

       

        //other connections

        for each(CrystalDecisions::Shared::IConnectionInfo^ pConnection in ReportObj->DataSourceConnections)

        {

            pConnection->SetConnection(l_pConnectionInfo->ServerName, l_pConnectionInfo->DatabaseName, l_pConnectionInfo->UserID, l_pConnectionInfo->Password);

            //pConnection->SetLogon(l_pConnectionInfo->UserID, l_pConnectionInfo->Password);

            pConnection->LogonProperties->Set("Data Source", l_pConnectionInfo->ServerName);

            pConnection->LogonProperties->Set("Initial Catalog", l_pConnectionInfo->DatabaseName);

        }

 

        // Now we need to set the log on info for any subreports otherwise they will always look for the datasource they were set up with.

        if (!ReportObj->IsSubreport)

        for each (ReportDocument^ l_pSubReport in ReportObj->Subreports)

             SetLogOnInfoForReportRecursively(l_pSubReport);

       

 

 

        for each (CrystalDecisions::CrystalReports::Engine::Table^ l_pTable in ReportObj->Database->Tables)

        {

            TableLogOnInfo^ l_pCurentTableLogOnInfo = l_pTable->LogOnInfo;

            l_pCurentTableLogOnInfo->ConnectionInfo = l_pTableLogOnInfoToSet->ConnectionInfo;

 

            l_pTable->ApplyLogOnInfo(l_pCurentTableLogOnInfo);

            if (!l_pTable->TestConnectivity())

            {

               // handle error situation

            }

        }

}

 

... then the calling code

SetLogOnInfoForReportRecursively( pReportObj );

// l_Parameters contains the stored proc param name/values pairs to set at runtime

for each (KeyValuePair<String^, String^> param in l_Parameters)

        pReportObj->SetParameterValue(param.Key, param.Value);

       

pReportObj->VerifyDatabase();

 

which then fails.  Can anyone see what I am doing wrong?

 

Thanks

Creating Report and connecting to database

$
0
0

Hi I am trying to create a report using Crystal Reports and VB.net, However when I use the database expert to connect to the database I get

the error code 0xbe9, cannot open the database.

 

It sometimes work and sometimes do not.

 

Please help

Regards

Navin

Get error when passing server name to Crystal Reports in Visual Studio 2012

$
0
0

Hello,

 

I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection.  Database Vendor Code 17.  I use SQL OLEDB as the provider.  It worked before.  Not sure what has happened.

 

Any help is much appreciated!!!

 

John


Crystal Reports with Visual Studio Field Issues

$
0
0

I have an issue where I have created a report and I am using C# code to retrieve a value from a SQL server database and the way the value is displaying on the report is wrong.

The value from the database is "123456" but on the report it is showing up as "123,456.00"

I have tried to format this field every type of way but it always appears the same. It is currently a Formula Field because this number will be used in another Formula Field to generate a barcode.

I created another Formula Field and used

Replace(Replace(ToText({@TagID}),",",""),".","")

That replaced the comma and decimal point just fine, but the zeros remained, displaying the value as "12345600"...still wrong. I do not want a hack type of solution to remove trailing zeros, because some values put into that database might have zeros, such as "500" or "1000".

It seems like the system in which formatting objects in Crystal Reports inside Visual Studio is very limited. Please tell me there is a solution for this issue, it is so tedious!

Thank you for your time!

I am using vb.net 2013 and Crystal 2013,

$
0
0

I am having a problem when deploying the vb.net project via clickOnce, when I try and install it on the client it gives me the message , CrystalDecisions.ReportAPPServer.CommonObjectmode 1 Version 13.3.2000.0 is missing and must be installed in the Gac,  What am I missing on the Client

Display only graph in the Crystal report viewer

$
0
0

Background:

 

We used Crystal Reports ver10 to display various graphs in our ASP.Net 2.0 Web Application (Visual Studio 2005)

 

We recently migrated our application to .NET 4.5 and Crystal Reports ver13 (Visual Studio 2012)

 

Issue:

 

Now, the Crystal Report Viewer control loads the graph inside an <IFRAME> which shows the whole page with the graph placed on the right bottom corner instead of just the graph image as it used to previously.

 

I have checked various properties that hides the tree and the toolbar and I am unable to get rid of the whole page.

 

Query:

 

Is there a way to not display the page and display only the image that contains the graph? OR

Is there a way to not render the whole <iframe> and just display the graph image inside a <div> as it used to happen before?

Advice needed with lining up lines between parent and subreport

$
0
0

I have a report where the main report includes a box and 6 interior vertical lines. The box and lines start in a group header and end in a group footer. Details has several sections, and one of the sections includes a subreport (suppressed when there is no data) that crosses the interior lines. This report is used by multiple customers on a variety of printers.

 

Inside the subreport, there are two details sections. One detail section has a background color defined.

 

When the report is generated and the subreport contains data, the subreport section with the background color obscures the line defined on the main report.

 

We have tried to work around this behavior by adding matching lines in the detail section of the subreport, but we have been unable to get the lines within the subreport to nicely align with the lines in the main report. We'll think we get it fixed up for one printer, but then they are off on another printer.

 

We have turned off the background and removed the lines. This gives us a perfectly straight line, but the users really want the subreport to have alternating colors.

 

What other options do I have?

Upgrading V9.1 Crystal Reports for Visual Studio .Net 1.1

$
0
0

Hi there

 

I am supporting an old .Net 1.1 application developed in Visual Studio 2003 that contains .rpt files that were built with the bundled version Crystal Reports (v9.1 I believe). I am looking at upgrading these (and the application) to the latest version possible.

 

Does anybody know of any documentation for this process - or can anybody point me in the right direction.

 

Cheers

 

Julian

Adding maps to crystal reports

$
0
0

Hi,

 

I have some geographic data's, I need to display those data's on a map in the crystal reports.How to add map in the crystal report and display the track points in the map, Please advice.

 

Regards,

Princy

Creating XML with Crystal Reports

$
0
0

Hi,

I have a question about creating a XML file with Crystal reports and the crytsal reports Runtime.

we Need to create a XML file with the follwing string lines (the lines are only the start of the file)

 

<?xml version="1.0" encoding="UTF-8"?>                         

<tns:manageTradeCardsRequest xmlns:tns="http://schemas.nav.gov.hu/EKAER/1.0/ekaermanagement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.nav.gov.hu/EKAER/1.0/ekaermanagement">                         

     <tns:header>                    

          <tns:requestId>RRRID_0062681707</tns:requestId>               

          <tns:timestamp>2014-12-29T16:15:29+01:00</tns:timestamp>               

          <tns:requestVersion>1.0</tns:requestVersion>               

          <tns:headerVersion>1.0</tns:headerVersion>               

     </tns:header>                    

     <tns:user>                    

 

I Need to know if I can create exactly this Output with Crystal reports (first in the designer and later on I want to create the XML file in my appliation with the cr Runtime).

I started with some tests but I am not an XML expert and the results of my tests are frustrating. But if I would know, that such a file can be createt with the XML Export in Crystal reports, then I would go this way.

 

not even the suppress of the xmls command of Crystal Report is working.

 

my question: Can anybody tell me, if the Output of this XML structury is possible to that so it is worth for me to spend time on this

 

many thanks

 

joerg


CR 2011 Report SQL Performance

$
0
0

Hi All,

 

First off using CR 2011, Windows Server 2008 R2 64-bit, SQL Server 2008 R2 64-bit, CR Runtimes 64 & 32 bit - installed version 13_0_10

 

I have a CR that runs fine on development and staging but on production is ungodly slow.  I have narrowed it down to a group of subreports that their SQL Query is running in 1sec on development and staging, but on production it takes 25 minutes.  I checked the execution plan and they are pretty similar in performance cost.

 

The only difference that I know of between the environments is the SQL Server.  On development/staging we are using SQL Server 2005 and on production we are using SQL Server 2008 R2 as previously noted.

 

The query is a very extensive query and before I go and re-program the subreports to use a stored procedure does anyone have any advice on how to make the query work as good as it does on dev/staging.  Settings, etc on the production server?

 

Thanks in advance!

 

Jim

Everything opening in new tab(s) in all browsers

$
0
0
  • Development environment: Visual Studio 2012
  • .Net Version: 4.5.51209
  • CR Version: 13.0.2000.0
  • Application type: Website application
  • Language: C#
  • Issue: The application consists of a main page with the following layout...

   

     <frameset rows="59, *, 30" border="0" frameSpacing="0" frameBorder="0">

        <frame name="Header" src="FormHeader.aspx" noresize scrolling="no">

        <frameset cols="250,*" border="0" id="myFrameSet" frameSpacing="0">

            <frame name="Menu" id="Menu" src="FormMenuNew.aspx" noresize marginwidth="3" frameborder="0">

            <frame name="Body" id="Body" src="TestImplantList.aspx" frameborder="0">

        </frameset>

        <frame name="Footer" src="FormFooter.aspx" noresize scrolling="no">

    </frameset>

 

A sample of menu code that calls a report looks like this...

 

     <asp:HyperLink ID="HyperLink1" runat="server" Target="Body" NavigateUrl="~/Reports/FormFullImplant.aspx" Text="Full Implant" />

    

The code on the these pages gets the data for the report and redirects to another page that contains a Crystal Reports Viewer to display the report.

 

The menu has around 15 different reports that the user can run.

 

When running the application in Visual Studio, everything works correctly. Changing reports "refreshes" the Body frame with a new viewer and a new

report. However, moving the application over to the user's server, running the first report works correctly. Then, everything else (reports, forms, etc.) in the application open up in new tabs as opposed to displaying in the Body frame. This happens with all browsers.

 

Is this an application problem, a server problem, or something else? Any suggestions are welcome

Crystal Report Can be support to delphi xe5 ?

$
0
0

Hi,

 

I have work on delphi xe5. My questions is "Crystal Report Can be support to delphi xe5 ?". If  support then which is version support.

 

Regards,

 

Jayram.

RDC method - Windows Server 2012

$
0
0

We are in the process of certifying an application for Windows Server 2012. The app was developed in classic ASP and Visual Basic, and uses the RDC method (CRViewer.DLL and CRAXDRT.DLL) to execute and display reports.

 

We understand that Crystal Reports XI R2 was the last version in which RDC method was still available. Subsequent versions do not support RDC.

 

We have found two issues with Crystal Reports XI R2:

(1) SAP does not offer any form of support for that version.

(2) It is not supported on Windows Server 2012 so we will not be able to install on that OS version.


Our question is: Do you offer any alternatives (version/runtime/component) after Crystal Reports XI R2, compatible with Windows Server 2012, that would allow us to continue to use the RDC method. Our main objective is to certify Windows Server 2012 for our application, however, re-writing the application in .NET specifically to certify the reporting component would not be feasible at this time.


Thanks for your time.

 

Regards,

Mansoor

Is there a way to remove the SP_Columns_Rowset calls to improve performance?

$
0
0

It seems that Crystal Reports was calling this SP_Columns_Rowset many times across the Crystal Reports. At 1 time long ago I thought an older version was fixed to remove all these extra calls. We are using Crystal Reports XI R2 SP4 implemented with .NET 4.0.

 

Is anyone aware if these extra calls have been removed in any of the newer versions? Over WAN connections these extra calls are very pricey!

 

Thank you!

 

Jeff

Viewing all 2556 articles
Browse latest View live


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