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

RecordSelectionFormula not working after upgrade to Crystal Reports 2013

$
0
0

I am upgrading an application from CR v10 Developer in VS 2005 to CR 2013 in VS 2015.  My reports are running great with the exception of the RecordSelectionFormula.  It appears to be getting ignored.  The selection formula is working fine while in the designer. 

 

I downloaded CR 2013 and installed it.  I've downloaded and installed the CRforVS_13_0_15.exe from the download page.  The references in my project look like this:

 

screen1.jpg

After searching through other posts trying to find a solution, I've added a Refresh to my report which I wasn't doing before.  That didn't help.

I've tried hard-coding the selection string in the code to take my variables out of the equation.  That didn't help.

 

Any suggestions would be greatly appreciated!

Thanks

Terry


Change reports Datasource (sproc) at runtime

$
0
0

Hi folks,

 

I was advised to move this thread to this forum....

 

My report is designed to get the data from a stored procedure (sproc1) via the database fields from the field explorer. This has obviously been done at design time where the fields on the report match those that the sproc1 returns.

 

My question is can I change the report at runtime so that its gets its data from sproc2 instead of sproc1 ?

 

Both sprocs return exactly the same fieldnames / datatypes etc

 

I am using Visual Studio C# Win Forms with e mySQL back end.

 

 

 

J

C++ 2005 Redistributable Requirement

$
0
0

Back in Jul 2014, I asked the question about the C++ 2005 Redistributable and if a new Crystal Reports; Version for Visual Studio not requiring this redistributable; and the answer was hopefully by the end of 2015.

 

See my original discussion, same title on Jul 2015.

 

Do you know where this issue stands?

 

I need to know if I need to move from Visual Studio 2012, to a newer version of Visual Studio.

 

Thanks so much for any assistance you can provide.

 

V/r

 

Ray

Crystal Reports 2013 fails to install

$
0
0

I'm trying to install an evaluation copy of Crystal Reports 2013 on my Windows 7 64 bit workstation. I downloaded everything, unzipped it. When I double-click on the setup.exe file I get the user account control prompt, I answer OK. Then nothing happens. I've rebooted the computer, same.

 

I poked around some and found an old Visual Studio 2008 version of Crystal Reports. So I removed that, didn't make any difference. But maybe there's something left from that which is causing this problem.

 

I used to have VS2008 on this workstation, but now I'm running VS2013.

 

Any ideas on how to get Crystal Reports 2013 to install much appreciated.

report takes forever to load

$
0
0

when i show the report form using button,the form is show and it says "please wait while the document is processing"(this is take forever) there is nothing happen and it keep like that and the report is never shown

if i use the report form as startupForm(first form).the report is show


at first,if i show the report with button(no use the report form as startup form).everything is fine and the report is show.

but after one week not open the project the problem happen

 

sorry for my bad english

Setting the sql statement

$
0
0

http://www.egbolig.dk/drift_bo_syd.rpt (HERE IS THE REPORT)

 

