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

hi

$
0
0

I have installed VS2010 in my computer and also installed CRforVS_13_0 for crystal report. But I am unable to find the crystalreport viewer in toolbox.

 

I tried this in my personnel laptop it is working fine but in my office laptop its not showing the crystalreportViewer in toolbox.

 

Could you please suggest is it restricted in firewall by any means, I following the same steps as in my personnel laptop.

your help much appreciated.

 

Thanks,

Ganesh.


WPF Binding Crystal Reports using MVVM, Null Reference Exception

$
0
0

Hi,

I have a problem hanging with it,

binding crystal report, using MVVM,

The problem is as follows:

I have a user control holding crystalreportsviewer using DependencyProperty

local:ReportSourceChanger.ReportSource="{Binding DataContext.ReportSource, RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}, Mode=FindAncestor}}"

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

ReportSourceChanger contains

public static class ReportSourceChanger
     {  
         public static readonly DependencyProperty ReportSourceProperty =
             DependencyProperty.RegisterAttached(
             "ReportSource",
             typeof( ReportDocument),
             typeof(ReportSourceChanger),
            new PropertyMetadata(ReportSourceChanged));

         private static void ReportSourceChanged(
             DependencyObject dp,
             DependencyPropertyChangedEventArgs e)
         {          
          var crv = dp as CrystalReportsViewer;             
              if (crv != null && e.NewValue != null)
              {
                  crv.ViewerCore.ReportSource = e.NewValue;       }    }
         public static void SetReportSource(DependencyObject target, object value)
         {
                target.SetValue(ReportSourceProperty, value);     }
         public static object GetReportSource(DependencyObject target)
         {
             return target.GetValue(ReportSourceProperty);       }}

I have a MainWindow handles the user control

<DataTemplate DataType="{x:Type vm:ReportViewModel}" >
         <vw:UCReportViewer  />
     </DataTemplate>

I have e view model named ReportViewModel that handles ReportSource property,
that loads the ReportDocument as follows:

public ReportDocument ReportSource
         {
             get
             {
                 ReportDocument rd = new ReportDocument();
                 rd.Load(Path);
                     rd.SetDataSource(_reportRepository.LoadEmployeesItems().ToList());
                  return  rd;     }}

In the MainWindow I have buttons that handle commands to create tabs as new user controls
at the first tab created, it works perfectly if I leave the tab opened with the report binded,
and create another tab with new different report it shows me null reference exception as follows:

 

    Object reference not set to an instance of an object.  ( nothing else )

If I close tab an try to open another tab with new usercontrol that handles a report, it works.
The case that doesn't work is only with multiple tabs opened.

 

I think the reason that causes the exception is that the crystal report viewer reference the same source from the first tab,

but I don't know how to resolve in that context.


 

 

The method that creates and shows the tab is as follows:

 

void ShowReport(string reportPath, string name)

        {

ReportViewModel workspace =

                this.Workspaces.FirstOrDefault(vm => vm is ReportViewModel && vm.DisplayName == name)

                as ReportViewModel;

            if (workspace == null )

            {                workspace = new ReportViewModel(reportPath,name, _reportRepository);

                this.Workspaces.Add(workspace);

            }            this.SetActiveWorkspace(workspace);

        }

 

 

 

 

I would be grateful if someone can help me regarding to this issue.

  Thank You

Embedded or Non Embedded Reports

$
0
0

Hello,

 

We use non embedded crystal reports in our windows application. Users have been complaining that the reports take time to load, just the first time. According to some discussions, applications load the required dlls just for the first time users run a report, that's why it takes longer for the app to load the report for the first time. Some developers suggested that we load a report in the background when users log in, so by the time they get to the user interface to run a report, the dlls are already loaded, and the app won't take too long to load the report.

 

My question here is, if we use embedded reports, will that speed the loading process for the first load? do you really suggest loading a report in the background to load all the required dlls?

 

Thanks!

How can I obtain a .pdb file for cslibu-3-0.dll?

$
0
0

We are experiencing a crash on one of our servers. We are running a Windows service that uses Crystal Reports for Visual Studio 2010 to generate reports. We have captured a dump when this crash occured and sent it to Microsoft for analysis. They have requested that we provide them with the .pdb file for cslibu-3-0.dll so they can analyze the dump. How can we obtain this file?

How to call Multiple .rpt in a single aspx file?

$
0
0

Hi,

     I am using VS2010 with Version 13.0Crystal reports. i searched lot. i want to call multiple .rpt files in Single Default.aspx file.

each and every .rpt having different parameter's.

 

Is that possible to call multiple .rpt in a single .aspx file?

 

Thanks in advance.

VS 2010 doesn't see Crystal Reports

$
0
0

I have downloaded the SAP Crystal Reports runtime engine for .NET framework and installed it.

 

When I run VS 2010 and try to create a report, however, I only get an introductory webpage .mht offering me a link to download

Crystal Reports rather than the report selection menu I was expecting.

 

Is there something more I need to download or is there some configuration I need to do to let VS recognise Crystal  Reports?

Can't see MySQL views in Crystal Reports in VS2010

$
0
0

