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

VB.net System.IO can't load crdb_adoplus.dll

$
0
0

I used CR in VB.net 2010. I  already reinstall Crystal Report and SP2. The CR in the program could in  design mode. When this report run with Crystal Report View. After load  report, It's found problem at SetDataSource.

 

VB.net  error message said. I really installed Crystal Report at: "SAP  BusinessObjects\...\dotnet\..." not "\dotnet1\" What i did anything  wrong

 

 

********************************

System.IO.FileNotFoundException was unhandled

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

  Source=mscorlib

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

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

LOG: User = JAMES_ONE\Administrator

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

LOG: Appbase =  file:///C:/Documents and Settings/Administrator/My Documents/Visual  Studio 2010/Projects/TestReport2/TestReport2/bin/Debug/

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:  Using application configuration file: C:\Documents and  Settings\Administrator\My Documents\Visual Studio  2010\Projects\TestReport2\TestReport2\bin\Debug\TestReport2.vshost.exe.Config

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

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

 

  StackTrace:

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

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

       at  System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName  assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,  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:

 

********************************

 

my procedure:

 

********************************

Friend  Sub ViewReport(ByVal ReportName As String, ByVal TableName As String,  ByVal QueryString As String, Optional ByVal [Parameter] As String = "")

        Try

 

             'If Not UBound(TableName).Equals(UBound(QueryString)) Then  MessageBox.Show("Passed Variable Are Not Correct", "Message",  MessageBoxButtons.OK, MessageBoxIcon.Information) : Exit Sub

 

             Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument =  New CrystalDecisions.CrystalReports.Engine.ReportDocument

             Dim CrystalReportViewer As  CrystalDecisions.Windows.Forms.CrystalReportViewer = New  CrystalDecisions.Windows.Forms.CrystalReportViewer

 

            CrystalReportViewer.ActiveViewIndex = 0

            CrystalReportViewer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

            'CrystalReportViewer.DisplayGroupTree = False

            CrystalReportViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None

            CrystalReportViewer.Dock = System.Windows.Forms.DockStyle.Fill

            CrystalReportViewer.Location = New System.Drawing.Point(0, 0)

            CrystalReportViewer.Name = "CrystalReportViewer"

 

            Dim Adapter As New OleDb.OleDbDataAdapter

            Dim DataSet As New DataSet

 

            'For I As Integer = 0 To UBound(TableName)

            Adapter = GetDataAdeptor(QueryString)

            Adapter.Fill(DataSet, TableName)

            'Next

            ' String

            '*** Report In the report Folder

            'Dim rptPath As String = Application.StartupPath & "\CR-01.rpt"

            'Report.Load(rptPath)     ' programming path

            Report.Load(Application.StartupPath & "/" & ReportName & "")     ' programming path

            Report.SetDataSource(DataSet)

            If Not [Parameter] = "" Then Report.SetParameterValue(0, [Parameter])

            CrystalReportViewer.ReportSource = Report

            Me.Panel1.Controls.Add(CrystalReportViewer)

 

 

        Catch ex As Exception

            MsgBox("EORROR: " & ex.Message)

        End Try

End Sub

           

***********************************


ReportDocument.Load() with in-proc RAS

$
0
0

Hi all,

 

I'm working on a two-tier application that uses Crystal to talk directly with a database to generate reports. The application is primarily in C++, with a C# wrapper around the Crystal 13 .NET API.  There's no web component to the application: it's strictly a desktop application (notwithstanding the database, of course). 

 

We're at the tail-end of migrating from Crystal 9 to Crystal 13 (.NET).  The bulk of development work is nearly done, but I've run into a problem where installations don't work.  In particular, a remote debugging session to the application on the target machine reveals that the call to ReportDocument.Load() hangs on a machine with our application installed, whereas the call to .Load() works fine on my dev machine.  The same problem occurs with ISCDReportClientDocument.Open(). 

 

I'll include the code (minus error handling) just for the record, but it's painfully simple:

 

public bool GetReportSchemaVersion(string reportName, out int major, out int minor)
{    // reportName is the full path to the .rpt file      // (Temporarily) open the file, check its version, and close it.     ReportDocument rpt = new ReportDocument();     rpt.Load(reportName);  // Never returns from this on target machine.  Switching to ISCDReportClientDocument.Open() doesn't change the behaviour.     ISCDReportClientDocument rptClientDoc = rpt.ReportClientDocument;     major = rptClientDoc.MajorVersion;     minor = rptClientDoc.MinorVersion;     rpt.Close();     return true;
}

 

 

