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

Embeddable Crystal Reports Designer Control and Crystal Reports 2011

$
0
0

In Crystal Reports 11 there is an  "Embeddable Crystal Reports Designer Control" (CRDesignerCtrl.DLL). We can add this control to a form and have the possibility to modify reports at runtime. Are there in Crystal Reports 2011 (will become available in the future) something to do the same?

 

thanks.


Excel formatting issues when using Crystal Reports SDK for VS .NET

$
0
0

We are using Crystal Reports SDK for VS .NET in our windows application development in VS2010 .net. The Crystal Report Viewer is embeded in the WinForm and tied up to the ReportDocument to display the Crystal Report developed in Crstal Report 2011.

 

The Export button in the Crystal Report Viewer , which is part of the Crystal Reports SDK for VS .NET doesn't give us the options to select "show gridlines" as in CR XI and to open the exported Export Report in Excel (Application option missing) .The only option is to store to a Disk file location and the Excel file stored doesn't show grid lines.

 

So we started using the CrystalReports.Engine Api(s) with ExcelFormatOptions, and passed it as parameter to the ReportDocument.Export method.

When we do that we are getting formatting issues. the format of the Excel output is not matching the format of the Orginal Report in CR2011(i.e when it is exported using the Crystal Designer IDE)

 

Please suggest ideas to match the formats as our users are using the Excel outputs to feed other systems and hence the formatting becomes atmost importance for us to use Crystal Reports. I give below the code we use to achieve this so far

 

strRepFileName = Report_ID.Trim() + ".xls";
dfDestinationOptions.DiskFileName = strRepFileName.Trim();

exOptions.ExportDestinationType = ExportDestinationType.DiskFile;
exOptions.DestinationOptions = dfDestinationOptions;

ExcelFormatOptions exopt = new ExcelFormatOptions();               
exopt.ShowGridLines = true;
exopt.ConvertDateValuesToString = true;
exopt.ExcelAreaGroupNumber = 1;
exopt.ExcelAreaType = AreaSectionKind.Detail;
exopt.ExcelTabHasColumnHeadings = true;
exopt.ExcelUseConstantColumnWidth = true;
exopt.ExportPageBreaksForEachPage = true;
exopt.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage;
exopt.UsePageRange = true;


ExportOptions exOptions = new ExportOptions();
exOptions.ExportFormatType = ExportFormatType.Excel;
exOptions.ExportFormatOptions = exopt;
rptReport.Export(exOptions);

Crystal 2011 Deployment

$
0
0

Hi,

 

I'm currently developing with Visual Studio 2010. We write our reports using the Crystal Reports 2008 designer (the standalone SAP application and not Visual Studio version). The crystal 13.00x runtime is installed (via a merge module installer) on client PCs running our software, which opens rpt files.

 

This setup works fine, but we're looking at upgrading to Crystal 2011 (from 2008) and possibly upgrading Visual Studio to 2012 (from 2010). I know that the most recent Crystal for Visual Studio targets VS2010 and has a 13.00x version number.

 

My question is, will I encounter any issues running Crystal 2011 reports (created in the Crystal designer) with the most recent version of Crystal for VS 2010 installed (and the relevant merge modules installed on client PCs)?

Using Excel worksheet Datasource with Crystal Reports for Visual Studio 2010 (windows 7 x64) not working

$
0
0

Hi,

 

We have trouble setting up a report that pull up data from an Excel sheet. I want my report to show on Crystal Report Viewer. I installed Crystal Report for Visual Studio 2010 (both x64 and x86).

 

Here is the code on the form load:

        Dim viewer As New CrystalDecisions.Windows.Forms.CrystalReportViewer

        Me.Controls.Add(viewer) 

        viewer.Dock = DockStyle.Fill

        viewer.ReportSource = "T:\Reports\External\NAPA\NAPALabels_NoDataSourceChange.rpt"

 

I tried those 3 connection type:

  1. Access/Excel (DAO)
    • Folowing error: Failed to load database information. Error in File NAPALabels_NoDataSourceChange {AE05....}.rpt: Failed to load database information.
  2. Database File
    • Same error as Access/Excel (DAO)
  3. OLE DB (ADO)
    • Database Login dialog shows up:

ScreenShot008.jpg

 

All those connection type work in Crystal Report 2011 designer. But when I try in the application (running in 64 bits) nothing works.

 

Any idea how I can make that works?

 

Thanks

crw32.exe Unhandled Exception : Integer Division By Zero

$
0
0