I am creating a report in VS2010. I have used Database Expert to create a new ODBC connection and I can see my database and its tables but I can't see the views that are there. In Options for the connection I have both Tables and Views ticked. Can anyone help?

Report Appears blank in IE 9 browser

$
0
0

Using Cystal Report Viewer in IE 8, data displays correctly. When I test the report in IE 9, report appears blank.

Is there any service packs needs to be installed?

 

 

Currently we are using VS 2010, Build version of CR is 13.0.0.99.Cortez_CR4VS

 

Thanks


ExportPDF freeze without any message

$
0
0

I use Crystal report for SAP B1 (crystal report Basic 2008)  in a visual studio 2005 vb application.

When I export the report in pdf nothing appends an no message appears.

Can anyone help me ...

 

 

      Try

            Etat = New CR_Etat

            Etat.FileName = PathRpt

            Etat.DBConnect()

            If ModeDebug >= 9 Then Console.WriteLine(" DEBUG ExportImpCarteBL Etat.DBConnect OK")

            Etat.Parameter("DocNum") = NumBl

            Etat.Parameter("LineNum") = LineNum

            Etat.Parameter("ItemCode") = ItemCode

            Etat.Parameter("CardNum") = CardNum

            Etat.Parameter("MontantCarte") = MontantBarcode

            If ModeDebug >= 9 Then Console.WriteLine(" DEBUG ExportImpCarteBL Etat.ExportPDF NOK")

            Etat.ExportPDF(PathExport)

            If ModeDebug >= 9 Then Console.WriteLine(" DEBUG ExportImpCarteBL  Etat.ExportPDF OK")

            Etat.Report.Close()

            If ModeDebug >= 9 Then Console.WriteLine(" DEBUG ExportImpCarteBL  Etat.Report.Close OK")

            Return True

 

 

The Log shows

...

DEBUG ExportImpCarteBL Etat.ExportPDF NOK

...

and nothing append after.

Restarting the application should sometimes resolve the problem!!!

Help !!

Trying to pass C# DateTime to Crystal Reports where DateTime is used in rpt query

$
0
0

Hello,

 

I am trying to pass a C# DateTime object programatically to a report where that datetime is used in a Crystal Reports selection clause. A snippet of the code is as follows:

 

I can't get cut and paste to work in this window so bear with me.

 

report.SetParameterValue(0, assetID);

report.SetParameterValue(1, mPassTerminationNotification.PassStartTime.ToString());

report.SetParameterValue(2, mPassTerminationNotificaiton.PassEndTime.ToString());

report.SetParameterValue(3, passID);

 

report.ExportToDisk(ExportFormatType.Excel, filename);

 

Crystal Reports get these parameters and does a where clause and the DateTime seem to be the issues.

 

{Asset.Asset_Name} = {?@assetID} and

{Pass.Pass_ID} = {?@passID} and

{Alert.Alert_DateTime} >= {?startTime} and   //This line is the issue

{Alert.Alert_DateTime} <= {?endTime} and  //This line is the issue

isnull({Alert.Measurand_Index})

 

When run it throws an exception Unable to connect:  Incorrect log on parameters

Note rpt file goes to a Table query thorugh an ODBC connection.

Report runs fine when running through Crystal Reports 2011 directly.

 

PS.  I tried removing the two lines above and it ran.     I also tried sending the C# DateTimes without the ToString() and it resulted in the same error.

 

Any assistenace would be greatly appreciated. Also if you know a way to cut and paste into this forum that would be helpful as well.

App crashing , all unmanaged resources are Disposed ,no COM dll's ,no unmanaged Code , then what? Crystal Reports

$
0
0

Hello all , This Error are very very hard to find what causes it !

my application has many oledbConnections and dataTables and more about system.data

All of them are disposed after them are not needed ,so there are not any unmanaged resources not disposed.

The error usually occured when i am trying to show crystal reports , on some machines, just showing and closing forms causes this error , the strange thing is that my application dosen't has any unmanaged code or com Dll's.

 

This error start occuring suddenly.

 

Notes :

.Net framework 4 Full Profile .

crystal reports for vs2010 .

jit suppress is off .

this often occured when i show the crystal report next time , not on first time

also reports are closed and disposed after using them

Thank You very much

 

This is the Original question on msdn forum :

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/8a71b90f-ce15-44ad-9cd3-fcc4e31572e7

Data Refresh - WPF Crystal Reports Viewer Control -Crystal Reports for VS 2010

$
0
0

Is there a viewer control property to force a data refresh everytime a report is lauched from within the viewer control

SAP file missing

$
0
0

I’m running VS2012 on Windows7
(64-bit) computer.

 

 

The error states that the following file cannot be found:

 

 

“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”

 

 

When I use Windows Explorer and drill down to “win32_x86”
there’s no folder named “dotnet1”. There’s a “dotnet” folder. The DLL is not in
that folder either.

 

The actual location of the file is “C:\Program Files (x86)\SAP
BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP
BusinessObjects Enterprise XI 4.0\win32_x86\crdb_adoplus.dll"

Font overlapping

$
0
0