If I try what the OP was doing in http://scn.sap.com/thread/1918746, I get the same behaviour that he gets (namely, it times out after a couple of seconds).  (I know there's a suggested solution to his problem, but it didn't work for me.)  I've seen other posts elsewhere that suggest that this could be due to printer issues, but I've made sure the target machine has a default printer driver installed, and that the report was saved with the "No Printer" option checked; similarly, yet other posts suggest that it could be due to file permissions, but I've tried moving the .rpt to non-permissioned folders and by running the app as admin, and that doesn't take care of it either.  I've also tried calling this on a .rpt that's essentially empty (it has a single static text field), and .Load() still hangs.

 

The target machine is Win7-32bit; our application is 32-bit.  The only Crystal 13 thing installed on the target machine is the 32-bit MSI for CR13 SP5 from http://scn.sap.com/docs/DOC-7824.  (We've tried including the MSM in our installer but haven't succeeded yet due to [presumably] unrelated path length problems.)  Our installer also includes the CR9 runtime (since we're ultimately hoping to run CR13 side-by-side with CR9 for now -- but that's a topic for another day). 

 

I haven't installed anything RAS-specific on the target machine (nor on my development machine, as far as I know).  The literature that I've found online is a little hazy on this issue: some references suggest that in-proc RAS is included in the redistributable, whereas others (usually older) references seem to imply that it requires activation via a purchased license.  In any case, I haven't found any RAS-specific installations online.  Is it possible that this is the culprit?

 

Any help on this would be appreciated!

 

Kevin

 

 

        public bool GetReportSchemaVersion(string reportName, out int major, out int minor)
        {

 

            // (Temporarily) open the file, check its version, and close it.
            try
            {
                ReportDocument rpt = new ReportDocument();
                rpt.Load(reportName);

 

                ISCDReportClientDocument rptClientDoc = rpt.ReportClientDocument;
                major = rptClientDoc.MajorVersion;
                minor = rptClientDoc.MinorVersion;

 

                rpt.Close();

 

                return true;
            }
            catch (Exception cerr)
            {
                string preambleMessage = "An error occured trying to get the Report File version for file: " + reportName + ".";
                ShowExceptionToUser(MethodBase.GetCurrentMethod().Name, preambleMessage, cerr.Message);

 

                major = UNKNOWN_FILE_SCHEMA_VERSION;
                minor = UNKNOWN_FILE_SCHEMA_VERSION;
                return false;
            }
        }

 

Stored proc giving error in crystal report

$
0
0

Hi ,

 

I am using Oracle Provider for OLEDB connection for my crystal report and trying to add stored procedure,

It is giving following error:

 

Query Engine Error:' ADO Error Code 0x

Source :OraOLEDB

Description : ORA-06550: line 1 column 7:

PLS-00306 : wrong number or types or arguments in call to 'Stored Proc Name'

ORA-06550 : line 1 , column 7:

PL/SQL: Statement ignored

Native error:

 

Crystal report used:

Crystal report basic runtime for VS 2008(x86) version 10.5

 

Oracle:

oracle 10

 

But when i change my connection to Microsoft oledb provider for oracle, there is no problem and it works properly.

I dont want to use Microsoft oledb provider for oracle.

 

I serached this problem in many blogs but couldnt find any proper answer.

Already tried HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\key_orahome10202\oledb\PLSQLRset to 1.

 

Please help to resolve this problem ASAP.

Web CrystalReportViewer error when trying to go to the next page or search

$
0
0

Recently I've updated my solution to CrystalReports for VS2010 (now I have 13.0.2000.0 version along with .NET 4.0 and C#). When I used CrystalReports 10.5.3700.0 CrystalReportViewer was situated inside an UpdatePanel and controlled with my own toolbar and everything worked fine. After an update this stuff refused to work at all (CrystalReportViewer was simply blank) and I according to advices on this board removed all UpdatePanels and ScriptManager from my page and began to use native CrystalReportViewer toolbar. Now first page of the report is rendering properly and Print and Export buttons of the native toolbar are working fine but when i'm trying to go to the next page of a report, I see only word "Error" in the report's area.

 

Fiddler log for this request:

