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

Crystal 2011 Not Showing Parameter Prompt Inline

$
0
0

I recently had to port over a few applications which previously used Crystal 2008 to 2011. They use asp.net web applications with crystal report viewers. In the older versions, the report parameters were displayed inline and once the report was generated the users could simply press the back button on their browser and be taken back to the parameter screen should they need to re-run the report.

 

Since switching to 2011, the parameter prompt shows in a popup window. Once the report has been run the users can no longer click the back button since the parameter prompt is in a separate window and they're forced to click the link in the original web page that had the link. Was the change to having the parameter prompt in a popup something added in 2011 or is there a setting I can use to have the parameter screen show inline in the same window as the report?


Deployed DLL in web site project on SP16

$
0
0

Hello,

 

after installing the SP 16 I've notice that deploying a website with CR dependencies on VS 2015, all the DLL of CR are deployed with the project. With the previous version (SP12) and VS 2010 no DLL of CR were deployed.

What does it mean, that it is not needed anymore to install the runtime on the target machine, or it is an error?


Regards


Edika

Error "Input string was not in a correct format." French viewer and IE Browser Zoom at 125%

$
0
0

Hello,

   We are using Crystal Reports for Visual Studio in a Web Application. I have tested this issues with SP13, SP15 and SP16.

   When I open a report with the Report Viewer in French(CultureInfo=fr-ca) and the IE11 Browser Zoom is set at 125% when I click on  chart section when the drill down Cursor is showing the following error is displayed "Le format de la chaîne d'entrée est incorrect."  Translation being "Input string was not in a correct format." If zoom is set to 100% no issue. I did not test with other zoom factorErrorFrench.png.

 

   I don't have this issue when the Viewer is set in English(CultureInfo=en-ca)

 

Thank you.

How to used a blank delimiter when exporting CSV

$
0
0

Hello,

 

I would like to export crystal report into csv but withouter a delimter character around fields,

 

here is a snipper of my code:

ExportOptions exportOpts = new ExportOptions();
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.ExportFormatType = ExportFormatType.CharacterSeparatedValues;
DiskFileDestinationOptions DiskFileDestinationOpt = ExportOptions.CreateDiskFileDestinationOptions();
DiskFileDestinationOpt.DiskFileName = filename;
exportOpts.ExportDestinationOptions = DiskFileDestinationOpt;
CharacterSeparatedValuesFormatOptions csvOptions = new CharacterSeparatedValuesFormatOptions();
csvOptions.Delimiter = "";
csvOptions.SeparatorText = "";
exportOpts.ExportFormatOptions = csvOptions;
crystalReportDoc.Export(exportOpts);

 

the problem is whenever I use an empty string for the delimiter property, crystal report will use the default double quote character in the result csv file.

 

can someone please assist on how to export a csv document with a blank delimiter?

How to set Image in crystal report with Specified Size?

$
0
0

Hello all,

 

I have created report to generate a Question Paper and and for Maths Equation, I am using an Image

bt In report It shows its Actual Size is 2.54 cm and the content of Equation is in approx 1 cm.

 

So there is much space left.

 

What should I do?

 

With this Question I have attached a Screenshot for that..

 

Thank u in advance...

Visual Studio 2013 crashes when attempting to save an .rpt file modified in CR '13

$
0
0

Hello,

 

We are experiencing an issue that occurs intermittently. I open, modify, and save existing .rpt files in Crystal Reports 2013.  Visual Studio 2013 crashes after opening the same file, making changes, and attempting to save:

 

vs2013_crash.png

 

It issue occurs on these machines:

 

1) Windows 7 Pro with SP1, Visual Studio 2013 Ultimate, SAP Crystal Reports for Visual Studio version 13.10.1385.

2) Windows 8.1 Pro, Visual Studio 2013 Pro, SAP Crystal Reports for Visual Studio version 13.0.15.1840, Crystal Reports 2013.

 

Did some research and tried the solution to remove XML files from c:\temp, but it did not fix the problem.  Anyone else experience the same problem and can shed light on how to fix?  Your help is greatly appreciated.

 

Thank you,

 

Demond

Webservice as Datasource in CR Runtime

$
0
0

Hi all,

 

I Need to write an application with a websevice as a datasource.

 

