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

What is now considered best solution for PDF export errror due to MS KB

$
0
0

I see that Microsoft does not consider this to be their error -- latest KB caused PDF export in vb 2008 to fail.    Does the problem exist with vb 2010 -2013 using the appropriate CR for the version?

 

Is there a font solution? If so what is working.  I read various posts saying this works, that doesn't , etc.  Unfortunately, changing the font will not be an easy task on our reports.

 

rolling back the MS update is not really a solution only a very temporary one.

 

I read a post above mine (but for a web report) that permission was necessary for the temp dir.

 

As a result I am confused as to whether this is a KB error, each of the PDF errors people are reporting are all for different reasons not associated with KB  (or triggered by KB but not directly the cause, and therefore if there is a solution or multiple ones?

 

 

If this is a KB error, is CR considering a fix for this since Microsoft will not do anything.  Or are we all now going to figure out what is causing our problem (that was triggered by the KB) - especially if there is no definitive way to deal with this.  Hopefully there is a solution that does solve this problem.

 

Thanks for any help on this.


Possible to Delete Database Connections at Runtime?

$
0
0

So, when i run reports on our servers, there may be multiple crystal reports running at the same time, meaning the crystal report runtime may be loaded multiple times in the same process.

 

What I believe happens is there are multiple database connections setup in these .rpts that point to files used during development (ex. report1.xml, report2.xml).

 

We are using the ADO Push method, none of these database connections are needed at runtime.

 

I have observed that when multiple reports are being run at the same time against our servers, there are intermittent database logon errors. I'm not sure why, but i believe it is related to these multiple database connections.

 

Here is why and what I have observed.

 

We currently make these database connections during development and do not use a fully qualified path, we just use like i said report1.xml or report2.xml, basically whatever the name of the .rpt is.

 

I have observed that if i use a fully qualified path or delete all database connections ( which is difficult to do), that this problem goes away, meaning i do not see anymore database logon errors. I can't really use fully qualified paths because the path may be different when deployed to the server, and wouldn't solve anything. Unless i setup one faux connection that pointed to something like "C:\Windows" that i knew would exist, and made sure i deleted all other connections.

 

Any thoughts?

 

My possible workarounds that i want to try, if someone could advise

 

how to delete all database connections in C# at runtime

easily delete all database connections at design time

or any other suggestions.

Changes to ReportDocument.RecordSelectionFormula no longer apply

$
0
0

Hi,

 

I have found that since upgrading to SP15, setting ReportDocument.RecordSelectionFormula to anything else (e.g. appending additional filter criteria) resets the RecordSelectionFormula property to blank.


Same goes for ReportDocument.DataDefinition.RecordSelectionFormula property, whereas the read only (and undocumented) ReportDocument.DataDefinition.RecordSelectionFormulaRaw property returns what the ReportDocument.RecordSelectionFormula property was actually set to.

 

The ability to update the RecordSelectionFormula is critical to the way our reports are run so this needs addressed urgently. In the meantime I have rolled back to SP14 where it works fine.


Can this please be investigated and a hot fix issued?


Thanks,

Gareth


Set CrystalReportViewer.Zoom level before form is visible

$
0
0

Hi,

 

I am trying to set the CrystalReportViewer Zoom level on all my reports to 2 (whole page) but only seem to be able to get this to work once the form has been fully loaded and visible to the user. The problem is that the form either needs to load up with the correct size in a set location or in a maximised state, however, the only way to get the Zoom to work is to load up the form with the wrong size then change that size to the correct one once it has fully rendered (which only seems to be once the Form.Activate event is fired).

 

If the form was to load up using just the predefined size set at design time then everything works as expected, i.e. set the .ReportSource then call .Zoom(2) and it loads correctly. However, any attempt to set the size of the form before it has been fully rendered results in the report just being displayed in the top left hand side of the preview window.

 

Setting the size to something else then correcting it in the Form.Activate event causes the form to change size (or become maximized) and therefore redraw the report, which is not very professional looking.

 

Is it not possible to make it so that the zoom level could be set at any time (regardless of having a ReportSource set or the form visible, etc.) and when it comes time to render the report to pick up those settings and apply them?

 

I have spent a significant amount of time trying all sorts of things to get this to work, including hours spent searching the community posts here and elsewhere on the web. It looks to me like there are lots of people who have had issues with setting the Zoom level over the years without there really being a satisfactory solution to the various problems.

 

Can someone please loom into this and get back to me?

 

Thanks,

Gareth

Missing Indexes when running reports..

$
0
0

I wrote a CR Viewer using the CR for VS components a few years back for an ERP system. We have noticed recently that reports are running slower than they should. After looking into the issue and testing a few things, the reports all seem to have correct indexes but when I run the reports and specify to save a copy of the report, when I open the copy of the report in CR all the indexes are gone. I believe the reports are not actually using indexes when they are running. Any idea why the Viewer wouldn't be able to read indexes in the reports? If I run the reports directly from the CR designer, they run fine, just slow and no indexes when using the CR for VS components. The database is Btrieve.

bobj is undefined - only on development server

$
0
0

Hi all, I know this question has been asked more times than anyone cares to count, but I have searched for the last couple of days for a solution to this problem in terms of a local machine development server and I cannot find an answer.  I am running VS 2012 and CR 2008 and I am getting a blank report page while on the local dev server running in VS. 

 

As far as I know, there is no inetpub or wwwroot folder while on the dev server so I don't think the usual production server advice applies.  If anyone can point me in a direction to go with this issue I would really appreciate it as debugging is pretty much a shot in the dark right now.

Crystal Reports for Visual Studio sp14 and VS 2015 Pro

$
0
0

Hi All.

 

I installed VS 2015 Professional on Windows 7 SP1 Enterprise PC. I also installed Crystal Report SP14 for Visual Studio(CRforVS_13_0_14). When I would like to create Crystal Report and selected in menu of Visual Studio Project-->Add New Item I cannot found Reporting tab and Crystal Reports to develop Crystal Report.

What is problem? How to fix it?

 

Thanks

Issue with crystalreportviewer navigating with report with parameters asp.net

$
0
0

Hi Im trying to load crystal reports on a webpage. The report load fine and navigates fine if I dont have any parameters in the report.

But when I load a report with parameters its shows the parameter dialog and loads the first page fine but when I click next page or print the parameter dialog apears again and shows the first page again. Bellow is a copy of my code. If anyone has sudgestions how i can handle this I would be greatly appricated. I cant assign parameters via code as the reports are different and each one has unique parameters so it uses the reportviewer web control to ask for parameters.

 

thanks in advance

 

 

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

Imports CrystalDecisions.Web

 

 

PublicClassReportViewer

    Inherits System.Web.UI.Page

 

    Private oRpt AsNewReportDocument()

   

    Private df AsDataDefinition

    FriendShared aspx AsObject


PrivateSub ReportViewer_Init(sender AsObject, e As System.EventArgs) HandlesMe.Init

 

        IfNot IsPostBack Then

            BindReport(Request.QueryString("field1"))

 

        Else

 

            With CrystalReportViewer1

 

 

 

                .ParameterFieldInfo = Session("ParamFieldInfo")

 

                .ReportSource = Session("ReportSource")

 

 

            EndWith

        EndIf

 

    EndSub

 

    ProtectedSub Page_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load

 

        IfNot IsPostBack Then

            BindReport(Request.QueryString("field1"))

        Else

 

            With CrystalReportViewer1

 

                ' .DisplayGroupTree = False

 

                .ParameterFieldInfo = Session("ParamFieldInfo")

 

                .ReportSource = Session("ReportSource")

 

 

            EndWith

        EndIf

 

 

    EndSub

 

PrivateSub CrystalReportViewer1_Navigate(source AsObject, e As CrystalDecisions.Web.NavigateEventArgs) Handles CrystalReportViewer1.Navigate

 

        BindReport(Request.QueryString("field1"))

    EndSub

 

 

 

    PrivateSub BindReport(RptPath AsString)

 

        If Session("ReportSource") IsNothingThen

       

 

            Dim rep AsNewReportDocument

 

            rep.Load(Server.MapPath(RptPath))

 

            Me.CrystalReportViewer1.ReportSource = rep

 

 

            Session("ReportSource") = rep

 

            With CrystalReportViewer1

 

                .ParameterFieldInfo = Session("ParamFieldInfo")

                .ReportSource = Session("ReportSource")

                .DataBind()

            EndWith

        EndIf

 

 

    EndSub


Default Paper Size Not Saved in Report

$
0
0

I'm having an issue with reports that are supposed to be printed in LEGAL format, however CR is defaulting them to LETTER format, while it displays LEGAL within the print dialog.

 

We have a web based application in VB.NET.  The application allows users to both print reports utilizing the ACTIVEX control or to save the report in PDF format.  It is using the latest VS libraries.  We are using CR 2013 with the latest Service Pack.

 

The web application has certain reports saved in Legal Format while others saved in Letter.  We have found that while we create reports, we need to go into the page setup of the report and UNSELECT "No Printer".  If we keep this box checked there are major truncation and text display issues where text is truncation on the left as well as on the right.  This occurs within the viewer as well as within the PDF.

 

The reports then look the same and the consistent between PDF printing and Viewer Printing, however the print dialog "contradicts" itself by showing legal but for some reason defaulting to Letter.  We need this to default to letter.

 

We also notice print dialog will force "scaling" in this situation. 

 

What is this happening and how can I carry over the paper size?????? 

asp.net CrystalReportViewer paging problem

$
0
0

Issue: Cannot navigate past page 2. Seems very common with a lot of people having this problem.

There is at least 10 threads about this here and none of them have the answer.

The standard canned response is 'use Page_Init()'.

 

The situation is this:

  • All logic MUST BE IN Page_Load()!

 

There are several reason for this... I don't know the report name and parameters until the user selects them.

So I repeat. Page_Init is NOT AN OPTION.

I want to make this clear because none of the previous posters made this clear and got a ton of responses to use Page_Init() and they kept posting that they CANNOT use this event - just like me and people refusing to help them because the original poster won't use Page_Init().

 

It does work if I hardcode the report parameters OR pass the parameters to the page and use Page_Init()

I need it to work in Page_Load().

 

I have the following pseudocode based on code from here:

SAML Response from SAP Cloud Identity

 

protected void Page_Load(object sender, EventArgs e)

{

     if (Session["ReportDocument"] == null)

     {

          DataSet ds = new DataSet();

          // Get parameters from user , create datasource, etc etc.

 

          ReportDocument rpt = new ReportDocument();

          rpt.SetDataSource(ds);

          Session["ReportDocument"] = rpt;

          CrystalReportViewer.ReportSource = rpt;

     }

     else

     {

          ReportDocument rpt = (ReportDocument)Session["ReportDocument"];

          CrystalReportViewer.ReportSource = rpt;

     }

}

 

"next page" past page 2 still not working.

Can export to PDF, print, etc all work.

Selecting pages above 3 manually works.

UFL 'u212com.dll' that implements this function is missing

$
0
0

I am attempting to write a user function library for the crystal reports version that ships with Visual Studio 2010. Following the walkthrough on the Business Objects website (although that is for VS2005) I have successfully created my .dll file and added it to the GAC, and it appears in the function list under 'Additional Functions' in the Crystal Reports formula editor. However when I use the function on in my Windows forms application, I get the error "UFL 'u212com.dll' that implements this function is missing.". This is on my development machine and I have installed the latest service pack for Crystal Reports for VS2010 (64-bit). My OS is Windows 7 64-bit.

 

I have two questions:

1)  What version of the .NET framework should my class library be targeting? My windows forms application targets the .NET framework version 4, but should I be doing the same thing for the .dll for Crystal Reports? It does show up in the formula editor though, so I guess that means that Crystal Reports recognises it correctly.