We are using SAP Crystal Report .NET Runtime files (http://scn.sap.com/docs/DOC-7824 newest version 13.0.9.1312) in our web asp.net application. Everything have been working fine, but we have can into problems when showing the certain kinda reports.

In our code get the reports sql statement using getSQLStatement.

Dim gp As New GroupPath() Dim sql As String = report.ReportClientDocument.RowsetController.GetSQLStatement(gp)

This will get the sql, and we use this sql (getSqlStatement) and attach a sql WHERE clause from the code to only get a certain number of records.

The report Drift_bo_syd.rpt has 5 tables, and the following sql statement. 

Database/Show Sql Statement

SELECT "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM  (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE  "Interessentadresse"."Type"='K' 

But if we run the report from our asp.net code, we get the following error: 

Cannot determine the queries necessary to get data for this report. Failed to retrieve data from the database. Error in File Drift_Bo_Syd {97FED382-1BAC-4DB1-970F-9E098ECE28F1}.rpt: Failed to retrieve data from the database.

 

After a long time searching for a solution, we found out that if we place the column kred from the kreditor table on the report, the report will work. (field explorer / database fields / kreditor (table) / kred (column)

 

Very important is that the field "kreditor.kred" is a primary key of the table kreditor, and also used in the linking.!

 

(We can get the report to work if we call the sql statement with the "kreditor"."kred" in the SELECT statement.

 

SELECT "kreditor"."kred", "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM  (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE  "Interessentadresse"."Type"='K'

 

But it should not be necessary to include this field (which is the primary key and used in linking the report) in the sql statement,
BECAUSE it is not used in the report. So maybe this is a bug?

 

It has not been necessary in RDC Crystal Report or RAS Crystal Report in a classic asp envoriment.

 

Here is the code we use to set the reports SQL Statement)

 

Try
Dim conn As New SqlConnection(connString)
conn.Open()
Dim sd As New SqlDataAdapter(New SqlCommand(nySQL, conn))
Dim ds As New Data.DataSet()

 


Dim navn As String = report.Database.Tables.Item(0).Name
sd.Fill(ds, navn)
report.SetDataSource(ds)
conn.Close()
Catch ex As Exception
Throw
End Try

Issue With CRRuntime Prerequisites

$
0
0

Hello all,

 

     Using Visual Studio 2015 - CRRuntime Service Pack 15.    

     I used a Crystal Reports viewer in my project in Visual Studio. In the Publish tab for my project, I have setup CRRuntime as a Prerequisite, along with .NET 4.0 and Windows Installer 4.5. I then Published my project on my computer. I copied the three folders with the Packages information, included of course the product.xml file for each. I have done many other times with SKDs and had no issues. The application is set to "The application is available offline as well."

    

     When it's taken and the published installer is setup and run on a computer without CRRuntime, the program goes to try and download the MSI and automate the install, per usual. Once download, an error occurs stating "Setup has detected that the file %TEMPFOLDER%\Crystal Reports For .NET Framework 4.0\CRRuntime_32bit_13_0_15.msi has changed since it was initially published. Click OK to retry the download, or Cancel to exit setup."

 

     Now I realize, I could download and install the CRRuntime independently, but my program's installer should be able get it's Prereqs from online, like all of my other programs. I also could download both the CRRuntimes for 32-bit and for 64-bit, but I'd also then require .NET Framework 4.0, .NET Framework 2.0, Microsoft Data Access Components 2.8 and Windows Installer 4.5 in both 32-bit and 64-bit plus in the Server vs Workstation editions. To be in the Packages folder along with the installer. I know because I tried this and it works in all environments, but it takes my 8MB installer and turns it into 3.2GB installer, which is not really what I wanted.

 

     Isn't there an easy way to do this?

 

     I have even tried removing all installer checks from the product.xml and only allowing 64-bit install, but this gave the same error as before.

 

     Any and all help would be highly appreciated to save me from the Prereq hell, thank you in advance.

Embeding full set of fonts when exporting to PDF from a Crystal Reports file

$
0
0

Currently when a file is exported to a PDF from a Crystal Reports file a subset of the fonts are embedded.  Is there a way to embed the full set of fonts into the PDF when exporting from a Crystal Reports file?


Impersonation, with web services and load report

$
0
0

Hello all,

I have this problem, I have a work around but I don’t like it. I’m a crystal reports user a long time ago.

I use web services to print reports from “same services in the web”. I have my report file in the database, if I don’t have the rpt file in the report folder under iis dir I extract the file from de database then open the report, change the database connection in runtime and print the reports. This works fine, but I have an issue that I can’t solve.

Sometimes I need to impersonate (in code) the user to the admin (normally in windows server 2008 or 2012, for example to get the installed printers in the system) and when I open the reports with the impersonate option have the “failed open the report”, “don’t have permission”… don’t have permission? Why ? What I do so solve the problem: undo impersonation then use load then impersonation again. Can anyone explain why ?


 

Dim oRpt1 AsNewReportDocument


oRpt1.Load(Nome_Mapa, OpenReportMethod.OpenReportByDefault)

 

This behavior is since crystal report for visual studio 2003 to now ….

Thanks in advance.

 

Jorge Rocha

How to pass Date Parameter to SubReport

$
0
0

Hi,

 

In my VB.NET database, I am recording exam results for a class and print a report using Crystal Reports filtered by term periods.

There can be two or more exams per year.

 

Problem is that I cannot find a method to pass date range filter to sub report using report viewer

 

Main report contains the student info selected by StudentID that is passed as a parameter

Sub report contains the exam date and results information.


The exam dates are in tblClassEvent on subreport.


rptViewer.SetParameterValue("theID", m_theID)

 

DateRange is also passed into text fields

 

            Dim sTermPeriod As Object

            Dim sTermDays As Object

            sTermPeriod = rptViewer.ReportDefinition.ReportObjects("txtTermPeriod")

            sTermPeriod.Text = m_strTermStart & "   To: " & m_strTermEnd

            sTermDays = rptViewer.ReportDefinition.ReportObjects("txtTermDays")

            sTermDays.Text = m_iPosAtt

 

 

Please advise on either improving on this approach or provide an alternative more sensible approach

 

All help is appreciated.

Strange behaviour when using CrystalReportViewer in dll

$
0
0

Hello,

 

I have a problem with the framework for Crystal Report for Visual Studio.

 

We have a ReportViewer, which is implemented in a seperate DLL-module, which is called via a

C++/CLI-bridge.

It is used to open reports which use datasource provided by the ODBC text driver.

It all works perfectly from the debugger, but when I start the exe directly and try to open a Report I get the following behaviour:

 

The strange thing is, that the problems only occure at the very first start of the report viewer dialog, so for me it looks like the framework is not initialized properly.

 

  • A report only with textfields and no datasources:

ReportWithTextBoxesEditor.PNG

At first start of the ReportViewer:

ReportWithTextBoxesViewerFirstStart.PNG

At second start of the ReportViewer:

ReportWithTextBoxesViewerSecondStart.PNG

 

  • A report with fields connected to a ODBC datasource:

ReportWithODBCEditor.PNG

 

First start:

ReportWithODBCViewerFirstStart.PNG

 

Second start:

ReportWithODBCViewerSecondStart.PNG

 

I load a report the same way it is done in the examples provided by SAP, so this seemed to be correct.

I also get no errors when I look into the logs in the process monitor.

 

Do you have an idea what might be the problem?

What I tried to do is:

  • Preloading the CrystalReport assemblies with Assembly.Load("CrystalDecisions.CrystalReports.Engine ...") and so on.

 

Thanks in advance

 

PS: I already asked the question in Re: Using Crystal Report for VS runtime from DLL which is called be C++ exe

but that thread was not easy to follow anymore and gave no result, so I made a clear one in which the problem is written down clearly.

Should the old one be closed then?

Crystal Report Viewer for VS2013

$
0
0

Hi,

We have our existing report application in VS2005 and CRViewer version is 10.
Now we are migrating our application int0 VS2013.

We heard that CRViewer 10 will retire soon. there won't be any support after that.

So we started migrating viewer from 10 to 13.

We can able to execute the build. But we can't able to view the designer. We are getting the below error.

Could not load file or assembly 'log4net, version=1.2.10.0, culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

 

Please clarify our below queries.

1) When is the EOL for CRViewer 10?

2) Which version of viewer is recomended / suitable for CR2013 & VS2013