POST http://127.0.0.1:56507/reportview.aspx?report=forms_graph&from_d=01.12.2007+00%3a00%3a00&to_d=22.03.2010+23%3a59%3a59&s%5b%5d=74%2c95%2c112%2c97%2c139%2c96%2c125%2c113%2c98%2c128%2c144%2c90%2c141%2c80%2c75%2c118%2c109%2c71%2c72%2c94%2c73%2c3%2c2%2c81%2c133%2c82%2c117%2c140%2c127%2c137%2c131%2c143%2c116%2c129%2c111%2c87%2c88%2c120%2c110%2c124%2c145%2c146%2c134%2c135%2c138%2c108%2c101%2c136%2c142%2c76%2c6%2c47%2c10%2c4%2c53%2c102%2c91%2c11%2c99%2c50%2c114%2c132%2c115 HTTP/1.1
Host: 127.0.0.1:56507
Connection: keep-alive
Referer: http://ipv4.fiddler:56507/reportview.aspx?report=forms_graph&from_d=01.12.2007+00%3A00%3A00&to_d=22.03.2010+23%3A59%3A59&s%5B%5D=74%2C95%2C112%2C97%2C139%2C96%2C125%2C113%2C98%2C128%2C144%2C90%2C141%2C80%2C75%2C118%2C109%2C71%2C72%2C94%2C73%2C3%2C2%2C81%2C133%2C82%2C117%2C140%2C127%2C137%2C131%2C143%2C116%2C129%2C111%2C87%2C88%2C120%2C110%2C124%2C145%2C146%2C134%2C135%2C138%2C108%2C101%2C136%2C142%2C76%2C6%2C47%2C10%2C4%2C53%2C102%2C91%2C11%2C99%2C50%2C114%2C132%2C115

__EVENTTARGET=StatReportViewer
__EVENTARGUMENT={"0":{"rptViewLabel":"u0413u043Bu0430u0432u043Du044Bu0439 u043Eu0442u0447u0435u0442", "gpTreeCurrentExpandedPaths":{}, "vCtxt":"/wEXAwUVSXNMYXN0UGFnZU51bWJlcktub3duaAUOTGFzdFBhZ2VOdW1iZXICAQUKUGFnZU51bWJlcgIB", "pageNum":1}, "common":{"width":"350px", "Height":"", "enableDrillDown":false, "drillDownTarget":"_self", "printMode":"Pdf", "displayToolbar":true, "pageToTreeRatio":6, "pdfOCP":true, "promptingType":"html", "viewerState":"...(HUGE VIEWSTATE STUFF)...", "rptAlbumOrder":["0"], "toolPanelType":"None", "toolPanelWidth":200, "toolPanelWidthUnit":"px", "iactParams":[], "paramOpts":{"numberFormat":{"groupSeperator":" ", "decimalSeperator":","}, "dateFormat":"dd.MM.yyyy", "timeFormat":"H:mm:ss", "dateTimeFormat":"dd.MM.yyyy H:mm:ss", "booleanFormat":{"true":"u0438u0441u0442u0438u043Du0430", "false":"u043Bu043Eu0436u044C"}, "maxNumParameterDefaultValues":"200", "canOpenAdvancedDialog":true}, "zoom":100, "zoomFromUI":false, "lastRefresh":"01.09.2011 15:14:03"}, "curViewId":"0"}
__VIEWSTATE=/wEPDwUKMTY3NzU4MzI2OQ9kFgICAw9kFgICEw8XAGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgIFEUxvZ2luU3RhdHVzJGN0bDAxBRFMb2dpblN0YXR1cyRjdGwwMw==
StatReportViewer_toptoolbar_search_textField=Find...
text_StatReportViewer_toptoolbar_selectPg=1 of 1+
text_StatReportViewer_toptoolbar_zoom=100%

 

On a reloaded page I see just a text "Error" in CrystalReportViewer area and the following stack trace in html markup:

Inner Stack Trace:   at CrystalDecisions.Shared.Json.JsonArray..ctor(JsonTokener x)   at CrystalDecisions.Shared.Json.JsonTokener.NextValue()   at CrystalDecisions.Shared.Json.JsonObject..ctor(JsonTokener x)
Stack Trace:   at CrystalDecisions.Shared.Json.JsonObject..ctor(JsonTokener x)   at CrystalDecisions.Shared.Json.JsonTokener.NextValue()   at CrystalDecisions.Shared.Json.JsonArray..ctor(JsonTokener x)   at CrystalDecisions.Shared.Json.JsonArray..ctor(String string_Renamed)   at CrystalDecisions.Web.ReportAgentBase.LoadViewState(Object viewState, Boolean bRptSourceChangedByNavigation)   at CrystalDecisions.Web.ReportAgent.LoadViewState(Object viewState, Boolean bRptSourceChangedByNavigation)   at CrystalDecisions.Web.CrystalReportViewerBase.LoadViewState(Object viewState)   at CrystalDecisions.Web.CrystalReportViewer.LoadViewState(Object viewState)

 