2) I have done a search on the PC for the file 'u212com.dll' and it is in the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64 (and also in the equivalent 32-bit folder) Is this correct, or is there is a specific 64-bit version of this file?

 

Or is it something else that I am missing? Thanks in advance for any suggestions.

Replace Connection on Subreports

$
0
0

I am using The Replace Connection code from this document (

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2011/09/02/when-to-use-the-replace-connection-method-using-the-crystal-reports-or-inproc-ras-sdk-for-net ), but I have found it does not change the Provider for a subreport.  And, if I try to use this same code for a subreport, the following exception is generated when I try to use the ReportClientDocument.DatabaseController.SetTableLocation forthe subreport:

"Not supported within subreports."

 

I can use the DataSourceConnections(0).SetConnection which updates ther server, database, user id, password, but I need to update the provider so it is the same as the main report. 

 

How do you do this?

ReportDocument.Close() hangs indefinitely

$
0
0

Recently, a program we run has started to hang on the Close method of crystal reports. The program interates through all our reports and converts all ODBC references to OleDB, then saves the report if a change has occured. This is done without opening crystal reports itself, this is done automatically on each Sunday to keep all our report documents correctly aligned. Unfortunately, two weeks ago this behavior started where everything processes fine, but once the Close method is hit it hangs indefinitely on any report we open. Once it is open, it never closes and we end up arriving on Monday with a machine hanging on the first report it attempted to process. This means it has run for hours with no result, the Close process never finishes.

 