in PDF export the report looks normal

       A.   text to long for the filed is trucated

       B.   text is proper font size and fits in its area

but in the CrystalReportViewer (using C#) the text overlaps and is not readable in some areas

       see attachment

 

is there a way to correct this in the viewer without editing every report so that it looks right in both viewer and PDF

Export to pdf causing a crash after upgrading to version 13.0.5

$
0
0

Hi,

 

I've upgraded to the latest version of SAP Crystal Reports, version for Visual Studio, using CRforVS_13_0_5.exe from version 13.0.4.

Right after the upgrade, I've run the same code that used to work on the last version and suddenly it crashes when I use the following code:

ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(reportPath);
crystalReport.SetDataSource(dtData);
try
{     crystalReport.Export();  //Crashes here
}
catch (Exception e)
{
}

 

crystal crash.png

Problem signature:

  Problem Event Name:          APPCRASH

  Application Name:          ReportsMailer.vshost.exe

  Application Version:          10.0.30319.1

  Application Timestamp:          4ba2084b

  Fault Module Name:          crxf_pdf.dll

  Fault Module Version:          13.0.5.891

  Fault Module Timestamp:          50e9684c

  Exception Code:          c00000fd

  Exception Offset:          00060c37

  OS Version:          6.1.7601.2.1.0.272.7

  Locale ID:          1033

  Additional Information 1:          dbcc

  Additional Information 2:          dbcccc288555cd9c867bb7543f79ff62

  Additional Information 3:          9576

  Additional Information 4:          95762008e7f9a6425b6ab9ab5943492e

 

 

Read our privacy statement online:

  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

 

 

If the online privacy statement is not available, please read our privacy statement offline:

  C:\Windows\system32\en-US\erofflps.txt

 

One more important thing to mention - the code is running with different datatables as input and only crashes when the data exceeds a certain amount.


The maximum report processing jobs limit configured by your system administrator has been reached.

$
0
0

It is very weird that we encountered this error in our environment.

As far as we set the printjoblimit to -1 in registry, It suppose to load reports unlimited. As I understood from SAP and Business logic documents, those registry keys have been added to optimize the way that crystal reports was working and 75 concurrent reports is optimize value to prevent server hangs.

But why when we set that value to -1 meaning we want to run unlimited reports (we dispose reports properly, so we dont have resource occupation problem).

Do we need to do another manipulation or configuration to make crystal reports work and doesnt generate this error?

 

Trouble deploying website to production server

$
0
0

Development:  Windows 7 (64bit), Visual Studios 2010 with crystal reports, 4.0 .net framework

Production:  Windows Server 2008 R2, IIS 7.5, 4.0 .net framework

 

I'm really hoping someone can help.  I have created a website in visual studios 2010 that contains a report using crystal reports.  All works fine in the development environment but I have been unable to get it to work in the production server.

 

I have installed the 64 bit runtime of CRVS 2010.  When I install this version, I get errors about the assemblies not being found.  So I moved the .dll files into the bin directory of my site.  Now I get the following error

 

An error has occurred 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. Please install the
appropriate Crystal Reports redistributable (CRRedist*.msi) containing the
correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.
Please go to http://www.businessobjects.com/support for more information.

 

So I then tried to install the 32 bit version.  No error occurs, but the viewer does not display and all I get is a blank page.  I moved the aspnet_client directory into the root directory of my site.  Still nothing.  Is there something else I should try?

 

Thanks so much for any help I can get!

Arabic Number Display at Runtime in Crystal report 2008

$
0
0

Hi,

 

I want to display numeric field/numeric text value in crystal report 2008 in Arabic numbers. if i change control panel regional settings, all crystal report elements are changing into arabic numbers like header page1,head page2 ,etc.,, then font size, page number every thing crystal report But field from database or text in crystal report which i made not showing in arabic numbers.

 

One i found, while edit the text object , text are showing in arabic number but if i come out from edit mode , it is display in english number

 

 

please give the solution for this,

 

is it need any language pack for arabic in crystal report 2008 ?

Mixed page orientation

$
0
0

Hello,

 

I'm investigating whether it is possible to create a report with two pages. One page with portrait orientation and the other one with Landscape orientation.

I have read this article:

 

      http://www.codeproject.com/Articles/434648/Crystal-Reports-Mixed-Page-Orientation-Formatting

 

but I can not change the orientation as this says. Probably because I have little experience using Crystal Reports.

 

I use Crystal Reports 11 and Visual Studio 2008. Could you help me?

 

thank you very much

- Jose

Empty Header/Footer displays when SeparatePages="False"?

$
0
0

Hi I'm running into an issue when I converted my reports from .net 2 (crystal 10) to .net 4 (crystal 13). I tried it with the server runtime at 13.0.1 initially, but changed it to 13.0.5 when trying to fix the issue. (Didn't make a difference). My developer copy was at 13.0.5 the whole time, and I get the error when I use that also.

 

I have a set of example files that should show what I'm seeing, but it won't let me attach them. Please contact me via email and I will send you the zip file.

 

I noticed this similar discussion which did not end in a solution:

http://scn.sap.com/thread/3284720

Viewing all 3636 articles
Browse latest View live


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