I created the Connection in the designer and it is working fine. Does anyone have an example where I can see what properties I have to use to connect to the webservice and to get the data from the webservice within the Crystal Reports runtime? I am using the reportclient document object model with the inproc ras.

 

thanks for the hlep.

regards

joerg

Crystal Report 13 : Report is not getting refreshed

$
0
0

We recently upgraded to Visual Studio 2015, and Crystal Report 13 from VS 2008 and CR XI

The Page that displays Crystal report also has a drop-down list and a radio button control.  When the page is loaded first time, the report is displayed for the default values of the list and radio button. This part works. 

If I change the values in the drop-down list or radio-button, report should get refreshed based on those selections.  However page does not display anything. It is blank where report should be displayed.

 

This is used to work before the upgrade.

Thanks in advance!


Method not found get_ExportOptionsEx()

$
0
0

Hi!

 

I have CRYSTALREPORTSRT_13015_00 x64 in a computer. During export report application throw an exception:


Method not found:

'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.DataDefModel.ISCExportOptions.get_ExportOptionsEx()'

 

How to resolve this problem?

 

Thanks

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

Sub Report can't resolve relitave path

$
0
0

I've been having an issue where a sub report has a TTX file as a database with a relative path (".\\Cert_WorksetSpecialText.ttx""). Unfortunately when I open it in the Viewer I receive the Database connection Dialog for that file. If I use hard coded paths for the file it works fine. Also the Main reports TTX has a relative path, and it does not cause any issues.

 

simplified code is as follows:

 

 

 

     ReportDocument MainReport = new ReportDocument();

     MainReport .Load(ReportFile);

     MainReport.SetDataSource(DataTable);

     MainReport.VerifyDatabase();

     [...]

     ReportDocument SubReportDocument= MainReport.OpenSubreport(SubReportName);

     SubReportDocument.SetDataSource(SubDataTable);

     SubReportDocument.VerifyDatabase();

 

 

When displaying in the viewer I receive:

 

 

CR_DB_Dialog.png

 

 

as a work around I trued changing the Database.ConnectionInfo to a static Path by doing the following prior to setting the DataSource:

 

 

TableLogOnInfo T = SubReportDocument.Database.Tables[0].LogOnInfo;

T.ConnectionInfo.LogonProperties[0] = new NameValuePair2("Field Definition File", x);

T.ConnectionInfo.ServerName = x;

T.ConnectionInfo.IntegratedSecurity = true;

SubReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo.Attributes.Collection[4] = new NameValuePair2("QE_ServerDescription", x);

        SubReportDocument.Database.Tables[0].ApplyLogOnInfo(T);

 

 

Though on ApplyLogOnInfo it reset the path back to ".\\Cert_WorksetSpecialText.ttx". Not using the ApplyLogOnInfo did not have any noticeable effect either. I had read somewhere that setting the location after ApplyLogOnInfo would do the trick, so I tried:


 

     SubReportDocument.Database.Tables[0].Location = T.TableName;


This only created an "Connection not possible" error in VS.


I cannot change the RPT files, since our current system required the dynamic pathing in the existing files, and I am only replacing one part of the system which was based on VB 6.0 and a much older version of CR (which stopped working after a server update).


I am currently using the latest update (13.0.16.1954) and tried an earlier v13 as well.


And suggestions or help would be much appreciated.


Thanks in advance.




Bug in HTML Crystal Report Viewer

$
0
0

I've got a Crystal Report (which was designed in 2008) which displays correctly in my application, in Visual Studio 2015 and in the Crystal Reports 2008 designer.

 

I've since created a simple ASP.NET (4.0) webpage with the Crystal Reports HTML report viewer (Support Pack 16 (v.13.0.16.1954) 64 bit). On loading the report, any right aligned text shoots off to the left.

 

Also, there is a text field in the Page Footer (width of the entire report width) which contains a formula whose contents are centre aligned. On loading the report, this field is displayed on the left of the page (but it's contents is still centre aligned.)

 

On export of the report, all fields display as designed. This leads me to believe that the web report viewer either has a bug or you require to do something special to these fields in order for them to display correctly.

 

Has anyone seen or replicated this type of behaviour?

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?

MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954)

$
0
0

From where can I download MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954).

Instead of MSI we want to integrate MSM.

 