I've searched the internet for the past two days on this issue, and I've found a number of different results. None of them exactly fit what is happening in our environment, but I've tried them all nonetheless and with no success. I can't use Dispose because it also uses a Close method as well. I can't use GC.Collect because that process in not only slow, but is never reached since the program hangs on Close. I've examined the CRUFLs and have not found any problems. We are using internationalized resources though, but we've been using them for quite some time without an issue. Everything runs as x86, so that isn't a problem. I could go on, but I've tried more things than I can remember.

 

We did recently move to VS 2013 (though it was working even with that two weeks ago). I'm at my wit's end here, I can't decipher why this is happening. Has anyone else had an issue with the Close method hanging indefinitely, and is there a solution for this? Let me know what you may need from me.

Problem with Visual Studio 2015 Professional Update1 32 bit

$
0
0

Hello to all.

I installedVisualStudio2015ProfessionalUpdate 132bit...when I try toinstall CrystalReportstells methat thereisa VisualStudio...can you help me?

Thanks so much.

ErroreCrystalReport.PNG

Crystal Report Sometimes Hangs, ReportDocument Load method does not return

$
0
0

Hello, we have a very critical issue with a customer that work in a terminal server environment.

Sometimes our Windows forms application hangs. We are using Crystal Report for .NET version 13.0.13.1597, 32 bit.

