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

IE11 doesn't scroll vertically

$
0
0

Hi,

 

We have an issue in IE11 with the Crystal Reports viewer for ASP.

 

Our users can not scroll to the end om the page because the scroll bar does not allow them to. The scrollbar is visible but can only be moved a view pixels (see the attachment).

 

I have tried SP9 to solve the issue but it won't. We use the viewer with .NET 3.5 and it is loaded in an iframe.

 

When I inspect the dom with the developer tools of IE the scrollbar start working when I remove "position: absolute" from the div element where the scrollbar is shown of with "overflow: auto".

 

How can I fix this issue?


Set to Null checked by default

$
0
0

Hi,

 

I am using the crystal reports viewer in vs2010 and i am wondering if it is possible to have the Set to Null checkbox checked by default on reports parameter window.

 

Happens that we are upgrading from crystal reports 9 and this was checked by default, but now it shows unchecked.

 

Thanks in advance!

Urgent Help Needed with Crystal Report on VB 2013...

$
0
0

Hi

 

I have a large VB project that uses Crystal reports. i have recently migrated to Visual Studio 2013 (Crystal for Vs version 13 update 10)

 

i have 1 report that runs on my machine with no issues,  but when i roll it out to users i get an error

 

my pc is running 64 bit windows,  the majority of my clients are running 32 bit

 

the report has 2 parameters passed to it, both of which are dates.  the date passed is in a date format and there is no issue with the data being passed.

 

i've tried it using 1 date only and get the same error

 

when the report is run on a client machine the following error is generated:-

 

?DateFrom and ?DateTo are both date parameters and both contain date values

 

please help i'm desperate and need to implement this report ASAP

 

 

 

************** Exception Text **************

CrystalDecisions.CrystalReports.Engine.FormulaException: A string is required here.

Details: errorKind

Error in File temp_deca800b-455d-4f71-89c9-d133bbd36626 {15C5702B-37A5-4833-BFE2-78E51ED36619}.rpt:

Error in formula  Record_Selection:

'{VW_WitnessReport.CalendarDate} in {?DateFrom} to {?DateTo}'

A string is required here.

Details: errorKind ---> System.Runtime.InteropServices.COMException (0x80041019): A string is required here.

Details: errorKind

Error in File temp_deca800b-455d-4f71-89c9-d133bbd36626 {15C5702B-37A5-4833-BFE2-78E51ED36619}.rpt:

Error in formula  Record_Selection:

'{VW_WitnessReport.CalendarDate} in {?DateFrom} to {?DateTo}'

A string is required here.