3) Please mention the redistributable for the same.

4) Where can we get the redistributable? Please provide link

 

Thanks & Regards,

Revathy.R

CR .Net - Getting field values for each section at runtime

$
0
0

I am porting our integration with CR from the old COM based component to CR .Net.  I'm using the latest version ((v.13.0.13.1597) for Visual Studio.

 

Our reports contain BLOB fields which are used throughout the sections, including repeating Details sections.  Our database stores the desired width, height, and position of the BLOB field. For convenience, we add the width/height/position database fields as suppressed fields in the report so that we can easily access the values at runtime.

 

In our existing COM implementation we hook into the ISectionFormat event for each section that contains a BLOB field, and then when these events fire we iterate through the ReportObjects in the section to locate our dimension/position fields by name, something like...

 

IReportObjectPtr l_ReportObjectPtr = pReport->GetSections()->Item[ sectionNumber ]->GetReportObjects()->Item[ reportObjectIndex ];

 

        if(l_ReportObjectPtr->Kind == crFieldObject )

        {

            l_FieldObject = l_ReportObjectPtr;

 

            if( l_FieldObject->Name.GetBSTR() == HEIGHT_FIELD_NAME)

                m_lfImageHeight = l_FieldObject->Value;

          }

 

Once we have the values, we then again iterate through the ReportObjects in the Section that triggered the event to find the BLOB field and set the width/height/top/left values on the fieldObject accordingly.

 

