FAQ: Crystal Reports を使用した Windows フォームアプリケーションが原因でシャットダウンできない

【タイトル】
Tip: Crystal Reports を使用した Windows フォームアプリケーションが原因でシャットダウンできない
【詳細/質問】
Visual Studio がインストールされた環境にて、Crystal Reports を使用したアプリケーションを閉じる際に次のようなエラーが発生する。
"Title: Microsoft Visual C++ Runtime Library Runtime Error!
Program: u2026\TestReport.vshost.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the applicationu2019s support team for more info."
【対象製品】
Crystal Rpeorts 2008
【原因】
レポートがXMLデータソースへの接続を行う際に crdb_xml.dll を使用します。 このDLLファイルは java.exe を呼び出しバックグランドで使用されます。 Visual Studio はJava Virtual Machine を正常に終了することができないため、反応が無くなるかもしくはエラーを発生をさせます。
【解決策/回答】 
レポートの使用時に XMLデータソースへの接続方法として ADO.NET(XML) を選択します。 この接続方法を使用することで、crdb_adoplus.dll が使用され当該現象を回避できます。

Re: HELP - setting page margins doesn`t work correctly
上記スレッド内のRASを使う方法で、一応解決致しました。
【手順】
参照設定に以下を追加
CrystalDecisions.ReportAppServer.ClientDoc;
CrystalDecisions.ReportAppServer.Controllers;
CrystalDecisions.ReportAppServer.DataDefModel;
CrystalDecisions.ReportAppServer.ReportDefModel;
余白の設定を以下に変更
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rcd;
rcd = report.ReportClientDocument;
CrystalDecisions.ReportAppServer.Controllers.PrintOutputController poc;
poc = rcd.PrintOutputController;
poc.ModifyPageMargins(margins.leftMargin, margins.rightMargin, margins.topMargin, margins.bottomMargin);
poc.PrintReport(null);
これで、通常使うプリンタに正しい余白で出力する事ができました。
過去スレッドの探索不足でした、お騒がせして申し訳ありません。

Similar Messages

  • Crystal Report Windows Forms Viewer Error in 1 Workstation after upgrade of PL

    Hi all,
    We just upgraded SAP from 8.82 PL02 to 8.82 PL15.
    Afterwards, in just 1 workstation, Crystal Reports layouts have Crystal Report Windows Forms Viewer error I attach.
    Before the upgrade this error did not happen.
    No permissions or authorizations were changed  in the workstation.
    The Crystal Reports layouts remain working fine in server and in the other workstations.
    In the workstation following are installed:
    - Operating System Windows 7;
    - Microsoft .NET Framework 4.5;
    - SAP Crystal Reports runtime engine for. NET Framework;
    - Crystal Report 2008 Runtime SP6;
    - Microsoft SQL Server 2008 R2 Native Client.
    All, but the operating system, are equal to the other workstations.
    User has edit access to SAP folders, temp and access to the attach path.
    We already uninstalled SAP client and client agent and re-installed it but with no avail.
    Can anyone help me?
    Thanks in advance.
    Best regards,
    Pedro Mariano

    Hi San Xu,
    Thank you for your input.
    However I'm facing problem with each software is suitable.
    I installed SAP Crystal Reports for SAP Business One (CR 2011 V14.0.4.738), but with no avail.
    Thanks in advance.
    Best regards,
    Pedro Mariano

  • Crystal Report Windows Forms Viewer problems - table could not be found

    Hi,
    I installed Crystal Report Viewer in SAP Business One 2007. All the while, I can run the reports without any problem. but when I loaded some of the new report, it gives me the following error message:
    the caption says: "Crystal Reports Windows Forms Viewer"
    the message says: "The table 'paymentVoucher' could not be found.
    Error in file C:\...paymentVoucher.rpt. The table could not be found."
    By the way, I can run the report in another workstation.
    Any help or ideas of why this is happening or how to solve this will be greatly appreciated.
    Thanks in advance.

    The report is not created by me. I just help others to transfer the report from one workstation to another workstation. PaymentVoucher is a view in the database and it is being put at a workstation that can be shared by everyone.
    I've go through other forums and found out that it might be permission issues and now managed to solve the problem already.
    Thanks everyone for the advice.

  • Crystal report windows forms viewer - error in file

    I am using visual basic - visual studio 2005 with crystal reports version 11.5 and am getting the following error when deploying to a windows 7 32 bit machine
    Error in file
    c:\users\username\appdata\local\temp\tempmanynumbersandcharacters.rpt
    The request could not be submitted for background processing.
    All six reports for this application give the same error.  There is not a problem when it is deployed to a windows xp machine.  I have three other applications that do not have problems in windows xp or windows 7 32 bit.  I can't see any difference between these three apps and the one have a problem in windows 7.
    Thanks,
    Jay

    You do not mention if you searched the forums and the Kbase for the error... Using the search box in the top right corner of this web page will return KBases, Blogs, Wikis, articles and more. The following article should have been returned with a simple search;
    [Causes of "Background Processing" error|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33]
    See if it helps. If not, do a few searches as there may be other reasons not documented in the articles.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crystal Report Windows Forms Viewer - No Error Popup

    Similar to this post:  Error message that says "No Error" from CR Viewer, I have just upgraded by Application to .net 4.0 and Crystal Reports 2010. The report viewer works fine the first time a report is loaded, but when I change the parameters on the report, and put the updated report back into the report viewer, I get the message shown above.  The report does not change its parameters and the updated report is not displayed.  The code in question is setting the date parameters for the report.  The user can select new date parameters from the form that encloses the report viewer.  The code subclasses the Report Object code to add additional functions through interfaces.  The IDateRange interface provides a starting and ending date range for the report using a property on the report class as follows:
        Public Property EndingDate() As Date Implements IDateRange.EndingDate
            Get
                Return _endingDate
            End Get
            Set(ByVal value As Date)
                _endingDate = value
                Me.SetParameterValue("EndingDate", value)
            End Set
        End Property
    In addition, the immediate Window shows the following message:
    A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll
    The code in the Report Viewer looks like this, see line marked in blue for when pop-up appears:
    ''' <summary>
    ''' Sets the report period and displays it.
    ''' </summary>
    ''' <param name="Report">The Report.</param>
    ''' <param name="Refresh">if set to <c>true</c> force a refresh.</param>
    Private Function PFSetReportPeriod(ByVal Report As Object, Optional ByVal Refresh As Boolean = True) As Boolean
        Dim fld As FormulaFieldDefinition
        Dim bRefresh As Boolean = False
        Dim rpt As ReportClass = CType(Report, ReportClass)
        Try
            If CRV.ReportSource IsNot Nothing Then
                rpt = CType(CRV.ReportSource, ReportClass)
            End If
    If TypeOf rpt Is IDateRange Then
        With DirectCast(rpt, IDateRange)
    .        StartingDate = dtpFromDate.Value
    .        EndingDate = dtpToDate.Value
        End With
        SetTitleLine2(DirectCast(Report, ReportClass), bRefresh)
        bRefresh = True
    Else
        If TypeOf rpt Is ReportClass Then
           fld = rpt.DataDefinition.FormulaFields("FromDate")
           If Not fld Is Nothing Then
                fld.Text = "Date(" & dtpFromDate.Value.Year & "," & dtpFromDate.Value.Month & "," & dtpFromDate.Value.Day & ")"
                bRefresh = True
            End If
            fld = rpt.DataDefinition.FormulaFields("ToDate")
            If Not fld Is Nothing Then
                fld.Text = "Date(" & dtpToDate.Value.Year & "," & dtpToDate.Value.Month & "," & dtpToDate.Value.Day & ")"
                bRefresh = True
            End If
            SetTitleLine2(rpt, bRefresh)
        End If
    End If
        If Refresh And bRefresh Then
            If dtpToDate.Value <> CDate(dtpToDate.Tag) OrElse _
               dtpFromDate.Value <> CDate(dtpFromDate.Tag) Then
                    System.Windows.Forms.Application.DoEvents()
                If CRV.Visible Then CRV.ReportSource = rpt ' The popup appears when this statement is executed.
                If CRV.Visible = True Then CRV.Refresh()
                dtpToDate.Tag = dtpToDate.Value
                dtpFromDate.Tag = dtpFromDate.Value
               Return True
            End If
        End If
    Catch ex As Exception
        DisplayException(ex)
    End Try
    Return False
    End Function

    Problem has been resolved.  I downloaded Support Pack 8 (v.13.0.8.1216) from this location.  I then applied the fix from the entry above:
    With CRV ' Report Viewer Control
        If .Visible Then
            If .ParameterFieldInfo IsNot Nothing Then .ParameterFieldInfo.Clear()
            .ReportSource = rpt
            .Refresh()
        End If
    End With
    And no more annoying "No Error" messages.

  • Error Crystal Report Windows Forms Viewer in Windows 8.1

    As you can see from the picture I get this error when trying to load the report anyone have any suggestions?, This happens with windows 8 on windows 7 I have no problems with the application

    Hi,
    The error is not having connection to the database, the error is that it can not open the temporary file that Crystal Report generates before opening the report but it only gives the error when running on Windows 8, Windows 7 not same program fails.
    It conect to a MySql database using. Net Framework Data Provider for MySQL in a 32 Bits

  • Crystal Reports - Windows 7 (64bit workstation)

    I am ashamed to admit I have been searching through these forums for a solid few hours and cant find a complete answer. Can someone please help out?
    Im trying to find out specifically what versions of CR are supported on a Windows 7 64bit client. What I have seen so far is
    CR 2008 SP2
    CR CI R2 SP6
    Im not sure if it makes a difference if it is:
    CR Professional 2008 or
    CR 2008 Visual Advantage - (this looks to include XCelsius a SQL Server Reporting Services like tool (?))
    I also couldnt find out if this is current, will others work even though they arent supported, etc. (Many products we have been able to make work with little effort.)
    Any help would be appreciated.
    Thanks. LK

    Hi,
    Google will be of much help in this instance.  Try typed in "supported platform for Crystal report".
    Have a look at the link below, which you will need to be able to access SAP Network Community to access.
    Crystal Reports 2008 [original link is broken]

  • Crystal Report Windows Form Viewer - Error in compiling SQL Expression

    I am using C# and the Crystal Reports API to render reports in a windows application. Recently we decided to start using SQL Expressions in our reports. The reports developers are able to use them in development, but as soon as we deploy the reports to production, we are seeing the following error.
    Why does this work when developing forms but not when using the C# API?

    Hi Adam
    I pinged couple of people here, but so far have not got a reply. I'll update this post as soon as I get anything.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Reports & Windows Server 2008

    Hi everybody,
    I installed Crystal Reports 10 under Windows Server 2008 R2 (x86-64). I need this u201Coldu201D version because I still have some .NET application developed with Framework 1.1.
    Unfortunately, I receive the following error: u201CSystem.NullReferenceException: Object reference not set to an instance of an object.u201D
    I created a virtual directory (which point to C:\Program Files (x86)\Common Files\Crystal Decisions\2.5\crystalreportviewers10) and enabled 32-Bit Applications in the Application Pool under IIS 7.
    Please notice that with the same configuration, everything works fine under Windows Server 2003.
    I eventually tried to install Crystal Reports 2008, but nothing changed.
    Did I miss something?
    Any suggestion is appreciated.
    Thanks in advance for your support,
    Best regards

    Hi Don,
    sorry for my late reply.
    Unfortunately I don't use Visual Studio. I developed my .NET applications with Borland Developer Studio 2006, which support Framework 1.1 only.
    I tried to install the SP3 of Crystal Reports 2008, but no luck.
    I have licensed copies both of Crystal Reports 10 and 2008.
    Thank you
    P.S. if I use the new version (CR 2008 SP3) of:
    CrystalDecisions.CrystalReports.Engine.dll
    CrystalDecisions.ReportSource.dll
    CrystalDecisions.Shared
    CrystalDecisions.Web
    I get the following error:
    "The base class includes the field 'crystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer)."
    Edited by: abarone on Mar 28, 2011 12:52 PM

  • Deploy Crystal Reports Windows 7

    I'm trying to deploy on a new Windows 7 machine running Home Premium from a Visual Studio 2005 application. The crystal reports fail to run. They always get a run time error.  I have deployed successfully on windows XP pro with no issues.
    There must be some files that I'm missing

    Hello,
    Try to install [Service Pack 1 |https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe]for Crystal Report for .NET 2005
    Also check [Crystal Reports Support of 64-bit Operating Systems|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e]
    Thanks,
    Saurabh

  • Crystal Report Windows Forms Viewer error: "The field name is not known"

    Hi,
    My report runs fine in the Crystal Reports viewer.  When we try to view the crystal report through a piece of 3rd party software, I start to get errors in a few of my formulas indicating that "the field name is not known".  I can clearly see that the field is in my crystal report.  Has anyone else had this problem?  Any ideas on what might be happening?
    Thank you.

    Just to provide some further clarification on my problem:
    The "field name is not known" error seems to be occurring only in a few formulas where I have a statement like this:
    if ISNULL({somefieldfromdatabase}) Then
    I've used this for many other formulas and not had an issue with them.  I've verified that the database and the stored procedure contain this field.

  • Cannot export crystal report in excel format from crystal report viewer

    This problem occurs on only one workstation.
    Open Advanced Reports > Enter workorder # > Click on 'workorder work(uninvoiced)' > Work order opens.
    Click on icon "Export report"
    Save as type: change to .xls
    Error: Crystal Report Windows Forms Viewer. Error in file
    SAP.......rpt:
    Error detected by export DLL:
    Export failed.

    Try adding c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to your windows enviroment variable PATH then restart.

  • Failed to retrieve data from the database crystal reports 2008 in SAP  B1

    Hello friends,
                 I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report,  it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prompts the parameters for that report and then open up the crystal report window and throws an Error message ("failed to retrieve data from the database. Details [Database Vendor Code: 156]").
               Please any one suggest me the corrective solution.
    Thanks in Advance,
    Keyur Raval.

    I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
    Radoslaw Blaniarz

  • Crystal Reports 9: Page Header plus Page Footer is too large for the page.

    Hi,
    I have a report that has the following sections.
    GH1
    GH2a
    GH2b - has a sub report
    GH2c - has another sub report
    GH3
    GH4
    GH5
    details - suppressed
    GF5 - suppressed
    GF4 - suppressed
    GF3 - suppressed
    GF2 - suppressed
    GF1 - suppressed
    The report works fine wehn I run it using Crystal Designer.I am using CR version 9.2.2.693.
    When I try to load the report in my application, I get the following error.
    Crystal Report Windows Forms Viewer
    Page Header plus Page Footer is too large for the page.Error in File rptName.rpt:
    Page header or footer longer than a page.
    OK  
    There are no 'suppress blank sections' option set in the sections where the sub-Reports are.
    I also tried setting the No Default Printer option.
    The report gets loaded from the application only when I set 'New Page after' in the sections where there are sub-Reports.
    I do not want to do this; Is there a workaround?
    Thank you.

    Can someone tell me if this problem is being worked on as it looks as thogh none of the problems regarding the message u2018Page Header plus Page Footer is too large for the pageu2019 have been addressed.
    We have several reports that were written in Crystal 7 (I think) and worked in Crystal 9 and X1R2 but now give the above error. We have tried jigging the report in line with the various suggestions but at best can get them to run through successfully with one lot of data and then fail on the second or subsequent pages when you vary the data or report format even slightly. We can report on every bit of data separately or in various combinations but not in others. Changing the bottom page margin by 0.01 cm can cause it to fail on page 7 instead of page 530 (for example). We certainly do not have large page headers (just over 2cm) or page footers (about 0.3cm). We do have some subreports in the details section but have used 'fit to section', added 'keep together', removed u2018keep togetheru2019 from just about everything we can (in desperation) but to no avail. We cannot see a pattern to what is happening. It would be encouraging to know that someone is actually working on this fault.

  • Crystal Report Pick List - "Table ADM1 could not be found" Error

    Hi,
    When preview is select in sales order, we select pick list gets error.
    Crystal Report Window Forms Viewer:
    "Table ADM1 could not be found"
    Error in File Temp {   .........} .rpt
    The table could not be found"
    If I login remotely , then log into SAP as this user I do not get an error.
    I have given user full authorisation.
    I have run Verify Database.
    I am assuming it is some database or network user access rights.
    Could anyone help on this?
    Kind Regards,
    Eric

    Report was developed and tested against a 'test' database and then imported into a 'production' database.
    Problem appears to be that when B1 connects it does not reset the login credentials for the unlinked tables such as ADM1 and OADM.
    Performing the following steps appears to solve the problem.  Not sure how many of them are really necessary.
    1. Develop and test against the test system as before.
    2. Save as a .rpt file outside B1.
    3. 'Set Datasource Location' to the appropriate B1 datasource for the production database and individually link every table as well as the data source.
    4. Save the .rpt file again.
    5. Import into the production database.
    This does not specifically address the issue where it worked when logged in to the server but not remotely.  Perhaps when logged in remotely the test database was not visible but when logged in locally it was.

Maybe you are looking for

  • HT204266 My apps wont update

    Hi. For the last three days I have been trying to update my apps on my iPhone 4S but my phone won't allow me to. When I go to the app store and click the upsate all botton it does nothing. Same when I click on a single app. My phone is on the latest

  • Porting to intel question...

    Does anybody know if there is a place where I can submit an application to be ported to run on Intels? For those of you wondering which apps I'm refering to... Flip4Mac http://www.Flip4Mac.com/ It allows Windows Media Player files to run in Quicktime

  • When connecting to website using sso, packet sniffing shows ntlm user is using {server name}\{user name} instead of {domain name}\{user name}

    I moved to windows 7 and firefox 12 and my internal website via the servername (not FQN) is now prompting me for the username and password in firefox. I do not get prompted for a username and password when using IE9 to access the site via servername

  • Database access with JSP custom tags

    i have created one file in which i am making the connection with mysql data base with con.mysql.jdbc.Driver.and usking J connector and that i'm doing with custom tag.this is the error which i'm getting in tomcat. and the tag handler class and TLD fil

  • How to set proxy for client-server socket connection?

    Hi, I'm using the code found on the following page to create a client (mobile) to server (pc) connection and send a text message. http://javafaq.nu/java-example-code-503.html This works with mobile operators without proxy, but does nothing when the o