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

Slow Crystal reports printing

$
0
0

Hi,

i am printing a 1000 Pages report, the report contains 2 sub reports, the problem is that it is taking almost 20 minutes to start printing, and on more records like around 3000 records printing newer starts,how can i print this report, so the printing can start quickly, is there any solution or workaround for it,please note that if i remove sub reports from the report it works fine, but i cannot remove sub reports due to my design limitations.

 

thanks in advance


Cannot Load File C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

$
0
0

I'm Using VS 2012 with CR for VS SP5 (2012) on my Development Machine with Win 7 64 Bit with MS Access ADO .Net Connection to Access 2007 DB File

 

Development and all is working fine and had also installed 64 bit CR on my Machine

 

On Executing the Application the following Err. is occuring

 

System.IO.FileNotFoundException was unhandled

  HResult=-2147024894

  Message=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\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

  Source=mscorlib

  FileName=file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

  FusionLog==== Pre-bind state information ===

LOG: User = SGAI\Amit

LOG: Where-ref bind. Location = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

LOG: Appbase =******************************************

LOG: Initial PrivatePath = NULL

Calling assembly : (Unknown).

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: No application configuration file found.

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win64_x64/dotnet1/crdb_adoplus.dll.

 

  StackTrace:

       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

       at System.Reflection.Assembly.LoadFrom(String assemblyFile)

       at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)

  InnerException:

 

For Conferming That 64bit CR is installed properly I just created a simple app with CR Viewer and an Blank CR which is working fine.

 

Please Help

Option distinct in the Model

$
0
0

On a rapport, i can mark that I want only distinct records.

I do'nt find this propertie in the object model.

 

Joël.

WPF Viewer 13.0.4 to 13.0.5 Differences

$
0
0

When updating a WPF project from 13.0.4 to 13.0.5, I get an error.  My project doesn't show up in the stack dump, and I make no changes to the project other than the version of Crystal that it is installed with.  The error shows up on a clean machine using Win XP and Win 7.

 