Crystal Report 2008 crashes when it loads some BLOB photos from the database. More over it is also forcing w3wp.exe to crash as shown below.

 

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8

Faulting module name: cslibu-3-0.dll, version: 12.2.0.290, time stamp: 0x4a363e0c

Exception code: 0xc0000094

Fault offset: 0x0002d60d

Faulting process id: 0xc50

Faulting application start time: 0x01cddd11a33df251

Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe

Faulting module path: C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\cslibu-3-0.dll

Report Id: 2d5a4f56-4905-11e2-a36c-bc305bee5c74

 

 

CrystalReportError.jpg

Report Viewer for Crystal Reports for Asp.net MVC

$
0
0

Dear Sirs:

 

 

I'm interested in knowing if you have a Crystal Reports using ReportViewer for Asp.net MVC?

 

 

So far what I'm doing is generating PDF documents but it's not the most optimal.

 

 

best regards,

 

 

Alberto T. Payero

Failed to load Database information when trying to run a command report

$
0
0

Hi,

 

I created a basic command report connecting to a SQL database using Crystal Reports for Visual Studio 2010 Database Expert>Add Command. When I run this report from my web application(.NET 4.0) it throws an error while loading the report, Failed to load Database information:Error in File ... .rpt

 

When I set the Enable 32 bit applications to true on my Application Pool the report runs fine and also when I preview the report through the design it works fine too.

 

Wonder why I have to Enable 32 bit applications. Doesn't it run on 64 bit apps.

PS: All the other reports designed through the same designer works and runs fine though even on the 64 bit application.

 

My Operating System is Windows 7 Enterprise 64 bit and I have a Crystal Reports runtime for VS 2010 64 bit on that server.

 

Below is the SQL Command Query:

SELECT "CNTCTID"."NAMEFIRST", "CNTCTID"."NAMELAST", "EMPLOYEE"."HIREDATE", "EMPLOYEE"."EMPID"

FROM   (RESOURCES.EMPLOYEE "EMPLOYEE"

               INNER JOIN RESOURCES.CONTACT "CONTACT" ON "EMPLOYEE"."CONTACTKEY"="CONTACT"."CNTCTKEY")

      INNER JOIN RESOURCES.CNTCTID "CNTCTID" ON "CONTACT"."IDKEY"="CNTCTID"."IDKEY"

 

I read somehwere in other forums that

This is due to CR being a 32-bit app running on a 64-bit server.  The server needs to be configured to run 32-bit apps in 32-bit mode.  This is an issue that is not unique to Crystal Reports. Is this really the issue?

 

Please do suggest me.

stand alone CR vs. CR for Vb.net 2010

$
0
0

I would like to know if there is any complications in using the stand alone- paid version of CR with .net 2010 instead of downloading and using the free version. 

 

Also, since I am migrating a 2008 app to 2010 I would like to know if I can convert my 2008 vb.net crystal reports (free version) into the stand alone CR versions.  I know that athe 2008 reports will work fine with the .net CR free version for .net 2010, but I wonder if I can convert them to the stand alone.

 

So, if the issue was not the cost of the stand alone version, is it better to use that one rather than the one that  downloads for .net 2010.  (.i.e fewer complications)   These would be using datasets from SQL server. 

 

using the bundled .net 2008 version of CR it is very easy to create a dataset  in vb.net with sql and then create a report from it.  Would it be just as easy using the paid verions.

 

Also, What about connecting the CR to the .net setup programs.  Is this complicated with the paid version?

 

Appreciate any information or insight on this.


Crystal Reports viewer(runtime) barcode printing problem

$
0
0

Hello,

 

We are a SAP BO Partner using Crystal Reports to print barcode labels. Can you advice me how to print barcodes from SAP Business One via Crystal Reports Runtime using printer internal barcode fonts? We print on Zebra or Datamax printer. We are able to print the barcode when we create a report in Crystal Reports Basic 2008, however, it doesnu2019t come out in CR Runtime. It means when calling the same report from SAP BO via Crystal Reports Runtime the internal printer barcode font changes into a standard font and it comes out just as a text.

 

Thanks for your advice Miroslav.

Upgrading reports from VS 2005 to VS 2010 Character spacing and positioning get changed which is not acceptable for Pre Printed Formats, Cheque Printing and Label Printing etc.

$
0
0

We upgraded our Windows Application Project from VS 2005 to VS 2010 every thing is working fine except Crystal reports which now converted into SAP Crystal report for VS 2010 (13) SP 4. When we print on Pre-Printed stationary (Invoices, Orders, Cheque, Lable printing) it is not coming proper on position as was there in VS 2005.

 