I don't know what additional information about this issue will be helpful. Any kind of help will be highly appreciated.

 

LogOnException Error at logon > COMException: No Error

$
0
0

In my program i have the problem that there occurs the error down blow. (LogOnException Error at logon > COMException: No Error)

This happens e.g. on virtual desktops (vmware) with windows 7 32 bit.

On some notebooks with windows 7 32bit or XP SP3 or the developer environment the error does not occur.

In this case i talk about the same report that i have testet. this report works with the same crystalruntime called from the same program, the same way.

The program ist called from a network drive.

there is no firewall that blocks traffic or anything else.

the report works well in the crystal designer.

I actually updated the runtime to CRRuntime_32bit_13_0_4.msi but the error is still there.

 

the error is thrown at VerifyDatabase().

 

Here you can download the report mybe it helps http://filex.mcon-mannheim.de/filex/zone/steven.spyrka/-1804743143

 

 

publicbool SetReportDataBaseConnection(DatabaseInfo dbconnection)

        {

            if (ReferenceEquals(DatabaseConnection, dbconnection) && ReportDbSet)

                returntrue;

 

            DatabaseConnection = dbconnection;

 

            if (ReportLoaded)

            {

                var crConnectionInfo = newConnectionInfo

                {

                    UserID = DatabaseConnection.Username,

                    Password = DatabaseConnection.Password,

                    DatabaseName = DatabaseConnection.InitialCatalog,

                    ServerName = DatabaseConnection.Host

                };

                var crTableLogOnInfo = newTableLogOnInfo { ConnectionInfo = crConnectionInfo };

 

                Report.SetDatabaseLogon(DatabaseConnection.Username,

                                        DatabaseConnection.Password,

                                        DatabaseConnection.Host,

                                        DatabaseConnection.InitialCatalog);

 

                foreach (IConnectionInfo iinfo in Report.DataSourceConnections)

                {

                    iinfo.SetConnection(DatabaseConnection.Host, DatabaseConnection.InitialCatalog,

                                        DatabaseConnection.Username, DatabaseConnection.Password);

                    iinfo.SetLogon(DatabaseConnection.Username, DatabaseConnection.Password);

                }

 

                foreach (crystal.Table t in Report.Database.Tables)

                    t.ApplyLogOnInfo(crTableLogOnInfo);

 

                #region Subreports setzen

 

                foreach (crystal.ReportDocument subReport in Report.Subreports)

                {

                    subReport.SetDatabaseLogon(DatabaseConnection.Username,

                                               DatabaseConnection.Password,

                                               DatabaseConnection.Host,

                                               DatabaseConnection.InitialCatalog);

 

                    foreach (IConnectionInfo iinfo in subReport.DataSourceConnections)

                    {

                        iinfo.SetConnection(DatabaseConnection.Host, DatabaseConnection.InitialCatalog,

                                            DatabaseConnection.Username, DatabaseConnection.Password);

                        iinfo.SetLogon(DatabaseConnection.Username, DatabaseConnection.Password);

                    }

 

                    foreach (crystal.Table t in subReport.Database.Tables)

                        t.ApplyLogOnInfo(crTableLogOnInfo);

                }

 

                #endregion

 

                Report.VerifyDatabase();

                ReportDbSet = true;

                returntrue;

            }

            return ReportLoaded;

        }

 

This is the code. Did i lose sight of something?

 

 

 

************** Ausnahmetext **************

CrystalDecisions.CrystalReports.Engine.LogOnException: Fehler bei Anmeldung. ---> System.Runtime.InteropServices.COMException:

Kein Fehler.

   bei CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.VerifyDatabase()

   bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.VerifyDatabase()

   bei CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()

   --- Ende der internen Ausnahmestapelüberwachung ---

   bei CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()

   bei ecs.core.reporting.Crystal.SetReportDataBaseConnection(DatabaseInfo dbconnection)

   bei ecs.core.reporting.Crystal.SetReportDataBaseConnection()

   bei ecs.core.reporting.Crystal.Print(ParameterInfos parameter)

   bei ecs.core.reporting.ReportViewer.LoadViewer(basicGeneric[] instances, Boolean listAll, PrintOptions options)

   bei ecs.core.gui.main.controls.ucCustomerEdit.btnPrint_Click(Object sender, EventArgs e)

   bei System.Windows.Forms.Control.OnClick(EventArgs e)

   bei DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)

   bei DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)

   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

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

   bei DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)

   bei DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)

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

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

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

 

 

 

This are the essential loaded DDLs:

 

CrystalDecisions.CrystalReports.Engine

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll.

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

CrystalDecisions.Shared

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll.

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