How do I achieve this with the .NET SDK as the FieldObject->Value is no longer available?

 

I know that I can use the RAS SDK to access the data at runtime, but I can't seem to find any concept of the "current" row.  I can hook into the new FormatSection event but there doesn't appear to be a way to find the section object that fired the event to get to the fields within it, or to then access the corresponding data values.

 

The overarching requirement is to allow our users to store BLOB images in our database along with the dimensions (in TWIPS).  When they print the report, the BLOB's (and the sections within them) need to be resized on a row by row (section by section) basis to match the dimensions stored in the database.   Is there a different way to achieve this in with the .NET SDK's if I can no longer do it the way we did with the COM component?

Speed up Crystal Reports generation on CRS2013

$
0
0

Hi all,

 

I used Crystal Reports Server 9 to generate report, the datasource is a dataset object which then set to the report in run time. The report contains 10 subreports and it takes around 20 seconds to generate and export to PDF.

 

However, after I switch the Crystal Reports Server to 2013 version, and all reports are now managed by the server. Generating the same report takes around 1 minutes which is much slower then the older version.

 

Could everyone tell me why it takes more time to generate the report? It shouldn't be problem of database or SQL since the report is not connecting to DB.

 

Also, is there any way to speed up the generation process?

 

Thank you.

Using Crystal Report for VS runtime from DLL which is called be C++ exe

$
0
0

Hello,


I am doing some evaluation about moving our current reportsystem to a newer state using the newest "Crystal Report for Visual Studio" with the newest servicepack 5 and Visual Studio 2013.


I managed to create and load new reports to the CrystalReportViewer in C# quite easily and I is it also possible to load our existing reports, which were created with Crystal Report XI.

They use ODBC Text Drivers.

 

This all works perfectly fine in a stand alone application which uses .Net 4.5.2.

 

As the next step I tried to add this simple client as a dll library to our existing program, which is written in c++.

 

When debugging it works just fine and as expected, but when I then start the main program normaly and try to show a report Crystal Report crashes with the following message when CrystamReportViewer.ReportDocument is set.:

Crash CR.PNG

As you see the message does not help that much here.

Since it is working as a stand alone application and it gives the same error in all reports I suppose it is not a problem of the reports.

 

Have someone experienced something like this before?

 

The Crystal Report Assemblies use .Net Framework 2.0.

I have read that it is needed for standalone programs to add a app.config file with

 

<?xmlversion="1.0"encoding="utf-8"?>

<configuration>

  <startupuseLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.5.2"/>

  </startup>

</configuration>


But this is not possible for library dlls.

As far as I know this needs to be set in the main program, which is the exe written in C++.


So the problem is to use the Crystal Report runtime in a .Net 4.5.2 library dll which is called from an exe written in C++.

Do someone maybe have an idea what to do here and how this can be fixed.



Help is pretty much appreciated and thanks in advance.



Where is the GroupNameConditionFormula from VB6 in .NET

$
0
0

In VB6 I have the following code

Set Report = Appl.OpenReport(App.Path & "\reports\rptStock.rpt")

Report.FormulaFields.GetItemByName("Group" & i & "Field").Text = "{vieArtikel.ArticleId}"

Report.GroupNameFields(i).GroupNameConditionFormula = "{vieArtikel.ArticleName}"

 

 

In .NET I don't know how to convert the last line with the GroupNameConditionFormula property.

ReportDocument reportDocument = new ReportDocument();

string filePath = "";

filePath = Path.Combine(Application.StartupPath, "Reports", "rptStock.rpt");

reportDocument.Load(filePath);

reportDocument.DataDefinition.FormulaFields["Group" + i + "Field"].Text  = "{vieArtikel.ArticleId}";

???

Crystal Reports 2013 - Report Creation API license

$
0
0