We have taken a lot of dumps with the DebugDialog tool and the hangs seems to be caused by method Load of ReportDocument that does not return.

 

We cannot find a solution, please HELP

 

 

This is part of debug dialog analysis report:

 

WARNING - DebugDiag was unable to locate debug symbols for \crpe32.dll, so the information below may be incomplete.

 

Detected possible blocking or leaked critical section at crpe32!MWCleanupProcess+3b3e98 owned by thread 0 in Job3ERP.exe__PID__16376__Date__12_22_2015__Time_04_14_26PM__718__Manual Dump.dmp

 

Impact of this lock

 

3,12% of threads blocked

 

(Threads 25)

 

The following functions are trying to enter this critical section

crpe32!Ordinal995+13eb4

 

The following module(s) are involved with this critical section

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll from SAP SE


-----



Thread 0 - System ID 27008

 

Entry point  Job3ERP+5d30e
Create time  22/12/2015 14:06:41
Time spent in user mode  0 Days 00:01:06.984
Time spent in kernel mode  0 Days 00:00:19.859

 

This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.

 

 

.NET Call Stack

 

DomainBoundILStubClass.IL_STUB_CLRtoCOM(System.Object ByRef, Int32)+a9
[[InlinedCallFrame]]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(System.Object ByRef, Int32)+5b
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+103
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)+342
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod)+50
Cryrpt.Model.CrystalReportFactory.CreateReportObject(Cryrpt.Model.IRptFinder)+4f
Job3CoreCmsWF.CmsCryrpt10TabsForm.get_aaReportObject()+d7
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaVisualizzaReport()+62
Job3ERP_Commons.X_Form.aaVisualizzaReport()+1f
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaOnBtnFiltraClick(Boolean)+a9
ZJob3ERPGps.X_OR30_Form.InitCmsContent(System.Collections.Generic.Dictionary`2)+8e
Job3CoreCmsWF.CmsRibbonForm.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+140
Job3CoreCmsWF.CallManager.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+ad
Job3CoreCmsWF.CmsMasterDetailForm.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+51
Job3ErpModuloOrdiniClienti.MD_OrdiniClienti_Form.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+f2
Job3CoreCmsWF.CmsMasterDetailForm.ProgrammiCollegatiDettaglio_aaBtnProgrammaCollegatoClick(System.Object, PgmCollegatoEventArgs)+33
Job3CoreCmsWF.ProgrammiCollegatiUC.BtnColl_Click(System.Object, System.EventArgs)+8b
DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(System.Object, DevExpress.XtraNavBar.NavBarItemLink)+79
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+12
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(DevExpress.XtraNavBar.NavBarItemLink)+b
DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+28
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(DevExpress.XtraNavBar.NavBarHitInfo)+3a
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(DevExpress.XtraNavBar.NavBarHitInfo)+47
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(System.Windows.Forms.MouseEventArgs)+125
DevExpress.XtraNavBar.NavBarControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)+68
System_Windows_Forms_ni!System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)+274
System_Windows_Forms_ni!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)+8f1eee
[[InlinedCallFrame]]
DevExpress.XtraNavBar.NavBarControl.WndProc(System.Windows.Forms.Message ByRef)+df
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+11
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+39
System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+80
DomainBoundILStubClass.IL_STUB_PInvoke(CrystalDecisions.CrystalReports.Engine.PEEngineOptions ByRef)+69
[[InlinedCallFrame]]
CrystalDecisions.CrystalReports.Engine.CRPE.InitCrpe()+bb
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+e9
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)+342
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod)+50
Cryrpt.Model.CrystalReportFactory.CreateReportObject(Cryrpt.Model.IRptFinder)+4f
Job3CoreCmsWF.CmsCryrpt10TabsForm.get_aaReportObject()+d7
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaVisualizzaReport()+62
Job3ERP_Commons.X_Form.aaVisualizzaReport()+1f
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaOnBtnFiltraClick(Boolean)+a9
ZJob3ERPGps.X_OR30_Form.InitCmsContent(System.Collections.Generic.Dictionary`2)+8e
Job3CoreCmsWF.CmsRibbonForm.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+140
Job3CoreCmsWF.CallManager.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+ad
Job3CoreCmsWF.CmsMasterDetailForm.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+51
Job3ErpModuloOrdiniClienti.MD_OrdiniClienti_Form.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+f2
Job3CoreCmsWF.CmsMasterDetailForm.ProgrammiCollegatiDettaglio_aaBtnProgrammaCollegatoClick(System.Object, PgmCollegatoEventArgs)+33
Job3CoreCmsWF.ProgrammiCollegatiUC.BtnColl_Click(System.Object, System.EventArgs)+8b
DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(System.Object, DevExpress.XtraNavBar.NavBarItemLink)+79
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+12
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(DevExpress.XtraNavBar.NavBarItemLink)+b
DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+28
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(DevExpress.XtraNavBar.NavBarHitInfo)+3a
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(DevExpress.XtraNavBar.NavBarHitInfo)+47
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(System.Windows.Forms.MouseEventArgs)+125
DevExpress.XtraNavBar.NavBarControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)+68
System_Windows_Forms_ni!System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)+274
System_Windows_Forms_ni!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)+8f1eee
[[InlinedCallFrame]]
DevExpress.XtraNavBar.NavBarControl.WndProc(System.Windows.Forms.Message ByRef)+df
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+11
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+39
System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+80
System_Windows_Forms_ni!DomainBoundILStubClass.IL_STUB_PInvoke(MSG ByRef)+3c
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)+24d
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)+155
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)+4a
System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)+18
Job3ERP.MainModule.Main(System.String[])+73
[[GCFrame]]