CrystalDecisions.ReportAppServer.CommLayer

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll.

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

CrystalDecisions.ReportAppServer.ClientDoc

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll.

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

CrystalDecisions.ReportAppServer.DataDefModel

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll.

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

CrystalDecisions.ReportAppServer.CubeDefModel

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll.

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

CrystalDecisions.ReportAppServer.ReportDefModel

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll.

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

CrystalDecisions.ReportAppServer.Controllers

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll.

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

CrystalDecisions.ReportAppServer.DataSetConversion

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll.

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

CrystalDecisions.Shared.resources

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/13.0.2000.0_de_692fbea5521e1304/CrystalDecisions.Shared.resources.dll.

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

CrystalDecisions.ReportAppServer.XmlSerialize

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll.

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

CrystalDecisions.CrystalReports.Engine.resources

    Assembly-Version: 13.0.2000.0.

    Win32-Version: 13.0.4.705.

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/13.0.2000.0_de_692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.resources.dll.

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

 

 

Thanks and kind regards for any help

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.

Hyperlink to an image file

$
0
0

Hello experts,

 

I am trying to figure out how to create a hyperlink to an image file located on my server that  will change dynamically based on the selected record. I have a folder on the server hosting the web application that contains the .jpg files  (C:/SIR/SR_FILES/F49.jpg) and a an SQL database that contains the name of the file for example F49.jpg.

Steps

  1. 1. create the report
  2. 2. connect to the SQL database
  3. 3. load the stored procedure that calls the filed with the .JPG file name
  4. 4. I have 3 Group Header sections
  5. 5. right click in Group Header section
  6. 6. insert a text object 
  7. 7. right click on the text object  > select Format Object
  8. 8. select Hyperlink tab
  9. 9. select A file
  10. 10. in Hyper link information click on X+2
  11. 11. in t he formula field  I have "file:///C:/SIR/SR_FILES/"+ {Command.OR_FILE}

 

at this point if i click the link in my viewer i can see the image but when I run  the web application and click on the link from the reports nothing happens.

 

I am using  Crystal Reports for Visual Studio 2010 in my configuration file shows version 13.0

 

Thank you for  your help in advance!

Cystal Report Viewer in web page shows only "Error" text after postback

$
0
0

Problem:
When I try to reload page having Crystal Report viewer then page shows "Error" text. Actually Crystal Report Viewer is rendered as "Error" text.
Steps are like this.

1) I load the page with blank report.
2) Add some filter criteria for report such like date range and other parameters and Invoke show report functionality
3) Report gest displayed as expected.
4) Change the filter criteria such as date range. and again invoke the show report functionality.
5) Page gets reloaded with "Error" text. Even if I don;t change criteria and invoke the show report functionality I got the same error.
6) Here is Error when I open the source from HTML page

<!--
Inner Stack Trace:
   at CrystalDecisions.Shared.Json.JsonArray..ctor(JsonTokener x)
   at CrystalDecisions.Shared.Json.JsonTokener.NextValue()
   at CrystalDecisions.Shared.Json.JsonObject..ctor(JsonTokener x)
Stack Trace:
   at CrystalDecisions.Shared.Json.JsonObject..ctor(JsonTokener x)
   at CrystalDecisions.Shared.Json.JsonTokener.NextValue()
   at CrystalDecisions.Shared.Json.JsonArray..ctor(JsonTokener x)
   at CrystalDecisions.Shared.Json.JsonArray..ctor(String string_Renamed)
   at CrystalDecisions.Web.ReportAgentBase.LoadViewState(Object viewState, Boolean bRptSourceChangedByNavigation)
   at CrystalDecisions.Web.ReportAgent.LoadViewState(Object viewState, Boolean bRptSourceChangedByNavigation)
   at CrystalDecisions.Web.CrystalReportViewerBase.LoadViewState(Object viewState)
   at CrystalDecisions.Web.CrystalReportViewer.LoadViewState(Object viewState)
--!>

 

Here are the details of web application

1) We have web application developed in .Net 4.0 with Visual stidio 2010.
2) This web application uses Master Pages functionality in ASP.
3) I am using Crystal report Version 13.0.2.469 (I guess it is Service Pack 2)


I hace verified few things like

1) I have folder "aspnet_client" under wwwroot folder
2) CRV.js under has following script(Which is I guess fix of some bug)

if(typeof(Sys)!=='undefined' && typeof(Sys.Application)!== 'undefined' && typeof(Sys.Application.notifyScriptLoaded)!== 'undefined') {
  Sys.Application.notifyScriptLoaded();
}