Please provide the download link.

How and What version on CR to Install for Windows 10

$
0
0

Hi,

 

I am using VS2008 Pro with CR2008 for development of a Windows based program.  The program all works fine on my 64bit Win 8.1 development pc.

 

I wish to install the program on a 64 bit Windows 10 pc and have tried to download and install CR on this but have failed so far.

 

I have Enabled Windows features to Turn the .Net 3.5 options as per the notes on SCN.

 

Can someone please tell me what files are required for Windows 10 and how best to install these.

 

Also, what version of CR service packs can I install on both machines.

 

Many thanks,

 

John


Error "Input string was not in a correct format." French viewer and IE Browser Zoom at 125%

$
0
0

Hello,

   We are using Crystal Reports for Visual Studio in a Web Application. I have tested this issues with SP13, SP15 and SP16.

   When I open a report with the Report Viewer in French(CultureInfo=fr-ca) and the IE11 Browser Zoom is set at 125% when I click on  chart section when the drill down Cursor is showing the following error is displayed "Le format de la chaîne d'entrée est incorrect."  Translation being "Input string was not in a correct format." If zoom is set to 100% no issue. I did not test with other zoom factorErrorFrench.png.

 

   I don't have this issue when the Viewer is set in English(CultureInfo=en-ca)

 

Thank you.

New line after the text

$
0
0

Hi,

I've a problem with generate pdf or print, spaces or new line after a record are deleted by system.

For example If I have this text "adadasdfadafadsfaddasf     \n" and I generate a pdf the whitespace and newline are trimmed.

 

It's my mistake or is a normal behaviour?

 

Thank you for your support.

 

Kind regards.

 

Sacha

duplicates data at report preview

$
0
0

can any help me about dunplicate data fill to cr report view

i am using vb2015 and Support Pack 15 (v.13.0.15.1840)


when i filling data from dataset to cr it will dunlicate all data depends on row x10

 

dupdata.png

Cannot print B&W with Crystal Reports API

$
0
0

I am unable to print black and white using Crystal reports .NET object model.

I am using 'Cute PDF' printing driver which is able to print B&W/color correctly using Windows API directly (with DEVMODE/dmColor+dmFields).  Trying to do the same via Crystal does not work. Two attempts have been made:

  1. using SetDevMode (PrinterSettings::SetHdevmode() and PageSettings::SetHdevmode() with DEVMODE structure filled as in case of direct Windows API direct call)
  2. using PrinterSettings/PageSettings Color field

None of these seem to work and the report is printed in color regardless of parameters set.

 

Powershell script used for test:

 

#load the assemblies

[reflection.assembly]::LoadWithPartialName('System.Drawing.Printing')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.Shared')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.CrystalReports.Engine')

 

$ReportLocation = "C:\Test\chequereport.rpt"

$PrinterName = "CutePDF Writer"

 

#setup Crystal Document object

$Report = New-Object CrystalDecisions.CrystalReports.Engine.ReportDocument

 

#load the Crystal Report

$Report

.Load($ReportLocation)

 

#create the required printer and page settings

$PrintOptions = New-Object System.Drawing.Printing.PrinterSettings

$PageOptions = New-Object System.Drawing.Printing.PageSettings

 

#add the desired printer or it will print to the default printer

$PrintOptions.PrinterName = $PrinterName

$PrintOptions.Copies = 1

 

$PageOptions.Color = $false

$PrintOptions.DefaultPageSettings.Color = $false

 

#print

$Report.PrintToPrinter($PrintOptions, $PageOptions, $false)

 

$Report.Dispose()

Can't connect to Oracle from a Crystal Report after Microsoft Security Update KB3126587 was installed.

$
0
0

After our PCs got the KB3126587 security update from Microsoft, each time we try to view a report, we get prompted for a username and password.  The user name and password are filled in the box already but the logon keeps failing.  We are passing the logon credentials to the crystal report from a vb.net application written in visual studio 2013.  The code that we are using was taken from the following knowledge article: 1905423 How to pass Database logon information to a crystal report....

 

If we remove KB3126587, the crystal report will once again work.

 

Apparently the security update updates msorcl32.dll and msdaora.dll among other files.

 

Anyone else experiencing this?

Viewing all 3636 articles
Browse latest View live


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