Some system also have other issue while printing on same printer on which we develop report we are not getting full view of report it is showing some part smaller then even A4 size for a A3 size (Actual Report size) printing in width(don't know why this happened).

 

We want to know how to fix these issues (whether we have to redesign each reports according to new SAP Crystal Report or there is or will be any fix provided for it by SAP Crystal Report Providers).

 

Your quick reply will help us for further development.

Pictures in reports

$
0
0

I am interested in putting pictures in reports, I am interested in putting the clients logos onto crystal reports.

 

I wanted to try and extract a picture from the database and output it in a certain IBlobFieldObject. I am using the code below in an attempt to do that but it gave me the error "Unable to cast object of type 'System.Byte[]' to type 'CrystalDecisions.CrystalReports.Engine.BlobFieldObject'.".

 

 

 


 Dim ReportTitle As CrystalDecisions.CrystalReports.Engine.BlobFieldObject

 

 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load        Dim rpt As New CrystalReport3           Dim iSql As String = "Select Picture from MyImages where ID =5"        Dim da As New OleDbDataAdapter(iSql, Con)        Dim dTable As New DataTable        dTable.Clear()        da.Fill(dTable)        ReportTitle = rpt.ReportDefinition.Sections(0).ReportObjects("Picture1")        ReportTitle = dTable.Rows(0)("Picture")        'ReportSiteName = rpt.ReportDefinition.Sections(0).ReportObjects("text2")        'ReportSiteName.Text = dTable.Rows(0)("SiteName").ToString        'ReportSiteName = rpt.ReportDefinition.Sections(0).ReportObjects("text4")        'ReportSiteName.Text = dTable.Rows(0)("SiteName").ToString        rpt.SetDataSource(dTable)        CrystalReportViewer1.ReportSource = rpt    End Sub

CRVS 2010 - blank lines in report with paging disabled

$
0
0

Hello,

 

I am working on a .Net 4.0 web application which uses Crystal Reports 13 (CRVS 2010). Actually this has been migrated from .Net 1.1 which was using Crystal Reports 11. Now one of my requirement is to generate few reports in which paging is disabled (of course when exported to PDF it does come out in multiple pages) such that the entire report content is shown in a single view on the web page (with a vertical scroll bar). Now to achieve this I set a few properties as shown below -

  • Set DisplayToolbar to false on the crystal report viewer control
  • Set the SeparatePages property to false on crystal report viewer control
  • In the report (rpt file) I enabled/set Keep Together on all sections and also set Suppress Blank Section property
  • As I did not have much in page footer I set the Reserve Minimum Page footer property. I also set Clamp Page footer property

However when my report is displayed in the page, I observe blank lines in between the content (shown in the attached jpeg). A deeper look suggests that these blanks appear right at the point where I would have had the page break if I had enabled paging. This makes my report look odd on the web page. With the old application which used previous version of CR this was not the case. Is there a way wherein I can ensure that the report when displayed on the web page concatenates the content properly without any gaps considering that I disabled paging?

 

Any help would be highly appreciated.

 

Thanks,

GowriShanker.

 

P. S: Also attached is the report file with extension changed to txt.

Crystal Reports 2008 - Error deploying on Windows 7 64 bit

$
0
0

My reports will not display on a 64 bit Windows 7 computer.

 

I have a VB.NET app I wrote that used Crystal Reports XIR2 to display a number of reports. Everything has worked fine for a year or two, but now we're rolling out 64 bit Windows 7 computers and my reports will no longer display.

 

I've upgraded my Crystal Reports to the latest 2008, with SP2 and all hotfixes through 2.3.

I've updated the references in my project. And I've included the CRRuntime_12_2.msm merge module in my setup.

 

If I just install my updated install package, I get an error duing the install....

Module C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\querypanel.dll failed to register. HRESULT -2147010895. Contact your support personnel.

 

If I install the CRRuntime_12_2_mlb.msi runtime package first, then install my updated install package, the install goes smoothly without error. But when I run my application and try and view a report I get two errors....

1) An error has occured while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly. (I do not now what registry keys to check, but it was installed and run as an Administrator so it should have all the permissions it needs)

2) The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

 

 

Please point me in the right direction to help me resolve this.

Thanks.

Left alignment is generating extra space in exported pdf.

$
0
0

Hello Friends,

 

I am using Crystal Report 13 (SP 2) for Visual Studio 2010. I have crated a CR and exported it as PDF. There is a field in my CR that contains data for approx 2 or 3 paragraphs. I have set alignment of that filed to Left. The text of that field was looking fine in preview. But in exported pdf file it contains extra space.

 