Crystal Report Server 2011 With Classic ASP

$
0
0

Dear all,

 

We are currently using Crystal Report 8 with IIS6 for our web application, and we would like to upgrad our platform to windows 2008 64bit, sql server 2008 64bit & IIS 7.5. Our Classic ASP Application is working Fine. Now when we want to upgrade from crystal report 8 to Crystal Server 2011, Crystal Designer 2011. we have installed crystal reports server 2011 Evaluation version on our dev platform, from designer we where able to added rpt files to repositary.

 

Now how do we call the crystal viewer from our classic asp web application for crystal report 2011.

 

Is there any sample web stie available.

 

Thanks and Regards

Kumar

Custom tool error: "Code generator 'ReportCodeGenerator' failed.

$
0
0

I have a legacy application built in an earlier version of Visual Studio.  The project was converted to Visual Studio 2010 and when I attempt to view reports I get the following error:

 

================================================================================

Error     2     Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: UFL 'u25samp1.dll' that implements this function is missing.

Error in File CBC2 {ABC63E6A-C35C-46B1-8D6C-9DDFB9F9D397}.rpt:

Error in formula  phone:

'picture({fac.fac_tel}, '(xxx) xxx-xxxx')

'

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

   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

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

   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

   at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)

   at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)

   at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"     C:\Users\tsygitowicz\Documents\Visual Studio 2010\Projects\startportal\ST@RTPortal\Reports\CBC2.rpt     1     1     ST@RTPortal

========================================================================================

 

The missing file is actually on my hard drive in the path: 

 

C:\Program Files (x86)\Business Objects\Common\2.8\bin

 

I also placed it in my project bin directory as well.

Can't open rpt in VS2012 & Win8

$
0
0

Hi,

 

I am unable to design any report or even open any rpt files.

I am Using Visual Studio 2012 with Windows 8 64x Enterprise.

 

I am already  download and install SP5 (v. 13.0.5.x). Done successfully.

Also I add crystal report reporting Tools in toolbox, with all references, compile, No compile errors appears.

 

But i can't design any report.

when I try to open any prt file its appear like this:

    001.jpg

EnableHideForDrillDown too slow

$
0
0

Hi all,

I have a report and I need to hide some report areas depending on some conditions.

The code is something like (no copy-paste):

 

Private Sub Hide(ByVal i AS Integer, ByVal hide as Boolean):   

       myReportDocument.myReportDefinition.Areas.Item(i).AreaFormat.EnableHideForDrillDown = hide

End Sub.

 

My simple problem is that in my oppinion this takes way too long...about 2 seconds. When calling this for more than 3 areas it becomes iritating.

Is there another way to improve this performance issue?

I am using CR 2011 version for Visual Studio.

Thanks.

CR 2011 OLAP Grid Loses drill down when deployed to Asp.net Application

$
0
0

Just installed CR2011 and am trying to test using the OLAP Cube functions, one of the reasons we upgraded. I was able to build the report in the designer OK but when I add it to the asp.net project and try to view it with a web viewer and report source it has no drill down or drill up ablity.

     I have tried saving the report both colapsed and expanded and when it is added to the asp.net project it only displays in the level of expansion that the OLAP grid was in when last saved. Can an OLAP Grid have drill down capiblity in an Asp.net Application?

can't display report on ASP.NET webform

$
0
0

i have a webform where i want to display a report with datasource selected from SqlServer 2008 DB ..

i'm using VS2012 on .NET 4.5 .. i have installed

CrystalReports Basic Runtime For VS 2008 Version 10.5.2.0

CrystalReports Runtime Version For VS2010 13.0.2.469

then when i got VS 2012 i installed

CrystalReport Runtime Engine For .NET Framwork 13.0.5.891

CrystalReport Runtime Version For VS2012 13.0.5.891

 

yet every time i load the report nothing is displayed at all ..

this is the page HTML

<tr>

            <td>

                <div>

                    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />

                </div>

            </td>

        </tr>

 

& this is the binging logic

