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

CR OK and CANCEL buttons in the parameter prompt do not respond

$
0
0

I have a .NET app which uses CR developer runtime (CRRuntime_64bit_13_0_xx.msi, xx = 10, 13) to display reports. Now I encountered a problem on a Windows 7 machine with .NET 4 Client Profile + Extended:

- OK and CANCEL buttons in the parameter prompt DO NOT respond.

 

First I thought it could be a sort of JavaScript issue, but:

- date pickers DO work

- calendar icons ARE present

- mouse hover highlights the OK and Cancel captions blue

- OK and Cancel tooltips appear properly

- AND: if I click into a text or date parameter field and then press ENTER, my parameter selection gets properly submitted as if I would press the OK button

 

Things I tried (which all did not help):

- Enabled the IE option "Allow active content to run in files on My Computer" (after reboot it didn't work either)

- Checked the files at "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\Crystal Reports 2011\crystalreportviewers\prompting\js" - they are all present comparing to my dev box

- Read permisson for the user "Everyone" on C:\Program Files (x86)\SAP BusinessObjects and all its subdirs and files

- Read permissions for Everyone on C:\Users\<USER>\AppData\Local\Temp

- Explored the ProcMon dump: no ACCESS DENIED messages at all. The NOT FOUND messages are similar to those on my dev box

- Installed CR Runtime 13.0.13 over 13.0.10

- Uninstalled CR Runtime, installed .NET 4.5.2

- Uninstalled CR Runtime, installed the 13.0.13 version from scratch

- Exec my app as admin

- Disable Avira scanner

 

Now I'm at my wit's end.

TIA


SubReport with ParameterFieldName - Crystal Report

$
0
0

Staff       Based on the structure below, as you would to implement a subreport, where I am using stored procedure, and I am thinking of using the ParameterFieldName parameter, where the report parameter is id_Pedido_Item, you would have any tips to pass me?

 

Dim rptPrint As ReportDocument = New ReportDocument       

rptPrint.Load(Me.nm_Path_RPT)       

rptPrint.DataSourceConnections.Clear()       

For nr_Servidor As Integer = 0 To rptPrint.DataSourceConnections.Count - 1             rptPrint.DataSourceConnections(nr_Servidor).SetConnection(Me.nm_Servidor, Me.nmBancoDados, Me.nm_Usuario, Me.ds_Senha)             rptPrint.SetDatabaseLogon(Me.nm_Usuario, Me.ds_Senha, Me.nm_Servidor, Me.nmBancoDados)       

Next       

Dim paramFields As New ParameterFields       

Dim paramField As New ParameterField       

Dim discreteVal As New ParameterDiscreteValue       

paramField.ParameterFieldName = "id_Pedido_Principal"       

discreteVal.Value = "00001234"       

paramField.CurrentValues.Add(discreteVal)       

paramFields.Add(paramField)       

CrystalReportViewer1.ParameterFieldInfo = paramFields       

CrystalReportViewer1.ReportSource = rptPrint

 

Message was edited by: Don Williams

How to pass parameters to a subreports

$
0
0

Hi all

 

I have a problem to pass parameters to a sub reports inside of a main crystal report.

 

The structure of the report is as follow

 

there is a main report that use a stored procedure

this main report have 3 independent sub reports that uses each one a different stored procedure

 

All the names of stored procedures are different, each one have 3 parameters and  the names of the parameters are @FechaI, @FechaF and

@Suc for all the stored procedures.

 

I'm using a dll for the handle of reports so i pass all the properties to the dll

 

for the parameters to pass to the sub reports  i am using this code

 

'5555/////////////////////////////////////////////

            ' IAR 25MZO2015

            ' Revisar si contiene subreportes el reporte principal

            ' review if contains sub reports the main report

            If ReporteCR.Subreports.Count > 0 Then

                ' revisa si tiene uso de subreportes con datasources

                ' review if the sub reports uses datasources

                If SubReportesDS.Count > 0 Then

 

 

                    For Each pair As KeyValuePair(Of String, System.Data.DataTable) In SubReportesDS

                        '''ReporteCR.DataDefinition.FormulaFields(pair.Key).Text = pair.Value

                        ReporteCR.Subreports.Item(pair.Key).SetDataSource(pair.Value)

                    Next

                End If

 

 

                ' revisa si tiene uso de subreportes con stored procedures y parametros.

                ' review if the sub reports uses stored procedures with parameters

                If SubReportesSPParam.Count > 0 Then

                    Dim sNombreSubrpt As String = ""

                    Dim iIndiceSubrpt As Int16 = -1

 

 

                    For Each oVal As SubReporteProps In SubReportesSPParam

 

 

                        If oVal._NombreSubRpt <> sNombreSubrpt Then

                            sNombreSubrpt = oVal._NombreSubRpt

                            iIndiceSubrpt = iIndiceSubrpt + 1

 

 

                            ' me logueo al sub reporte

                            ' log on into sub report

                            ReporteCR.Subreports.Item(iIndiceSubrpt).SetDatabaseLogon(sUsuario, sPwd)

                        End If

                        ' paso parametro, valor y nombre de sub reporte al metodo

                        ' i pass parameter, value and sub report name to the method

                        ReporteCR.SetParameterValue(oVal._NombreParam, oVal._Valor, oVal._NombreSubRpt)

                        '''ReporteCR.SetParameterValue(oVal._NombreParam, oVal._Valor, ReporteCR.Subreports(iIndiceSubrpt).Name.ToString)

                    Next

                End If

 

 

            End If

            '5555/////////////////////////////////////////////

 

after uses this code crystal report shows the parameters form to capture the values for the parameters.

 

I don't know what is happen.?

 

I need to do the log on for each sub report or not?

 

In total there are 12 parameters ( main report and 3 sub reports)

 

What's wrong,?

 

What can i do to complete this task?

 

thanks in advance for your help

 

Greetings

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

Changing a Crystal Report datasource (access) at runtime in C#

$
0
0

Hi,

 

I'm getting the error 'Log on failed' when trying to change my datasource at runtime. I've trawled the SO community forums and from that put together the code below, but I'm still getting the error. My access db is 2013 and isn't password protected and I'm using the default "Admin" user. The report has an OLE DB connection. My code loops through all tables, including subreports and changes the login, and I also change the database login. Any help much appreciated:


public void RunTestReport()   {   DataSet testDataSet = new DL.NonConformance().GetNonConformances(1, "NonConformance");   var rpt = new ReportDocument();  rpt.Load(@"C:\Reports\rptTest.rpt");   SetCrystalLogin(rpt);  rpt.SetDataSource(testDataSet);  crystalReportViewer1.ReportSource = rpt;  crystalReportViewer1.Refresh();   }   public void SetCrystalLogin(ReportDocument oRpt)   {   ConnectionInfo oConnectInfo = new ConnectionInfo();   string dbpath = string.Concat(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"\db\dbacc.db");  oConnectInfo.ServerName = dbpath;  oConnectInfo.DatabaseName = string.Empty;  oConnectInfo.UserID = "Admin";  oConnectInfo.Password = string.Empty;   // Set the logon credentials for all tables   SetCrystalTablesLogin(oConnectInfo, oRpt.Database.Tables);   // Check for subreports   foreach (CrystalDecisions.CrystalReports.Engine.Section oSection in oRpt.ReportDefinition.Sections)   {   foreach (CrystalDecisions.CrystalReports.Engine.ReportObject oRptObj in oSection.ReportObjects)   {   if (oRptObj.Kind == CrystalDecisions.Shared.ReportObjectKind.SubreportObject)   {   // This is a subreport so set the logon credentials for this report's tables   CrystalDecisions.CrystalReports.Engine.SubreportObject oSubRptObj = oRptObj as CrystalDecisions.CrystalReports.Engine.SubreportObject;   // Open the subreport   CrystalDecisions.CrystalReports.Engine.ReportDocument oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName);   SetCrystalTablesLogin(oConnectInfo, oSubRpt.Database.Tables);   }   }   }  oRpt.Refresh();  oRpt.SetDatabaseLogon("Admin", string.Empty, dbpath, string.Empty, true);  oRpt.VerifyDatabase();  oRpt.Refresh();   }   private void SetCrystalTablesLogin(CrystalDecisions.Shared.ConnectionInfo oConnectInfo, Tables oTables)   {   foreach (CrystalDecisions.CrystalReports.Engine.Table oTable in oTables)   {   CrystalDecisions.Shared.TableLogOnInfo oLogonInfo = oTable.LogOnInfo;  oLogonInfo.ConnectionInfo = oConnectInfo;  oTable.ApplyLogOnInfo(oLogonInfo);   }   }

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

Lines of text missing at page break

$
0
0

DETAILS:

 

I'm using CR 11.0.0.1282 to create and edit reports. Reports are targeted for a public website and are rendered as a PDF for viewing and printing. We are running 40 or 50 different reports on this particular website. One report is rendering incorrectly, others may be having trouble that we haven't discovered yet, but two other reports that are extremely similar do not appear to have the same problem.

 

On my local machine I'm running Windows 7 using IE 10.0

 

The target server is running Windows Server 2012

 

I am using Visual Studio 2010 to edit this particular website.

 

The CR runtime on both my local machine and on the target webserver is 13.0.2000

 

When I debug the website with Visual Studio on my local IIS server, the report renders properly and looks exactly like it does when I run it from the editor.

 

When I deploy the report to the webserver and browse to it from my local machine, the report scales differently with the first page coming to an end about two lines earlier than when it is being served from my machine and getting further off as you move down.

 

THE BIG ISSUE:

 

A text field that spans the bottom of the second page and the top of the third page is missing three lines where it spans the pages. The text field picks up three lines later at the top of the third page as if nothing is wrong. At first I thought the header or footer must be overlapping them, but suppressing the header and footer did not resolve the problem. I have tried every formatting trick in the book and nothing seems to help. Additionally, the problem does not appear limited to this one field. If the data is adjusted so that a different field hits the page break, it loses lines too. Data in these fields can be very long so checking "Keep Together" on the section expert or "Keep Object Together" on the "common" tab of the "format field" dialog is a poor solution and also does not seem to work when deployed to the server.

 

I realize that the problem is probably a printer driver issue. On my local machine I have several printers installed. On the target machine, only the default Microsoft XPS Document Writer printer is installed. I already tried changing my default printer to the XPS printer and checking the "No Printer (optimize for screen display)" option in "Page Setup".

 

 

Although I will be willing to try other formatting suggestions, the solution we really want is a server solution as we suspect that this issue may be affecting other reports on the server. There are hundreds of reports deployed on various websites on this server and hundreds more deployed on other servers within our organization.

 

 

Any suggestions?

Printing problem at client PC using SAP Crystal Report

$
0
0

Hi,

I am using Visual Studio 2010 , code is in Visual Basic, .NET framework 4. I installed CR for VS2010 (CRforVS_13_0).

My problem is in the client PC with windows 7 64 bit, the project works ok but the report is printed wrong, without proper format. However with windows 7 32 bit all works ok.

In the client PC I installed SAP Crystal Report runtime for .NET Framework 4.


Thanks, and sorry for my English


"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

How to get printer acknowledgement after printing

$
0
0

Hi All,

 

I need to know how to get status from printer when report is printed. Because some flags need to be updated when printing is completed.

Currently my coding like below, which causes some blank pages (because flag updated before print completed).

 

Coding:

 

crystalReportViewer.PrintReport()

 

updateFlag()

 

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

 

I am using Crystal reports for vs 2010 (13.0.10 version).

 

I think this can be solved if I do updateFlag() function, after printing is completed.

 

 

 

Appreciate if anybody can let me know how to do this with sample coding.

 

Thanks in advance,

 

Regards,

Kumara

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

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!

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


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?

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

Crystal Reports - Delphi XE 6

$
0
0

At the risk of nauseating the readers who have no doubt seen posts like this a thousand times, I am faced with the prospect of migrating a very large Delphi Code base which is currently supported using Delphi 5.  (Yes I know, it needn't be said.)  This very large code base uses Crystal 8.5 for reporting and of course uses the very fine VCL code from back in the day.  I understand that Crystal long ago quit supporting VCL (Delphi) in favor of .NET and I understand all the business reasons for having done so however, I still need to migrate a system that has a report base of well over 300 standard reports and countless custom reports. 

 

The Question:

 

Is there any practical path for continuing to use Crystal Reports with a Delphi Code Base.  We do use .net and indeed have many projects written in C# so there are .net proficiencies however completely rewriting this code base is not an option.  In my research I have seen many ideas about this but they all seem a bit dated.  My goal would be to update the code to 64 bit (Delphi XE6) and use the latest Crystal 2013.  It is my understanding that Delphi XE6 can import .net assemblies much like it could import activeX.  I am hoping someone can tell me if moving to Crystal 2013 and XE6 is practical or even doable.

 

Thanks in advance for all ideas and comments

 

Gary

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?

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!

Viewing all 3636 articles
Browse latest View live


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