Hi,

 

SAP support advised me to come here for help as they "cannot recognize the issue". Hoping someone here can.

 

A client of ours is unable to link any new reports from Clear Enterprise to Crystal Reports 2013, previously not a problem via Crystal Reports 2010.

The attached error specifies the system does not have a valid Report Creation API license. The other attachment seems to verify this statement.

 

We have been told by our licensing vendors and SAP support that they are unable to help us. Can anyone here please help?

 

Thanks,

Aaron

Setting the sql statement

$
0
0

http://www.egbolig.dk/drift_bo_syd.rpt (HERE IS THE REPORT)

 

We are using SAP Crystal Report .NET Runtime files (http://scn.sap.com/docs/DOC-7824 newest version 13.0.9.1312) in our web asp.net application. Everything have been working fine, but we have can into problems when showing the certain kinda reports.

In our code get the reports sql statement using getSQLStatement.

Dim gp As New GroupPath() Dim sql As String = report.ReportClientDocument.RowsetController.GetSQLStatement(gp)

This will get the sql, and we use this sql (getSqlStatement) and attach a sql WHERE clause from the code to only get a certain number of records.

The report Drift_bo_syd.rpt has 5 tables, and the following sql statement. 

Database/Show Sql Statement

SELECT "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM  (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE  "Interessentadresse"."Type"='K' 

But if we run the report from our asp.net code, we get the following error: 

Cannot determine the queries necessary to get data for this report. Failed to retrieve data from the database. Error in File Drift_Bo_Syd {97FED382-1BAC-4DB1-970F-9E098ECE28F1}.rpt: Failed to retrieve data from the database.

 

After a long time searching for a solution, we found out that if we place the column kred from the kreditor table on the report, the report will work. (field explorer / database fields / kreditor (table) / kred (column)

 

Very important is that the field "kreditor.kred" is a primary key of the table kreditor, and also used in the linking.!

 

(We can get the report to work if we call the sql statement with the "kreditor"."kred" in the SELECT statement.

 

SELECT "kreditor"."kred", "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM  (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE  "Interessentadresse"."Type"='K'

 

But it should not be necessary to include this field (which is the primary key and used in linking the report) in the sql statement,
BECAUSE it is not used in the report. So maybe this is a bug?

 

It has not been necessary in RDC Crystal Report or RAS Crystal Report in a classic asp envoriment.

 

Here is the code we use to set the reports SQL Statement)

 

Try
Dim conn As New SqlConnection(connString)
conn.Open()
Dim sd As New SqlDataAdapter(New SqlCommand(nySQL, conn))
Dim ds As New Data.DataSet()

 


Dim navn As String = report.Database.Tables.Item(0).Name
sd.Fill(ds, navn)
report.SetDataSource(ds)
conn.Close()
Catch ex As Exception
Throw
End Try

RecordSelectionFormula not working after upgrade to Crystal Reports 2013

$
0
0

I am upgrading an application from CR v10 Developer in VS 2005 to CR 2013 in VS 2015.  My reports are running great with the exception of the RecordSelectionFormula.  It appears to be getting ignored.  The selection formula is working fine while in the designer. 

 

I downloaded CR 2013 and installed it.  I've downloaded and installed the CRforVS_13_0_15.exe from the download page.  The references in my project look like this:

 

screen1.jpg

After searching through other posts trying to find a solution, I've added a Refresh to my report which I wasn't doing before.  That didn't help.

I've tried hard-coding the selection string in the code to take my variables out of the equation.  That didn't help.

 

Any suggestions would be greatly appreciated!

Thanks

Terry

Change reports Datasource (sproc) at runtime

$
0
0

Hi folks,

 

I was advised to move this thread to this forum....

 

My report is designed to get the data from a stored procedure (sproc1) via the database fields from the field explorer. This has obviously been done at design time where the fields on the report match those that the sproc1 returns.

 

My question is can I change the report at runtime so that its gets its data from sproc2 instead of sproc1 ?

 

Both sprocs return exactly the same fieldnames / datatypes etc

 

I am using Visual Studio C# Win Forms with e mySQL back end.

 

 

 

J

Viewing all 3636 articles
Browse latest View live