protected void btnLoadReport_Click(object sender, EventArgs e)        {            try            {                rpt_FinancialStatements.rpt_AccountLedger AccountLedger = new rpt_FinancialStatements.rpt_AccountLedger();                if (!string.IsNullOrEmpty(txtAccountID.Text) && !string.IsNullOrEmpty(txtAccountName.Text))                {                    LogicLayerEngine.AccountID = Convert.ToInt64(txtAccountID.Text);                    LogicLayerEngine.StartingPeriod = Convert.ToDateTime(txtStartingPeriod.Text);                    LogicLayerEngine.EndingPeriod = Convert.ToDateTime(txtEndingPeriod.Text);                    StringBuilder ReportTitle = new StringBuilder();                    ReportTitle.Append(txtAccountName.Text + "Account Ledger");                    ReportTitle.Append("\r\nFrom :" + txtStartingPeriod.Text + " - To :" + txtEndingPeriod.Text);                    ReportDocument rptDoc = new ReportDocument();                    rptDoc.Load(Server.MapPath("rpt_FinancialStatements/rpt_AccountLedger.rpt"));                    rptDoc.SetDataSource(LogicLayerEngine.SelectOperation_DT(4));                    rptDoc.SetParameterValue(0, ReportTitle.ToString());                    CrystalReportViewer1.ReportSource = rptDoc;                }                else                    tdErrorMessage.InnerHtml = GenerateErrorMessage("Select Account You Want To Generate Ledger Sheet For");            }            catch (Exception ex)            {                tdErrorMessage.InnerHtml = GenerateErrorMessage(ex.Message);            }        }

& when i looked into the webconfig file i fount out that VS2012 is hocked to the older version of CR

<assemblies>        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />        <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />        <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />      </assemblies>

so would that be the reason it's not working ?

& if so how can i make it integrated with the 13.0.5.891 ?

if it's not  what am i doing wrong ?

Parameter Dialog Hidden when Viewer / Form Brought to Front

$
0
0

I have a separate application that's launching my .NET winform app via a file association.  I need my app to come to the front, i.e. become the topmost form.  But when I call the methods to bring the form to the front or even call the viewer's BringToFront() method, the parameter dialog box essentially gets choked out and disappears and so, being unable to find that and enter the required parameters, the viewer just locks up the screen and has to be closed via Task Manager.  Is there any way to get a reference to the parameter dialog box so that I can bring THAT to the front?

 

Thank you,

Laszlo


Dynamic pick list values missing in web viewer

$
0
0

We have a report that uses a dynamic pick list to allow the user to select values from a list loaded from the database. When I run the report in the designer, I get prompted with a pick list. We run this report in a web UI and on one server we get the list and on another where the list is supposed to be we get a free-form text entry field that allows me to type in anything at all.

 

There is zero feedback from CR about what, if anything, went wrong. No event log entries, no dialog boxes, nothing. I have absolutely no idea where to even begin looking for a solution.

 

The non-working server is using the 64 bit runtime engine for .Net 4, 13.0.3.612 and the working one is running 13.0.2.469. I don't see anything in the release notes suggesting that the was anything "fixed" in the newer version that would break dynamic pick lists.

can't display report on ASP.NET webform

$
0
0

i'm creating a report in an ASP.NET webform but every time i load the report nothing is displayed .. crystalreportviewer is not even giving back any errors ..

just nothing in there .. like i didn't put anything in there ...

 

i'm using VS 2012 with .NET 4.5 on Win 8 x64 Pro.

 

i already had installed

CrystalReports Basic Runtime For VS 2008 v10.5.2.0

CrystalReports For VS 2010 v13.0.2.469

& when i installed the VS 2012 i installed CrystalReports For VS 2012 v13.0.5.891

 

this is my page html

<tr>            <td>                <div>                    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />                </div>            </td>        </tr>

& here's the event where i populate it

protected void btnLoadReport_Click(object sender, EventArgs e)        {            try            {                rpt_FinancialStatements.rpt_AccountLedger AccountLedger = new rpt_FinancialStatements.rpt_AccountLedger();                if (!string.IsNullOrEmpty(txtAccountID.Text) && !string.IsNullOrEmpty(txtAccountName.Text))                {                    LogicLayerEngine.AccountID = Convert.ToInt64(txtAccountID.Text);                    LogicLayerEngine.StartingPeriod = Convert.ToDateTime(txtStartingPeriod.Text);                    LogicLayerEngine.EndingPeriod = Convert.ToDateTime(txtEndingPeriod.Text);                    StringBuilder ReportTitle = new StringBuilder();                    ReportTitle.Append(txtAccountName.Text + "Account Ledger");                    ReportTitle.Append("\r\nFrom :" + txtStartingPeriod.Text + " - To :" + txtEndingPeriod.Text);                    ReportDocument rptDoc = new ReportDocument();                    rptDoc.Load(Server.MapPath("rpt_FinancialStatements/rpt_AccountLedger.rpt"));                    rptDoc.SetDataSource(LogicLayerEngine.SelectOperation_DT(4));                    rptDoc.SetParameterValue(0, ReportTitle.ToString());                    CrystalReportViewer1.ReportSource = rptDoc;                    CrystalReportViewer1.DataBind();                }                else                    tdErrorMessage.InnerHtml = GenerateErrorMessage("Select Account You Want To Generate Ledger Sheet For");            }            catch (Exception ex)            {                tdErrorMessage.InnerHtml = GenerateErrorMessage(ex.Message);            }        }