Please see below image for reference:

align.png

 

Right and center alignments are also generating extra space, and justified is not suitable in my report.

 

I followed many posted regarding the issue on this forum, but did not find them helpful. Please help me and guide me, what should I do to resolve this issue.

 

I will be very thankful to you.

 

Regards,

Namrata Mathur

SAP Crystal Reports Version for Visual Studio 2012 availability

$
0
0

I would like to know when SAP Crystal Reports version for Visual Studio 2012 will be available. We are planning to migrate all our applications to VS 2012 and Crystal reports is essential to us.


CRVS2010

$
0
0

I would like to use a CrystalReportViewer control in ASP.NET with .Net Framework 4 to reach for BOE XI 3.1 reports with BOE SDK that comes with CR 2008 Developers Edition.

 

I could only use .Net 3.5 at the moment.

 

If anyone knows which combination of versions are compatible for my need, please reply.

ASP.NET 4.0 with CrystalReportViewer control is a must. Not sure if I should upgrade to BI4.0 SDK and will be able to reach for BOE XI 3.1 server?

Page Break Issue in Crystal Report (CR 13)

$
0
0

Hi,

 

I have an asp.net web application that is integrated with crystal reports. Crystal Reports version that we are using is CR 13 SP3. When a report gets generated, the content is breaking at the end of each page.So, blank spaces are repeating in the report at end of each page. I dont want the report content to break like this at end of each page. Could some one help here to resolve the issue? I am not able to find the option to disable page break.

 

Thanks in Advance,

Krishna

Program crashes when I try to export to pdf file using CR for VS2010

$
0
0

I'm using VS2010, framework 4.0. I can view, print, and export the report to excel. When I click export, select pdf, enter a file name, and click save...I get the following message:

 

Value cannot be null.

Parameter name: window

 

I added Ludek's code to limit exports to pdf and excel to my JPTreportView.xaml.vb file:

 

Public Class JPTReportView

 

        Private Sub UserControl_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded

            reportViewer.ViewerCore.ReportSource = Me.DataContext.ReportSource

            reportViewer.ViewerCore.ToggleGroupTree = False

            reportViewer.ViewerCore.ToggleParameterPanel = False

            reportViewer.ViewerCore.ToggleSidePanel = False

            Dim exportFlags = (CrystalDecisions.Shared.ViewerExportFormats.PdfFormat Or CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat)

            reportViewer.ViewerCore.AllowedExportFormats = exportFlags

        End Sub

    End Class

How to display the Line Graph week wise with using one parameterise Date?

$
0
0

Hi,

How to display the Line Graph week wise with using one parameterise Date?

End User wants to display dates on x axis and its values on Y axis .

 

i.e. if  we choose 1/10/2012 then on x axis we have to display   1/10/2012    7/10/2012    14/10/2012    21/10/2012    28/10/2012      31/10/2012

 

suppose i select 1 parameter startdate then  other week date will startdate+7 next date will (startdate+7)+7  & next ((startdate+7)+7)+7

 

Please help me any one have idea.

 

Thanks

Nilesh Pawar

.Net Viewer - Generated report not showing grouped section values and fields overlap

$
0
0

I am able to successfully generate reports via the browser using the .Net viewer, however when the report is generated the group names do not show and the alignment of the fields in some sections is off or overlaps other fields. I have tried several methods that I found within the forums to resolve the issue, but none of these has worked. These include:

 

1) Setting the fields to can grow and limiting it to one line ( Note 1207237 )

2) Modifying the webconfig file to allow text clipping ( Note 1535833 )

3) Adding an intermediate page to capture the DPI value and set it prior to rendering. ( Note 1421021 or 1372993 )

 

4) Downloaded and installed SP4:

 

Support Pack 4

(v. 13.0.4.x)

SP 4 Fixed Issues Wiki32bit_13_0_4.msi64bit_13_0_4.msi13_0_4.msmclickonce_13_0_4

 

This only appears to affect the viewer as I can export the report from the viewer to a PDF and it is formatted correctly. Attached are two screenshots (GoodFormatting.jpg - generated in crystal designer and BadFormatting.jpg - generated in .Net viewer) of the report that show what it should look like and what it looks like from the viewer. Any help on this is greatly appreciated.

 

Thank you,

Shawn

 

.Net Framework 4.0 & 4.5

Crystal Reports 2011 v14

Visual Studio 2010 and 2012

OS: XP,Win7, Server 2008 R2

Viewing all 3636 articles
Browse latest View live


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