Full Call Stack

 

ntdll!ZwWaitForSingleObject+15
kernel32!WaitForSingleObjectEx+be
kernel32!WaitForSingleObject+12
dtsagent+3374d
sacommlayer!DllGetClassObject+16e6
clientdoc!DllGetClassObject+2b2dc
clientdoc!DllGetClassObject+a1e6
clientdoc!DllGetClassObject+a399
clientdoc!DllGetClassObject+21357
DomainBoundILStubClass.IL_STUB_CLRtoCOM(System.Object ByRef, Int32)+a9
[[InlinedCallFrame]]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(System.Object ByRef, Int32)+5b
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+103
clr!JIT_MonExitWorker+a
0x027d12f8
0x0b01c1b8
0x03715460
0x03715668
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)+342
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod)+50
Cryrpt.Model.CrystalReportFactory.CreateReportObject(Cryrpt.Model.IRptFinder)+4f
Job3CoreCmsWF.CmsCryrpt10TabsForm.get_aaReportObject()+d7
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaVisualizzaReport()+62
Job3ERP_Commons.X_Form.aaVisualizzaReport()+1f
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaOnBtnFiltraClick(Boolean)+a9
ZJob3ERPGps.X_OR30_Form.InitCmsContent(System.Collections.Generic.Dictionary`2<System.String,System.Object>)+8e
Job3CoreCmsWF.CmsRibbonForm.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+140
Job3CoreCmsWF.CallManager.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+ad
Job3CoreCmsWF.CmsMasterDetailForm.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+51
Job3ErpModuloOrdiniClienti.MD_OrdiniClienti_Form.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+f2
Job3CoreCmsWF.CmsMasterDetailForm.ProgrammiCollegatiDettaglio_aaBtnProgrammaCollegatoClick(System.Object, PgmCollegatoEventArgs)+33
Job3CoreCmsWF.ProgrammiCollegatiUC.BtnColl_Click(System.Object, System.EventArgs)+8b
DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(System.Object, DevExpress.XtraNavBar.NavBarItemLink)+79
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+12
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(DevExpress.XtraNavBar.NavBarItemLink)+b
DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+28
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(DevExpress.XtraNavBar.NavBarHitInfo)+3a
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(DevExpress.XtraNavBar.NavBarHitInfo)+47
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(System.Windows.Forms.MouseEventArgs)+125
DevExpress.XtraNavBar.NavBarControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)+68
System_Windows_Forms_ni!System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)+274
System_Windows_Forms_ni!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)+8f1eee
[[InlinedCallFrame]]
DevExpress.XtraNavBar.NavBarControl.WndProc(System.Windows.Forms.Message ByRef)+df
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+11
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+39
System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+80
DomainBoundILStubClass.IL_STUB_PInvoke(CrystalDecisions.CrystalReports.Engine.PEEngineOptions ByRef)+69
[[InlinedCallFrame]]
CrystalDecisions.CrystalReports.Engine.CRPE.InitCrpe()+bb
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()+e9
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)+342
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod)+50
Cryrpt.Model.CrystalReportFactory.CreateReportObject(Cryrpt.Model.IRptFinder)+4f
Job3CoreCmsWF.CmsCryrpt10TabsForm.get_aaReportObject()+d7
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaVisualizzaReport()+62
Job3ERP_Commons.X_Form.aaVisualizzaReport()+1f
Job3CoreCmsWF.CmsCryrpt10TabsForm.aaOnBtnFiltraClick(Boolean)+a9
ZJob3ERPGps.X_OR30_Form.InitCmsContent(System.Collections.Generic.Dictionary`2<System.String,System.Object>)+8e
Job3CoreCmsWF.CmsRibbonForm.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+140
Job3CoreCmsWF.CallManager.RunProgram(ProgrammaCollegato, System.Object, Job3CoreCmsWF.ICmsContent)+ad
Job3CoreCmsWF.CmsMasterDetailForm.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+51
Job3ErpModuloOrdiniClienti.MD_OrdiniClienti_Form.aaCallProgrammaCollegatoDettaglio(ProgrammaCollegato)+f2
Job3CoreCmsWF.CmsMasterDetailForm.ProgrammiCollegatiDettaglio_aaBtnProgrammaCollegatoClick(System.Object, PgmCollegatoEventArgs)+33
Job3CoreCmsWF.ProgrammiCollegatiUC.BtnColl_Click(System.Object, System.EventArgs)+8b
DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(System.Object, DevExpress.XtraNavBar.NavBarItemLink)+79
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+12
DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(DevExpress.XtraNavBar.NavBarItemLink)+b
DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(DevExpress.XtraNavBar.NavBarItemLink)+28
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(DevExpress.XtraNavBar.NavBarHitInfo)+3a
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(DevExpress.XtraNavBar.NavBarHitInfo)+47
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(System.Windows.Forms.MouseEventArgs)+125
DevExpress.XtraNavBar.NavBarControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)+68
System_Windows_Forms_ni!System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)+274
System_Windows_Forms_ni!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)+8f1eee
[[InlinedCallFrame]]
DevExpress.XtraNavBar.NavBarControl.WndProc(System.Windows.Forms.Message ByRef)+df
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+11
System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+39
System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+80
System_Windows_Forms_ni!DomainBoundILStubClass.IL_STUB_PInvoke(MSG ByRef)+3c
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)+24d
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)+155
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)+4a
System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)+18
Job3ERP.MainModule.Main(System.String[])+73
[[GCFrame]]

 