upon further investigation i checked my web.config file i found out that VS 2012 is hocked on the CR v 13.0.5.469

<assemblies>        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />        <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />        <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />      </assemblies>

 

so now my question is .. is that the problem ? .. & if it is  .. how can i make the VS 2012 integrate with the newer version 13.0.5.891 ?

& if it's not .. what am i doing wrong ? ..  though i was working on a desktop app last week & reports was working fine !!!

Crystal versions to legally install the runtime

$
0
0

We're looking to use the Crystal reports runtime internally within an organization.  It will be used by third party software we're implementing to generate PDFs.

 

I'm interested in what is required to legally install the runtime located here in the above situation:

 

http://scn.sap.com/docs/DOC-7824

 

Specifically, does Crystal XI Developer qualify?

 

 

Does Crystal XI Developer have to be installed on the same machine as the runtime to be license compliant, or does the organization just have to generally own a copy of Crystal Developer?

 

 

 

Thanks!

Extra space before period and before apostle when viewed in Crystal reports 2008

$
0
0

Hi All,

         We have recently migrated our solution to .net 2.0 and crystal reports 2008 on Windows7. Our is a winforms application developed in vb.net and we extensively use crystal reports in the application. When trying to view the a report it displays extrace between period . For example it displays as "book  ." If i save the report as pdf I dont see this issue . I have tried adding the app.config file following one of the posts  but not successful can some one please help me out on this ?

 

Thanks in Advance,

PAlapati

VB.net System.IO can't load crdb_adoplus.dll

$
0
0

I used CR in VB.net 2010. I already reinstall Crystal Report and SP2. The CR in the program could in design mode. When this report run with Crystal Report View. After load report, It's found problem at SetDataSource.

 

VB.net error message said. I really installed Crystal Report at: "SAP BusinessObjects\...\dotnet\..." not "\dotnet1\" What i did anything wrong

 

 

********************************

System.IO.FileNotFoundException was unhandled

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

  Source=mscorlib

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

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

LOG: User = JAMES_ONE\Administrator

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

LOG: Appbase = file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2010/Projects/TestReport2/TestReport2/bin/Debug/

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: Using application configuration file: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\TestReport2\TestReport2\bin\Debug\TestReport2.vshost.exe.Config

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

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

 

  StackTrace:

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

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

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, 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:

 

********************************

 

my procedure:

 

********************************

Friend Sub ViewReport(ByVal ReportName As String, ByVal TableName As String, ByVal QueryString As String, Optional ByVal [Parameter] As String = "")

        Try

 

            'If Not UBound(TableName).Equals(UBound(QueryString)) Then MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information) : Exit Sub

 

            Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument

            Dim CrystalReportViewer As CrystalDecisions.Windows.Forms.CrystalReportViewer = New CrystalDecisions.Windows.Forms.CrystalReportViewer

 

            CrystalReportViewer.ActiveViewIndex = 0

            CrystalReportViewer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

            'CrystalReportViewer.DisplayGroupTree = False

            CrystalReportViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None

            CrystalReportViewer.Dock = System.Windows.Forms.DockStyle.Fill

            CrystalReportViewer.Location = New System.Drawing.Point(0, 0)

            CrystalReportViewer.Name = "CrystalReportViewer"

 

            Dim Adapter As New OleDb.OleDbDataAdapter

            Dim DataSet As New DataSet

 

            'For I As Integer = 0 To UBound(TableName)

            Adapter = GetDataAdeptor(QueryString)

            Adapter.Fill(DataSet, TableName)

            'Next

            ' String

            '*** Report In the report Folder

            'Dim rptPath As String = Application.StartupPath & "\CR-01.rpt"

            'Report.Load(rptPath)     ' programming path

            Report.Load(Application.StartupPath & "/" & ReportName & "")     ' programming path

            Report.SetDataSource(DataSet)

            If Not [Parameter] = "" Then Report.SetParameterValue(0, [Parameter])

            CrystalReportViewer.ReportSource = Report

            Me.Panel1.Controls.Add(CrystalReportViewer)

 

 

        Catch ex As Exception

            MsgBox("EORROR: " & ex.Message)

        End Try

End Sub

           

***********************************

Viewing all 3636 articles
Browse latest View live


Latest Images

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