Before I show the error, I would like to list a few questions:

  • Can this be confirmed as a bug, or am I doing something wrong?
  • If this is a bug, is there a way to remove 13.0.5 and reinstall 13.0.4?  (It seems like once 13.0.5 is installed, I can't go back and repair the machine)

 

Code that Causes the Crash

 

The last line of this sequence worked in 13.0.4, but indirectly causes the crash in 13.0.5:

 

var reportSource = this.CrystalReportsViewerMain.ViewerCore.ReportSource as CrystalDecisions.CrystalReports.Engine.ReportDocument;

//...modify reportSource

this.CrystalReportsViewerMain.ViewerCore.ReportSource = reportSource;

 

The Error Message

 

Object reference not set to an instance of an object.

 

The Error Message Location

 

Void UserControl_IsVisibleChanged(System.Object, System.Windows.DependencyPropertyChangedEventArgs)

 

The Stack Dump

 

Note, the stack dump doesn't contain a reference to my software.  This happens when the visibility changes when resetting the report source.

 

at SAPBusinessObjects.WPF.Viewer.DocumentView.UserControl_IsVisibleChanged(Object sender, DependencyPropertyChangedEventArgs e)

  at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)

  at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

  at System.Windows.UIElement.UpdateIsVisibleCache()

  at System.Windows.UIElement.SynchronizeForceInheritProperties(UIElement uiElement, ContentElement contentElement, UIElement3D uiElement3D, DependencyObject parent)

  at System.Windows.UIElement.OnVisualParentChanged(DependencyObject oldParent)

  at System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)

  at System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)

  at System.Windows.Media.Visual.RemoveVisualChild(Visual child)

  at System.Windows.FrameworkElement.set_TemplateChild(UIElement value)

  at System.Windows.StyleHelper.ClearGeneratedSubTree(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, FrameworkTemplate oldFrameworkTemplate)

  at System.Windows.StyleHelper.DoTemplateInvalidations(FrameworkElement feContainer, FrameworkTemplate oldFrameworkTemplate)

  at System.Windows.Controls.ContentPresenter.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

  at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

  at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

  at System.Windows.Controls.ContentPresenter.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

  at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

  at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)

  at System.Windows.StyleHelper.InvalidateDependents(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, FrugalStructList`1& dependents, Boolean invalidateOnlyContainer)

  at System.Windows.StyleHelper.OnTriggerSourcePropertyInvalidated(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, DependencyPropertyChangedEventArgs changedArgs, Boolean invalidateOnlyContainer, FrugalStructList`1& triggerSourceRecordFromChildIndex, FrugalMap& propertyTriggersWithActions, Int32 sourceChildIndex)

  at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

  at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

  at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

  at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

  at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)

  at System.Windows.Controls.TabControl.UpdateSelectedContent()

  at System.Windows.Controls.TabControl.OnGeneratorStatusChanged(Object sender, EventArgs e)

  at System.EventHandler.Invoke(Object sender, EventArgs e)

  at System.Windows.Controls.ItemContainerGenerator.SetStatus(GeneratorStatus value)

  at System.Windows.Controls.ItemContainerGenerator.Generator.System.IDisposable.Dispose()

  at System.Windows.Controls.Panel.GenerateChildren()

  at System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)

  at System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)

  at System.Windows.Controls.ItemContainerGenerator.OnRefresh()

  at System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

  at System.Windows.Controls.ItemContainerGenerator.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)

  at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)

  at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)

  at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

  at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)

  at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

  at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)

  at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)

  at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)

  at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

  at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

  at System.Windows.Data.ListCollectionView.RefreshOverride()

  at System.Windows.Data.CollectionView.RefreshOrDefer()

  at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)

  at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

  at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)

  at System.Collections.ObjectModel.ObservableCollection`1.ClearItems()

  at System.Collections.ObjectModel.Collection`1.Clear()

  at SAPBusinessObjects.WPF.Viewer.ReportAlbum.SetMainDoc(MainReportDocument mainDoc)

  at SAPBusinessObjects.WPF.Viewer.ViewerCore.OnLoadingComplete(Boolean bSuccess)

  at SAPBusinessObjects.WPF.Viewer.DelegateMarshaler.<>c__DisplayClass6`1.<Invoke>b__4(Object )

  at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

  at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

How to design multi-lang report ?

$
0
0

Hi Friends ,

 

I have designed some  sample report with minimum Fields , As per my requirement , I need to change Text Label alone in Multi-Lang Depends Up on Country Code Parameter , I am using VS2010 and Sap Crystal Report Version 13 .

 

Is it possible to change Language Depends up on country code ?

 

For Ex CN - Chinese , FR- France .

How to programmatically convert .rpt 4.6 to current .rpt?

$
0
0

Hello!

 

We got several Crystal Report rpt files created with the designer from Visual Basic 6.0 and bound to Access 97 (Jet 3.6) databases. In our VB6 application we use the API of the Crystal Report Engine (CRPE32.DLL) to load, print and show such reports onscreen. This works fine, even in Windows 8

 

When I load such a report file into Visual Studio Prof 2010 then I can see the report in the integrated Crystal designer and can preview it, modify it and such. Once I save the report it gets converted to the new report format, or when I save it to a different filename then the new report file is in the new format - even if I dont make any changes at all. Just open it, and save it-as with a new name. All great, fine and dandy.

 

Then I put together a minimal vb net application, consisting just of two forms. Form1 has a button to create a new Form2 window and show it. From2 contains a CrystalReportViewer named RView and the window state is set to maximized. In the Load event I create a new ReportDocument, then .Load the report and then bind the document to the CrystalReportViewer RView.ReportSource.

 

The vb net application properties contain the references to the Crystal Report assemblies, is set to x86 CPU, and compiles without error or warnings.

 

The database file is located in C:\Temp, the report file (version 4.6) is located there as well.

 

When I run the application and use the new report it works.

 

When I run the application and use the old/original/4.6verion report it fails with a "can load report" error exception (exception.txt).

 

I found several instances of this error on the net but no solution for me so far, or nothing that helped me to track down the problem. It is not an access violation problem, I also ran Process Monitor in the background and saw that the report file itself was loaded successfully by the process. I dont have anything fancy in this particular report, there is no report selection formular, it doesnt need any parameters and has no linked tables. Jet/DOA access works fine.

 

So I would rather like to know if it is possible to programmatically convert these old 4.6 reports "on-the-fly" to newer/current rpt format before handing them to the ReportDocument.Load method. Or can I set some properties of the report document (or the report engine or other entities) before loading the report, to give it more leniency towards the 4.6 version report file?

 

Thank you for your information,

regards

Philipp

Crystal Report Export Option to CSV Not working in 64-bit APP/WEB Server

$
0
0

Hi,

 

We are using Crystal Report 11 Release 2.

 

We are trying to export the report to CSV format using exportoptions from asp.

 

This is working fine in 32 bit APP/Web server (Windows 2003 server).

 

We have recently migrated our application from 32 bit to 64 bit APP/WEB Server (Windows 2008).

 

This export from crystal report to CSV is not working correctly in 64 bit server.

 

Can you please suggest a way to make it work.

 

Thanks,

Bala

Unregistered interface: ICRReportPrinterPageRange

$
0
0

Hi all,

 

While trying to print a report, this exception is raised. Here's the code we use:

 

        Try
            Dim pDoc = New System.Drawing.Printing.PrintDocument
            Dim rasPROpts = New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions
            Dim printLayout = New CrystalDecisions.Shared.PrintLayoutSettings
            Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument

            rptClientDoc = pj.ReportDocument.ReportClientDocument

            rasPROpts.JobTitle = pj.ReportTitle
            rasPROpts.PaperSize = pagesetting.PaperSize.RawKind
            rasPROpts.PrinterName = printersetting.PrinterName
            rasPROpts.NumberOfCopies = printersetting.Copies
            rasPROpts.Collated = printersetting.Collate
            rasPROpts.PaperSource = Convert.ToInt16(pagesetting.PaperSource.RawKind)
            rasPROpts.PrinterDuplex = printersetting.Duplex
            rasPROpts.PrinterName = printersetting.PrinterName
            rasPROpts.AddPrinterPageRange(printerSetting.FromPage, printerSetting.ToPage)

            rptClientDoc.PrintOutputController.PrintReport(rasPROpts)
        Catch ex As Exception
            Agilis.ShowMessage(ex.Message, Windows.MessageBoxButton.OK, Windows.MessageBoxImage.Error)
        End Try

 

Obviously the fault happens in:

 

            rasPROpts.AddPrinterPageRange(printerSetting.FromPage, printerSetting.ToPage)

 

The stack trace is:

 

   in CrystalDecisions.ReportAppServer.Controllers.ISCRPrintReportOptions.AddPrinterPageRange(Int32 rangeStart, Int32 rangeEnd)

   in XSolving.CRPE.CRPEManager.Print(PrintJob pj, PrinterSettings printerSetting, PageSettings pageSetting) in C:\Workarea\Agilis\XSolving.CRPE\CRPEManager.vb:riga 512

 

We're using the last available version of CR for VS (13.0.5).

 

I already tried to uninstall and reinstall both Crystal Reports for Visual Studio and the 64-bit Runtime engine, but nothing has changed.


Crystal for VS 2010 creates duplicates on edit

$
0
0

Hey everyone, after uninstalling the old Crystal Reports for Visual Studio and installing the new VS 2010 version, and after converting all my reports to the new format (whatever that means), a duplicate vb file is created every time I edit and save a report. So if I have some report "myreport.rpt", whenever I edit and save that report, I end up with two vb files, one named "myreport.vb" and the other named "myreport1.vb". The two files are exactly the same. This of course causes build errors, and so I have to delete the duplicate file every time I make a change, which is very annoying. Has anyone else had this issue? Does anyone have a solution?

problem with reportviewer.source

$
0
0

Hello

i use VS 21012 and install crystal for it ,

when i designed a report i want embedded in my crystal report viewer but in code behind or in design i can't fine CrystalReportViewer1.ReportSource

how can i do it?

thanks

Persian font in my report

$
0
0

Hello

i want use Persian font in my report but in my report show ???? how can i resolve it , i tested Arabic Unicode font and khmer UI but they did n't work

how can i resolve it?

Crystal report CrystalDecisions.Shared conflict with 13.0.2000.0 and 11.5.3700.0 version

$
0
0

Hi,

  I have visual studio 2010 and installed crystal report 13 on my pc in order to run the crystal report on visual studio.  however, I already have crystal report 11 on my pc, so, I uninstalled it.  but when I load the crystal report web page, it display a message is crystaldecisions.shared is conflict with 13.0.2000.0 and 11.5.3700.0,

  they are located in C:\Windows\assembly  path, I tried to uninstall the CrystalDecisions.Shared 11.5.3700.0, but display "access is denied", so could you help me how to solve this problem please ?

 

 

Thanks

Kelvin

crystal reports for visual studio does not export imb font to pdf

$
0
0

here is my configuration:

 

        Visual studio 2005  8.0.50727.762 (sp.050727-7600)

        .new framework 2.0.50727 SP2

        Crystal reports  file version 10.2.51014.0   assembly version 10.2.3600.0

 

problem is:

 

     intelligent mail barcode font is displayed in designer, able to export excel and word, does not export to pdf (operation not yet implemented).

The CR 2010 for VS engine changes the margins and scales the report

$
0
0

The CR 2010 for VS engine changes the margins and scales the report but only when printing.

 

Environment:

OS: Windows 7 x64 / Windows 2008 x64

VS: VS 2010 x64

CR designer: CR 2008 SP3.5

CR engine: CR 2010 for VS SP1

 

We have upgraded the Crystal Reports engine from version 10 to u201CCrystal Reports 2010 for VSu201D and are now having major issues with printing reports to preprinted papers, giro forms etc. because the report margins are changed and the reports are scaled (when report elements are in non-printable area?). Reports with elements in non-printable area are shown correctly in print preview (CR 2010 CrystalReportViewer) but moved to printable area when printed. This behavior was different in CR 10. Changing the PrintLayoutSettings in code is ignored when printing.

 

Error u2013 The printed reports are scaled:

-     Print in the CR 2008 Designer SP2

-     CR 2010 for VS SP1

 

OK u2013 The reports are not scaled:

-     Print in the CR 2008 Designer SP3.5

-     Print in the CR 10 Designer

-     CR 10 engine

 

Test:

 

1) Crystal Reports Designer 2008 (with SP 3.5)

 

  a) Create a new blank RPT file.

 

  b) Set report margins to 0,0,0,0 in Page Setup.

 

  c) Add a box in the upper left corner (x=0, y=0).

 

  d) Select "Print preview" and validate that the box is located in 0,0 in preview window.

 

  e) Select u201CPrintu201D and validate that the box is located in 0,0 of the paper. Some of the box borders might be outside of the printable area but that is ok.

 

2) Visual Studio 2010 and u201CCR 2010 for VSu201D with SP1:

 

  a) Create a new Windows Forms Application project (.NET Framework 4.0). Set project to u201C.NET Framework 4.0u201D and platform target u201Cx86u201D.

 

  b) Add the CrystalReportViewer control to Form1.

 

  c) Add the RPT file to the CrystalReportViewer control

 

  d) Run the application

 

  e) Validate that the box is located in 0,0 in the CrystalReportViewer control.

 

  f) Select the "Print" icon in the CrystalReportViewer

 

  h) Click the "Print" button and validate that the box is moved to the printable area which is wrong.

 

Notice: In the print dialog (CR 2010 for VS) select the "Layout" tab page and see that "Scale u2026" is selected and cannot be changed. This is different from the CR 2008 Designer even though that it is the same report file and printer.

Problems with summary field in group footer

$
0
0

Hello

 

In a dynamically generated Report in c#, i made a sum in some group footer i have generated.

 

the values to sum are integers. But Crystal show a result like that : 1254.00 and i want it this 1254.

 

here the code use to make the sum in the group footer

     

...

 

     

l_CrySectionSousTotal = m_ReportClientDocument.ReportDefController.ReportDefinition.get_GroupFooterArea(b_intNumGroupe).Sections[0];

     

    

l_champsTotal.FieldFormat.NumericFormat.RoundingFormat = CrRoundingTypeEnum.crRoundingTypeRoundToUnit;

     

l_champsTotal.FieldFormat.NumericFormat.NDecimalPlaces = 0;

 

l_champsTotal.DataSource = "Sum ({ado.Poids})";

     

m_ReportClientDocument.ReportDefController.ReportObjectController.Add(l_champsTotal, l_CrySectionSousTotal, -1);

 

 

it's seem's like the NDecimalPlaces property do nothing.... i don't understand.

 

if you have an exemple of use of NDecimalPlaces ....

 

thanks for you help.


Problems using RoundingFormat with RAS

$
0
0

Before we used RDC to create and configure reports at runtime, but when the change CR 2008, we had to change RAS DRC.

The problem is that fails to modify the RoundingFormat property by always keeping rounding to 2 decimal places (crRoundingTypeRoundToHundredth), so if you do I setup another kind of rounding is not saved and removed in the preview.

Example where crFld is a FiledObject object:

 

crFld.FieldFormat.CommonFormat.EnableSystemDefault = False

crFld.FieldFormat.NumericFormat.RoundingFormat = CrRoundingTypeEnum.crRoundingTypeRoundToTenBillionth

crFld.FieldFormat.NumericFormat.NDecimalPlaces = 4

 

Set rounding to four decimal places but rounded to two decimal places.

Logon failed.Failed to export the report. Error in File .rpt: Unable to connect: incorrect log on parameters.

$
0
0

Hello,

 

I am using some Crystal Reports in my web application and exporting them as PDF file. The files are developed in Crystal Reports 13_0_2 for Visual Studio 2010. After deploying on server, all reports are working fine expect one.

 

At the time of export, it is giving following error message:

           Logon failed.Failed to export the report.

           Error in File testing {F282207C-64DC-43E3-8EB8-562E7FB9643E}.rpt:

           Unable to connect: incorrect log on parameters.

 

For reports I am using XML file as datasource and passing connection through following code.

 

            PropertyBag logonInfo = new PropertyBag();

            logonInfo.EnsureCapacity(1);

            logonInfo.Add("XML File Path", Server.MapPath("sample.xml"));

 

            PropertyBag attributes = new PropertyBag();

            attributes.EnsureCapacity(5);

            attributes.Add("Database DLL", "crdb_adoplus.dll");

            attributes.Add("QE_DatabaseType", "ADO.NET (XML)");

            attributes.Add("QE_ServerDescription", "NewDataSet");

            attributes.Add("QE_SQLDB", true);

            attributes.Add("QE_LogonProperties", logonInfo);

            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo connectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();

            connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;

            connectionInfo.Attributes = attributes;

 

 

I don't get the issue, all reports are same and other reports are working fine, I am able to download them as PDF file except one report. What should I do, any idea?

 

Regards,

Namrata

How to send mail from Crystal report?

$
0
0

hi,

    i am using VS 2010 and CR Version 13. i want to send attach report pdf file to users.

 

how to attach and send mail from Crystal Reports?

 

please reply...

Problem with CR FOR VS 2010 and InteropFormsTools

$
0
0

Hi,

 

I have one old application in VB6. I write a new part for this application with VB2010 and CR FOR VS 2010. This new part of application work with old application with Microsoft InteropFormsTools. Old application call forms (dll) in new application and new application have reports make with CR FOR VS 2010.

And here is a problem. Evry time when I call a report report crash and application crash too. Crash happened when this code execute

Report.SetDataSource(dt)

If I run report from Visual studio environment evrything is OK. And when I run a report from VS2010 application evryrhing is OK.

I have checked Make assembly COM visible and Register for COM interop in module in wich is this report.

Can anybody help me?

 

Regards

Miran

 

how to print Crystal Report

$
0
0

i am using this code to print crystal report

 

Report.PrintToPrinter(1, true, 0, 0); 

 

its giving me this error . i deployed my website in IIS

 

A StartDocPrinter call was not issued

Viewing all 3636 articles
Browse latest View live


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