how do a replace the connection Provider in a subreport?

$
0
0

I know how to do it for the main report by using:

 

 

 

ISCDReportClientDocument.ReportClientDocument.DatabaseController.ReplaceConnection.

 

When I try the same code with a sub report I get "Not supported within subreports".

Please help have hundreds of reports that need to go to SQLNCLI11; don't want to do this by hand.

 

 

Ty

Crystal Reports (VS-2005). Service Pack for Windows 2008 Server

$
0
0

I had issues with reduced font size on Export and Printing. On a PC with Windows XP SP2 installed, I made registry changes as recommended in this post:

 

[Font size decreases when exporting to PDF (Crystal Reports)|http://mdn.morovia.com/kb/Font-size-decreases-exporting-PDF-Crystal-Reports-10053.html]

 

Prior to making registry changes, I also installed Crystal Reports SP1 for VS-2005. After this, everything seems to be working fine.

 

But I still have this Reduced Font Size issue on my Server with Windows 2008 R2 Enterprise installed.

 

I installed the same Service Pack and made the registry changes, but the changes don't seem to appear. It is still showing Reduced Fonts on Export and Printing. My server is also running Visual Studio 2005.

Auto upgrade Data Source on Crystal Reports to SQLNCLI11

$
0
0

We have 500+ reports some containing multiple tables, sub-reports with SQL stored procedures, etc.

 

We have upgraded to SQL 2012.  We want to update all of these reports (tables, sub-report tables, stored procedures) to connect to the database using the Microsoft SQL Server 2012 Native Client (SQLNCLI11).

 

Many of these reports connect using SQLOLEDB, some connect using SQLNCLI and SQLNCLI10, but some are old enough where they use ODBC.

 

Is there a way to programmatically change the data source and update all the associated tables, sub-reports, etc. in these reports to change the datasource to SQLNCLI11 and update the tables to point to their correct table in the SQLNCLI11 database?

 

We would like to do this in VB.NET using CR for VS. 

 

 

Thank you

Crystal Report connected to database name with dot not working

$
0
0

Crystal Reports 2008 has been used.

Database name: TEST.DB.EDU

Database name has two dots in it.

 

Report connected to Database name (TEST.DB.EDU).

When tried to access objects like Table or Views or SPs, gives an error:

 

Not implemented.

Details: Error Code: 0x

Source: ADODB.Connection

Description: Object or provider is not capable of performing requested operation.

 

I think crystal reports does not support database name with period or dot (for example: TEST.DB.EDU).

 

I tried designing report connected to other database name TEST_DB_EDU. It worked fine and was able to view report in veiwer using .Net web application.

But when trying to connect to database name TEST.DB.EDU using .Net web application gave error. At runtime passing Server, DB, User credentials.

 

Following error was displayed when using database name TEST.DB.EDU with .Net web application

 

 

 

 

Please do confirm whether we can use database having period in it.

The table 'PROCEDURE' could not be found. Error in File Report1003 {9578D7F2-1799-4336-B8F1-9FA4FB81277C}.rpt: The table could not be found.

$
0
0

The following error comes up when I use a package procedures in my Crystal Report.  If I use a procedure, the report works just fine.  It seems that the crystal report runtime is not recognizing (or stripping) the package name at runtime and seems to think my procedure is a table.

 

The table 'PROCEDURE' could not be found. Error in File Report1003 {9578D7F2-1799-4336-B8F1-9FA4FB81277C}.rpt: The table could not be found.

 

When I go into my report and uncheck the following:

 

Verify on First Refresh

Verify Stored Procedures on First Refresh

 

then I receive the following error on my report:

 

Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Error in File Report1003 {5D78B282-7113-4C87-A004-4852A99442C3}.rpt: Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ]

 

This is what the Show SQL Query looks like in my report:

BEGIN "MYDATABASE"."PACKAGE"."PROCEDURE"(:O_RC1); END ;

 

This is the runtime I have installed:

SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)

 

Datasource Connection:  Oracle Server

Database: Oracle 12.1.0.1.0

 

Is there a way around this issue? I would like to be able to use package procs for my report.

Viewing all 3636 articles
Browse latest View live


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