Details: errorKind

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

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

   --- End of inner exception stack trace ---

   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

   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 Abbey.FrmPrintReports.WitnessReport(DateTime DateFrom, DateTime DateTo, String OpType)

   at Abbey.FrmPrintReports.FrmPrintReports_Load(Object sender, EventArgs e)

   at System.Windows.Forms.Form.OnLoad(EventArgs e)

   at System.Windows.Forms.Form.OnCreateControl()

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at System.Windows.Forms.Control.WmShowWindow(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ContainerControl.WndProc(Message& m)

   at System.Windows.Forms.Form.WmShowWindow(Message& m)

   at System.Windows.Forms.Form.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

"Can Grow" Fields cutting Text on right Margin if Page Setup has no Printer

$
0
0

Dear Community,

 

i found out, that in our Report's (about 500) "Can Grow" Fields cut the Text on the right margin.

 

It seems the Word Wrap dosn't work....After all, i tried to reproduce it. First i can't.

 

But then I found out, that you must  set have in Page Setup "No Printer (optimize for screen display)" to get the same issue. 

 

We have Crystal 2008 with all SP's and using VS2010 SP2 to view our Reports. The most Fields are comming from Database.

 

here some picture:

 

 

[http://knw-610.com/tmps/CutText.JPG]

 

Hope you can help me.

 

Best regards

 

 

Steven

 

Edited by: vissers on Dec 21, 2011 10:13 AM

ASP.NET Crystal Reports viewer vertical scrollbar not working

$
0
0

Hi there

I have built a report server web application using the ASP.NET Crystal Reports for Visual Studio 2013 and everything works fine except for the fact that in Internet Explorer, when the browser window is not large enough to accommodate the entire height of the viewer (which is most of the time), the viewer's own vertical scroll bar is displayed but it won't scroll more than a few pixels up and down, regardless of how large or small the browser window or the report content are. As you can see in the screenshot below, the scroll bar's button occupies virtually the entire scroll bar height, thus preventing scrolling

This behavior only occurs in Internet Explorer... I tried in Chrome and Firefox and everything is good. Btw, I'm using IE11.

Any help is appreciated. Thank you.

ReportViewer.jpg

Regards

Mihai

How to release ReportDocument or CrystalReportViewer instances ?

$
0
0

In a large WPF application using Crystal Report for Visual Studio 13.0.10, i detect that instances of CrystalReporViewer and ReportDocument are not released. I reproduce this in this small code :

 

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared Class MainWindow 

 

Private Sub buPreview_Click(sender As Object, e As RoutedEventArgs) Handles buPreview.Click     

'Création des données     

Dim listPerson As New List(Of Person)    

 

listPerson.Add(New Person With {.Name = "Denis", .PhoneNumber = "0473"})     

listPerson.Add(New Person With {.Name = "Laurent", .PhoneNumber = "0473"})     

listPerson.Add(New Person With {.Name = "Fred", .PhoneNumber = "0473"})     

listPerson.Add(New Person With {.Name = "Jean", .PhoneNumber = "0473"})    

 

'Création du report     

Dim R As New reportdocument     

R.Load("CrystalReport1.rpt")     

R.SetDataSource(listPerson)     

 

'Aperçu     

Dim wCR As New WindowPreview    

wCR.CRV.Owner = Window.GetWindow(wCR)    

wCR.CRV.ViewerCore.ReportSource = R     

wCR.ShowDialog()     

 

'Nettoyage     

wCR.CRV.Dispose()    

wCR = Nothing     

R.Close()     

R.Dispose()     

R = Nothing 

End Sub

End Class

 

 

I try a lot of thing without success and memory profiler indicates instances number increase after each preview Can you help me please ?

 

Message was edited by: Don Williams Formatted the code - Copy it into Notepad and then paste it in and it removed the formatting tags.

 

Message was edited by: denis chatelain new fact : I try the same thing in a Windowsforms application and it works. No instances of reportdocument or crystalreportviewer stays in memory.

Group Tree issue, web form vs Win form?

$
0
0

Using Crystal Reports for Visual Studio 2010...

I am using the same report file for a Win form and web form version of the same utility program.  The report was built bases on a view to the database, and both programs populate the report based on a dataset which has the same columns with restrictive where clauses, based on user input prior to populating the report.

 

On the Win Form version, when the user clicks a group on the Group Tree, the report nicely navigates to the appropriate section of the report. However... on the Web version, the ReportViewer makes a return trip to the database, refreshing the data with the entire view, overwriting the original content.  In other words, out of lets say 50,000 possible records, if I ask for 50, they are displayed as I want, but in the web report, if I try and navigate to any of the 50, I get all 50,000 (an no navigation), an unwanted return to the database.

 

I am perplexed, as it is the same report file used by both versions.

 

I tried hiding the Group Tree panel (I don't need it), per instructions (CrystalReportViewer1.ToolPanelView = ToolPanelViewType.None;)

But that only closes the panel, and it is still available to the user to open (icon remaining). Is it possible to really make the Group Tree unavailable?

 

thanks,

Mark

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


Switch from Web Service to DataTable data source at run time

$
0
0

Hello,

I am using a web service XML data source and related web service XML Schema file at design time to create a report.  At run time, I am switching to a DataTable data source and am displaying the report as follows:

 

                Dim rptDoc As New ReportDocument
                rptDoc.Load(rptFileName)
                rptDoc.SetDataSource(dt)
                ReportViewer.ReportSource = rptDoc

 

 

The data table has the exact same field structure and schema as the web service.  Neither the web service for the results set or schema require any login information.  When I run this code on the development environment, it works perfectly.  When I run it on the web server, I am prompted to enter database login credentials, even though I'm not using a database for the results set nor does the DataTable require any additional parameters.  Please see the attachment for the prompt I am receiving.  I would expect that there would be no additional prompt at this point, except for report parameters.  Note in my ReportViewer I have the property set EnableDatabaseLogonPrompt="False".

 

Any help would be greatly appreciated!  Thanks

Crystal Report with VB.NET 2012

$
0
0

Hello Experts ,

 

Please find attachment

 

I have locked in my application bug build in VB.NET PROFESSIONAL 2012 version 11.0.50727.1 RTMREL on framework 3.5

with SAP Crystal Report 2011 .

 

On development machine everything is fine but on Client i am not sure which software is needed

of SAP Crystal Report to show my application crystal reports well.

 

I have added all references .

 

 

After searching i got some runtime environment need but for MY VB.NET PROFESSIONAL 2012 version 11.0.50727.1 RTMREL

i am confused which should i use.

 

 

 

Please response as soon as Possible .

 

Message was edited by: Ludek Uher AS per the SCN Rules of Engagement (http://scn.sap.com/docs/DOC-18590), email and phone numbers are not allowed.

removing tree view

$
0
0

BH,

Hi I have a report that I group by the ID, in case some records have the same name. When I run the report I don't want the user to see the tree view, and not be able to click on the toggle tree view (because the tree will just show numbers, which will only confuse the user). How would I do this in the Crystal Reports for Visual Studio 2010?

Thanks

Aron

How to develop a report in Crystal with flexible database name?

$
0
0

Hello

 

I am a Project Manager of a project of developing reports in Crystal 11.

The idea is to develop reports on top of the content in MS SQL tables.

 

 

 

The initial testing and demonstration to the customer is done within the Crystal development environment.

 

In a later stage, we need to integrate the reports with C# WPF application, using Crystal control.

 

We currently use ODBC connections.

 

We want the flexibility to set the actual database dynamically, by using the "default database" of the ODBC connection (or any other way). In other words, we want not just the flexibility to change the database server, but work with different database names, like "ProductDB_TEST", "ProductDB_PROD" etc. - without changing the report.

 

Unfortunately, we got the answer from the developer that the database name should be pre-defined for a given report. Although the connection can be set to another server, the DB name cannot be set dynamically.

 

Looking into the "Database" -> "Show SQL Query" menu, we see the following piece inside the query:

 

INNER JOIN "DATABASE_NAME"."dbo"."IncidentTypeSnapshotData"

 

So it looks like the query itself contains the DB name.

 

Is it really a limitation of Crystal, or rather the developer working on the project doesn't know the trick?

 

Thanks for any hint

Max

Reports & Microsoft SQL Server 2012 Express LocalDB support policy

$
0
0

Hello,

 

Willing to move some databases into Microsoft SQL Server 2012 (2014) Express LocalDB, I have tryed to map some reports on that database.

Using OLE DB SQL Native Client (v11) and SAP CR RunTime SP10 (>SP9), I still have trouble when using this data source:

 

After drawing some simple reports (standard ones with 2-3 fields from the database):

 

- VS designer:

+ when "checking database" or "getting a preview" of the report, it always complains about missing tables.

+ when trying to "re-map" tables from one SQL Server 2012 Express LocalDB to another one it fails, complaining about not findind resources.

 

- Running application (.NET 4.0, 32 or 64-bits):

+ without any change to the report configuration: CR Viewer complains with multiple error codes (17, ...) that it cannot find the tables

+ trying to change the configured database from the report: CR VIewer complains with some more error codes

 

=> Is Microsoft SQL Server 2012 Express LocalDB now officially supported by CR ?

=> Is changing datasource/database configuraton during execution now officially supported by CR ?

 

Feel free to provide an any links / howto's / white paper about how managing Microsoft SQL Server 2012 Express LocalDB with SAP CR !

 

Many thanks in advance.

Regards.

Error in File - Unable to connect: incorrect log on parameters.

$
0
0

Hello, I am getting a problem when download report as Pdf file. It shows error named "Unable to connect: incorrect log on parameters."  why i am getting this error, before report was downloading without any error.

Crystal Reports 13_0_9 image and cross-tab issues

$
0
0

Hi,

 

I have a problem viewing images on my ASP Crystal Reports web application. I have developed it using Visual Studio 2013 and am using CR for Visual Studio 13_0_9.

 

The embedded images on my reports show up like this:

image1.png

The word "image" shows up instead of the image itself.

 

I have added this to my web.config file but the problem persists:

<system.web>      <httpHandlers>                <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web,    Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>      </httpHandlers>

and...

 

<system.webServer>    <modules>      <remove name="FormsAuthenticationModule" />    </modules>    <validation validateIntegratedModeConfiguration="false" />    <handlers>            <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode,runtimeVersionv4.0"/>    </handlers></system.webServer>

How do I make my images appear?

 

I have another issue with a cross-tab report. It is a report for casual workers and shows the activities they performed and how much they were paid:

 

 

Casual ID
Last Name
First Name
PIN Number
Activity
Total
002OmarJohn233253545500500

 

I would like to add another column to the right of the activity column that will show the unit work per activity. E.g. If the rate of making a chair is 10 dollars and 50 were made, I want the report to show Activity - 500, Unit work 50.

The problem that I have is that when I add another column to the cross-tab report, it is somehow "linked" with the first column and not separate.

 

How do I acheve this? Any help appreciated.


CrystalReportViewer.SearchAndHighlightText How it works?

$
0
0

While I was examining the CrystalReportViewer ASP.Net control, I found the SearchAndHighlightText method.

I used it in an example and found that it searches in the current page only, and highlights the matched text objects in it.

 

I want to create search functionality similar to that in word processors. Where a user searches for text, and the matches are highlighted, and "next-previous" buttons appear to allow the user to navigate through the matches. But SearchAndHighlightText only returns a bool not matches.

 

How may I create the required functionality if possible?

Crystal Report with VS 2013

$
0
0

Hi!

I am having problem with crystal report visual studio 2013. It always display this message:

 

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

 

Additional information: Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

 

Can anyone here help please?

 

Currently I am using:

1. VS 2013 Update 3

2. Crystal Report SP 10

 

Message was edited by: Vanna Phon

Crystal Reports on Surface Pro 2

$
0
0

On a Surface Pro 2 with Windows 8.1 application we are using Visual Studio 2013 so SAP Crystal Reports Developer version for Visual Studio, v 10.

 

When we call the report only the labels are shown, no data or logos.

 

This same application works on a laptop with Windows 8.1, so we think it has to be a Surface issue.

 

Does anyone have any ideas or suggested fixes?

 

Thanks.

Report CSS not working after upgrade

$
0
0

I have been researching this issue for days with no luck.  I recently upgraded a project from VS2008 to VS1013.  During this process, I downloaded and installed the 13.0.10 installer.  Everything seems to work great except for the CSS functionality on the reports (not the report viewer).  Here's the scenario:

 

A webform has a reportviewer control and a link to the css file (Reports.css):

 

<head id="head1" runat="server">

    <link href="Reports.css" rel="stylesheet" type="text/css" />

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"

            AutoDataBind="true" HasCrystalLogo="False" Height="50px" Width="350px"

            style="position:relative;z-index:0;" CssFilename="ReportViewer.css" ClientIDMode="Inherit" HasRefreshButton="False"></CR:CrystalReportViewer>

    </div>

    </form>

</body>

 

Prior to converting the project this would cause the report to be rendered according to the CSS style rules.  After converting the project it does not.  It seems the issue is related to the fact that the report viewer now renders the report output to an iFrame, but I cannot find a way to make the iFrame use the stylesheet.  How do we get the CSS style applied to the reports?

Red X instead of images when running a CR for VS report in my ASP.NET app

$
0
0

I've been researching this on the SAP Business Objects web site - so far nothing has worked!

 

I'm creating an ASP.NET web app using CR for VS (version 13.0.10) under Visual Studio 2013 for .NET 4.x running on a Windows 2012 (64-bit) server.  The app is compiled under 64-bit and the report shows data in the Web Viewer.  The only thing missing are the images (including the charts) - I'm seeing red Xs because the path to the image is not found.  The image path has the path of the folder that my ASP.NET web form is in - with http://servername/appname/foldername/CrystalImageHandler.aspx?dynamicimage=cr_tmp_imagehttp://servername/appname/folder/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_ ...   That path produces a 404 error (confirmed in the IIS logs).  However, the images are all there if I export to a PDF!

 

I researched a number of threads (887604, 1338110, 1810968, 3375644, 3541014) and documents (1329630, 1547124) that address this issue.  From the info, I tried putting the httpHandler reference under the system.web section or putting the handlers reference under the system.webServer section (with both preCondition="integratedMode,runtimeVersionv4.0" and preCondition="integratedMode").  (FYI, my application pool is using Integrated mode.) So far nothing has worked!

 

If anyone has any ideas what I am missing or what might be wrong here, please let me know.  Thanks in advance for your help!

Viewing all 3636 articles
Browse latest View live


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