Crystal Report Close

Hi all
I have a problem with a Crystal Report when I try open a BW query, the Crystal Report close, I donu2019t have a message or error. Only in the Event Viewer I have this messege u201CFaulting application crw32.exe, version 12.0.0.683, faulting module crw32.exe, version 12.0.0.683, fault address 0x008360fe.u201D
Any idea?
Thanks

I saw my mistakes but do like the solution?
this are de messages
++++++++++++++++
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
++++++++++++++++
and this other
DWMAPI.DLL - Error opening file. The system cannot find the file spacified(2)
any idea i need to do,
thanks
Saludos

Similar Messages

  • SQL Connections remain open after Crystal Report closes

    I am wirting an interface to use the crystal report viewer to print reports, connecting to a Progress Open Edge 10.1B database.  From our application we declare the application, report, exportoptions and connectionproperties objects and pass these to the crystal reports viewer.  Once the report is printed we release the objects and set their variables for null.  However we are finding that the SQL connection to the database is remaining connected and we can only release the connection by manually going in a disconnecting.
    I have read in forums that people use .dispose or .close to release the connection, however we do not have access to these methods as we do not use .NET.  Are there any methods we can use to disconnect these sql connections?

    Hi Dean,
    Moved to the Legacy Application forums. Likely using the RDC as your report engine.
    You should still be able to close and dispose of the report objects. They are not specific to .NET.
    In VB it would look something like these lines::
        crReport.Close
        Set CrystalActiveXReportViewer1.ReportSource = Nothing
        Set crReport = Nothing
    Once the report is closed it should disconnect from the DB. If you close the application does that disconnect?
    Have you looked on 4GL's site for info on how to?
    Thank you
    Don

  • Crystal report close button hangs the application

    Dear All,
    I am working on 2005 B PL 46. we have developed an application to open a particular crystal report when a button is pressed in AR Invoice form. this works fine and the data is loaded properly. The problem is, when I close this report, this hangs the entire application and I have to kill the exe from the task manager then only I can go back to SAP. (one of the oldest problem we encountered with crystal report-SDK). this does not happen always. it does close the report 5 times out of 10 without hanging the application.one more thing is, if I debug the application with pressing F11, it never hangs the application and woks fine.
    The report is getting loaded in the Crystalreport Viewer control dragged on a windows form. any one has any idea? I have tried this on 2007 B version PL 08 and the same problem persists with lesser frequency.
    Thanks,
    Binita

    Yes Vasu. and on form close event of that windows's form, I am writing :
    System.Windows.Forms.Application.ExitThread()
    any idea?
    thanks,
    Binita

  • Crystal Reports's JRC. How to close JDBC connection?

    Hi!
    I have simple CR JRC application under Oracle AS 10.1.2.0.2, made from Crystal's sample codes.
    It works fine, but there is little problem: after closing vievwer's page JDBC connections stays alive.
    How can I close them?
    Here is my 2 jsp:
    ---------- Page1.jsp -----------------
    "<%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%
    // open the report rpt file
    String REPORT_NAME = "directs_q_d1.rpt";
    String Login =request.getParameter("p1");
    String Password =request.getParameter("p2");
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    reportClientDoc.getDatabaseController().logon(Login,Password);
    ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue("", "reportname", new String("DIRECTS_QUARTERLY"));
    session.setAttribute("reportSource", reportClientDoc.getReportSource());
    reportClientDoc.close();
    response.sendRedirect("CrystalReportViewer.jsp");
    %>
    and
    ----------- CrystalReportViewer.jsp ------------------------
    <%//Crystal Report Viewer imports.%>
    <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%
    //Refer to the Viewers SDK in the Java Developer Documentation for more information on using the CrystalReportViewer
    //API.
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setHasRefreshButton(false);
    viewer.setEnableDrillDown(false);
    viewer.setDisplayGroupTree(false);
    viewer.setHasToggleGroupTreeButton(false);
    viewer.setHasViewList(false);
    viewer.setHasLogo(false);
    //Get the report source object that this viewer will be displaying.
    Object reportSource = session.getAttribute("reportSource");
    viewer.setReportSource(reportSource);
    //Render the report.
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    viewer.dispose();
    %>
    -------------------------------------

    Oh, i'm sorry :) It was a "time-out" tag in CRconfig.xml. Tipic closed.

  • Crystal Reports XI - ERROR closes Crystal Reports Entirely

    Post Author: crdev
    CA Forum: Data Connectivity and SQL
    Our company recently purchased Crystal Reports XI.  We had previously used Crystal Reports 8 and had great success using it.  Our problem is that when creating a new report using CR XI after selecting our ODBC datasource and inputing our username and password crystal reports generates an error and closes entirely.  There is not an error code or error description either.  Our datasource connects to a secured Access database with a database password set.  This same datasource worked great using CR 8. Has anyone else had this problem?  If so, did you find a solution?  

    Tim,
    If you have previous versions of Crystal Reports try removing them. As well check that there are no Business Objects or Crystal Decisions folders under C:\Program Files and that there are no Registry keys for Business Objects or Crystal Decisions in HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER > Software. (*Back up the Registry before editing)
    If you are trying to install from a CD or network drive copy the contents of the install package to the local machine.
    Ensure you are logged on as Administrator and that Antivirus and AntiSpam ware are disabled.

  • Access DB (& .ldb file) does not close after crystal reports

    Post Author: mgold
    CA Forum: Crystal Reports
    Access DB (& .ldb file) does not close after crystal reports
    Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close. It seems to hang on the &#91;.Close&#93; command.
    When we open the application an peruse the screens without opening up a report (using crystal reports), the application and access db closes fine. But as soon as we run a report and then close the report and try to close the application, the access db does not close. Many of the screens open the db and grab data from the access db, but it's only after running crystal reports that we have this problem. (Please see more information below.)
    Setup: Application and data (access 97 db) reside on a server in the same folder, but application shortcut is kicked off on client PC. Kicking off the shortcut on the client PC means that the image/process runs on the client PC (not on the server). In this problem case, the application shortcut is on a Windows XP Pro Version 2002 SP2 PC with the app & data on a Windows 2003 server. Users are local Admins on their PCs with "Full Control"over the directory and files on the server where the data (access 97 db) resides. This type of setup is typical and has worked without any problems for clients.
    The application is written in Visual Basic, using Crystal Reports 6 (using DAO). We close the recordset, set it to zero and then it hangs on closing the db (.Close command).
    A few key pieces of information:
    - The application closes fine if the app & data (access 97 db) are on a local PC. This includes closing fine if the application is run directly on the Windows 2003 server where the data is stored.
    - It worked on this client's network until sometime in the last few weeks.
    - One thing that changed is that the company is using VMWare on its servers. Not sure if they started using VMWare at the same time as it started failing. This may be unrelated. Possibly other things changed, but can't get any more information ... yet.
    - It works fine running the application from a Windows Vista PC with a user who is a domain admin.
    - The access db and application hang for about 10-20 minutes and then eventually closes. It appears that somehow
    Crystal Reports is keeping the db open, but I'm not sure why.The application doesn't quit and the database doesn't close even if I try to end the task with the Task Manager.
    - The Crystl32.ocx version being used is 8.0.0.4 (if that matters).
    - I copied 6 month old program files and database files to a test folder on the Windows 2003 server. It fails using these files that worked fine 6 months ago.
    Any ideas or help would be greatly appreciated! If you know of another good place to post this, please let me know.
    Thanks!
    - Mark

    Crystal doesn't support tables in HTML interpretation. 
    You can probably work your way around this by doing Replace() calls on the relevant tags.
    See:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033383334%7D.do
    The supported HTML tags are:
    " html
    " body
    " div (causes a paragraph break)
    " tr (causes only a paragraph break; does not
    preserve column structure of a table)
    " span
    " font
    " p (causes a paragraph break)
    " br (causes a paragraph break)
    " h1 (causes a paragraph break, makes the font bold
    & twice default size)
    " h2 (causes a paragraph break, makes the font bold
    & 1.5 times default size)
    " h3 (causes a paragraph break, makes the font bold
    & 9/8 default size)
    " h4 (causes a paragraph break, makes the font bold)
    " h5 (causes a paragraph break, makes the font bold
    & 5/6 default size)
    " h6 (causes a paragraph break, makes the font bold
    & 5/8 default size)
    " center
    " big (increases font size by 2 points)
    " small (decreases font size by 2 points if it's 8
    points or larger)
    " b
    " i
    " s
    " strike
    " u
    The supported HTML attributes are:
    " align
    " face
    " size
    " color
    " style
    " font-family
    " font-size
    " font-style
    " font-weight

  • Close the IE window openeded after a Crystal Reports Report opened in Excel

    Hi all
    I wonder if any of you have an answer for this doubt:
    I have developed a series of Crystal Reports reports which I open by using the opendocument command and by specifying the parameter &sOutputFormat=E. It works properly: When the user executes the report, an Internet Explorer window appears , followed by a File Download dialog box where the user chooses wether to Open, Save or Cancel.
    This dialog box has a checkbox for allowing the user to "Close this dialog box when download completes". If the user had already checked this option ( for a previous download, for example), then the excel file gets saved automatically but the Internet Explorer window opened at first, remains opened which may seem like the report is still being generated, even it was already saved.
    I'm wondering if there's a way to close this Internet Explorer window automatically, once the report was saved.
    I greatly appreciate any contribution.
    Gabriel Sanchez V.

    Hi Don. You are right, as I mentioned, I'm using the opendocument command which gets called via an URL.
    Did you mean this is not the proper forum to post my question? This forum is "SAP Crystal Reports Design" isn't it?. Could you please clarify this point?
    Thanks in advance
    Best regards

  • Unable to close JDBC connection in crystal reports

    Hi,
    I have configured crystal reports to use a connection acquired from a datasource created in weblogic server to generate a report. I was hoping that by calling ReportClientDocument.close() i would be closing the connected used to generate the report but that doesnot seem to be the case. I run into a situation where all my connections from the connection pool are being held by the reports and therefore get an exception in the application.
    Can anyome please let me know if calling ReportClientDocument.close()  will ensure that the database connection used for generating the report is closed? If no, please let me know what needs to be done in the code to ensure that a connection acquired for generating a report is closed.
    Thanks in advance
    VAMSI

    Hi Sanjay,
    Once connected right click on the connection an try adding filtering. Check off all except Tables and if you still don't see anything try adding table filtering to see if they show up now.
    Thank you
    Don

  • How to close database connections in Crystal Reports

    I am using the following code to connect to database. I can either pass JNDIName or I can provide values for others by leaving JNDI name empty.
    If i use JNDI name, it will use a connection from the connection pool of App Server (in my case Weblogic), but it is not releasing the connection after use. Connection remains even if I logoff from the application. If i keep my max connections as 15 in weblogic, after clicking the page with crystal report 15 times all will remain active and users will not be able to login to the application.
    If i use connectionString and others without using JNDI Name, it directly connects to database. So it creates a connection in database server directly without using connection pool of weblogic. If i check weblogic, it shows no connection in use as expected, but if i check database, i can see the no. of connections increasing everytime a user clicks a crystal report page.
    When the connection touches the maximum allowed connection in server, every application using the same server goes down
    How can I close the connection which was created for the viewing the report?
    String reportName = "/reports/BankBalance.rpt";
    ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
    if (clientDoc == null)
             clientDoc = new ReportClientDocument();
             clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
            // Open report
            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
           String connectString = ""; // jdbc:sybase:Tds:DBSERVERNAME:9812/DBNAME?ServiceName=DBNAME
           String driverName = "";    // com.sybase.jdbc3.jdbc.SybDriver
           String JNDIName = "DS_APP";
           String userName = "";
           String password = "";
           // Switch all tables on the main report and sub reports
           CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
         // logon to database
          CRJavaHelper.logonDataSource(clientDoc, userName, password);
    // Store the report document in session
    session.setAttribute(reportName, clientDoc);
                   // Create the CrystalReportViewer object
                          CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
         String reportSourceSessionKey = reportName+"ReportSource";
         Object reportSource = session.getAttribute(reportSourceSessionKey);
         if (reportSource == null)
              reportSource = clientDoc.getReportSource();
              session.setAttribute(reportSourceSessionKey, reportSource);
         //     set the reportsource property of the viewer
         crystalReportPageViewer.setReportSource(reportSource);
         crystalReportPageViewer.setHasRefreshButton(true);
         crystalReportPageViewer.setToolPanelViewType(CrToolPanelViewTypeEnum.none);
         // Process the report
         crystalReportPageViewer.processHttpRequest(request, response, application, null);

    the sample shows how to clear RAS and Enterprise resources after viewing report.
    1. If you use unmanaged RAS - as I can see you using setReportAppServer, then remove the enterprise related stuff : instantiating and cleaning code.
    The sample code is meant to give you an idea on how you can release the resources after done with viewing report. In your case all you need to do for cleaning is call close() on ReportDocumentObject. The sample will need to be modified for your requirements.

  • Crystal Report Viewer Closes the application after showing "The text cannot be found in the report" when searching for a text in a multipage report

    Post Author: Farooque
    CA Forum: Other
    Hi,
    I am using Crystal report viewer (Crviewer.dll) version 11.0.0.1282 to show crystal reports in my VB6 application. When we search for any text in a multipage report after the last find system shows a message "Crystal Report Viewer" "Text cannot be found in the report" and trows an unhandled error and closes the application. How can I fix this?
    Please help
    Thanks in advance.
    Farooque. ([email protected])

    Enter the following:
    viewer blank net crystal
    into the search box in the top right corner. You should get a number of hits (Kbases and articles) that should point you to a solution.
    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 XI R2 cause IIS to hang while calling ReportDocument.Close()

    Dear Concern,
    We are using Visual Studio 2008 (.Net framework 3.5) to develop ERP Web portal for our company. Crystal Report XI R2 has been used here for generating customized report.
    I have written a CrystalReport utility to do all type of logon, parameter pass stuffs with the report. The utility itself implements IDisposable and following is my code at the Dispose method:
    public override void Dispose()
    _crReportDocument.Close();
    _crReportDocument.Dispose();
    But when my code reaches _crReportDocument.Close() then the IIS/ W3C hangs. I have waited for long time to the process to be finished but it never.
    I also tried to move the code from my utility and directly close the report object from caller form but failed.
    Can anyone please give me any suggestions regarding this issue? Is there anything wrong with this?
    N.B. I have succeeded with Crystal Report X by using the same procedure.
    Thank You.

    Dear Adam,
    Thanks.
    The problem resolved after I have installed CR XI R2 Service Pack 4. Crystal Report 2008 of course is a better solution but I have to wait a bit for procurement.
    Warm Regards,
    Sultan

  • Opening multiple reports in Crystal Reports for VS causes database connect limit to be reached.  Seems to be no way to force Crystal Reports to close database connection (other than exiting application)

    I am working on upgrading an application that has been in use for many years.  The application is written in VB6 and I have been tasked with upgrading the current application to Crystal Reports for Visual Studio.  I am using Crystal Reports for VS Version 13.0.12.1494.  The system's database is a Sybase SQL Anywhere 16 database with an ODBC connection using integrated login.  Each of the reports has the database connection set up from within the report.  There is only once database server, so each of the reports are pointing to the same DB.  The database server is currently installed as a "Personal Server" with a limit of 10 connections. 
    I have implemented the CR viewer as part of a COM-callable wrapper that exposes a COM interface for VB6 to interact with.  Inside of my viewer component is a Winform that embeds the Crystal's Report viewer.  The COM interface basically maps the basic Crystal apis to methods that the VB6 can call (i.e., Load Report, Set Field Text, Update SQL Query, etc).  This architecture is working as designed and the reports are displaying correctly and responding correctly to changes in queries, etc.
    The issue is that after I open 9 reports, the tenth one will respond with an error indicating that the database connection limit has been reached.  The database connections used by the reports aren't released until after the application is closed.  The application is designed for a secure environment that prohibits the non-administrative user from accessing the systems desktop, so asking the user tor restart the application after 10 reports isn't a viable option.
    I have checked and database connection pooling is turned off for the SQL Anywhere 16 driver.
    I have been digging on this for a few days and have tried adding code in the FormClosed event to close and dispose of the Report Document as follows:
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();       // Force garbage collection on disposed items
    I have also tried the following (as well as maybe 20 or so other permutations) trying to fix the issue with no success.  
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    foreach (Table table in reportDoc.Database.Tables)
         table.Dispose();
    crystalReportViewer1.ReportSource = null;
    reportDoc.Database.Dispose();
    reportDoc.Close();
    reportDoc.Dispose();
    reportDoc = (ReportDocument)crystalReportViewer1.ReportSource;
    GC.Collect();       // Force garabe collection on disposed items
    Any ideas or suggestions would be greatly appreciated.  I have been pulling my hair out on this one!

    Hi Ludek,
    Thanks so much for the quick reply.  Unfortunately I did not have time to work on the reporting project Friday afternoon, but did a quick test this morning with some interesting results.  I'm hoping if I describe what I'm doing, you can show me the error of my ways.  This is really my first major undertaking with Crystal Reports.
    If I simply load the report, then close and dispose, I don't hit the limit of 10 files.  Note that I do not logon manually in my code as the logon parameters are all defined within the reports themselves.  The logon happens when you actually view the report.  Loading the report doesn't seem to actually log in to the DB.
    What I did was create a very simple form with a single button that creates the WinForm class which contains the Crystal Viewer.  It then loads the report, sets the ReportSource property on the CrystalReportsViewer object contained in the WInForm and shows the report. The report does show correctly, until the 10 reports limit is reached.
    The relevant code is shown below. More than I wanted to post, but i want to be as complete and unambiguous as possible. 
    This code displays the same behavior as my earlier post (after 10 reports we are unable to create another connection to the DB).
    // Initial Form that simply has a button
      public partial class SlectReport : form
            public SelectReport()
                InitializeComponent();
            private void button1_Click(object sender, EventArgs e)
                ReportDocument rd = new ReportDocument();
                ReportForm report = new ReportForm();
                try
                    rd.Load(@"Test.rpt");
                    report.ReportSource = rd;
                    report.Show();
             catch (Exception ex)
                  MessageBox.Show(ex.Message);
    // The WinForm containing the Crystal Reports Viewer
        public partial class ReportForm : Form
            public ReportForm()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                this.crystalReportViewer1.RefreshReport();
                this.FormClosed += new FormClosedEventHandler(ReportForm_FormClosed);
            void ReportForm_FormClosed(object sender, FormClosedEventArgs e)
                ReportDocument rd;
                rd = (ReportDocument)crystalReportViewer1.ReportSource;
                rd.Close();
                rd.Dispose();
            public object ReportSource
                set { crystalReportViewer1.ReportSource = value; }
    Again, any guidance would be greatly appreciated. 

  • SAP B1 Closes when Running the Crystal Report

    Hi SAP Expert,
    I have a problem during running the customized report i've created in Crystal. I created a stored procedure please see my code below. The Crystal Report is running during development but when i exported to SAP B1 and run the report. The SAP Business One will terminated. Any help please...
    CREATE PROCEDURE [dbo].[SP_ACTUALPURCHASESV3]
         -- Add the parameters for the stored procedure here
         @FROM DATETIME,
         @TO DATETIME
    AS
    BEGIN
         SET NOCOUNT ON;
         SET @FROM = CAST(CAST(MONTH(@FROM) AS NVARCHAR) + '/' +
                        CAST(DAY(@FROM) AS NVARCHAR) + '/' +
                        CAST(YEAR(@FROM) AS NVARCHAR) + ' 00:00:00:000' AS DATETIME)
         SET @TO = CAST(CAST(MONTH(@TO) AS NVARCHAR) + '/' +
                        CAST(DAY(@TO) AS NVARCHAR) + '/' +
                        CAST(YEAR(@TO) AS NVARCHAR) + ' 23:59:59:000' AS DATETIME)
         SELECT
              (SELECT DocEntry FROM OPOR WHERE OPOR.DocNum = PDN1.BaseRef) as  PODocentry,
              PDN1.BaseRef AS PONum,
              OPDN.DocEntry,
              OPDN.DocNum,
              OPDN.DocType,
              (select ocrd.lictradnum from ocrd where ocrd.cardcode = opdn.CardCode) as LicTradNum,
              OPDN.CardCode,
              OPDN.CardName,
              OPDN.DocDate,
              CASE WHEN PDN1.WhsCode IS NULL THEN PDN1.AcctCode ELSE PDN1.WhsCode END AS WhsCode,
              CASE WHEN PDN1.WhsCode IS NULL THEN (SELECT OACT.AcctName FROM OACT WHERE OACT.AcctCode = PDN1.AcctCode) ELSE (select OWHS.WhsName from OWHS where OWHS.WhsCode = PDN1.WhsCode) END AS WhsName,
              CASE WHEN PDN1.ItemCode IS NULL THEN 'N/A' ELSE PDN1.ItemCode END AS ITEMCODE,
              PDN1.Dscription,
              PDN1.Quantity,
              PDN1.unitMsr,
              PDN1.Price,
              PDN1.PriceBefDi,
              PDN1.PriceAfVAT,
              CRD4.WTCode,
              OWHT.RATE,
              (case when pdn1.quantity > 0 then (pdn1.Price * pdn1.Quantity) else PDN1.Price end ) * (OWHT.rate/100) as EWTVALUE
         FROM OPDN JOIN PDN1 ON OPDN.DOCENTRY = PDN1.DOCENTRY left join CRD4 on OPDN.CardCode = CRD4.CardCode left join OWHT on OWHT.WTCode = CRD4.WTCode
         WHERE OPDN.DocDate BETWEEN @FROM AND @TO  and OPDN.CANCELED = 'N'
         --WHERE OPDN.DocNum = 2542
         ORDER BY OPDN.DocDate
    END

    Hi,
    Does it means we are allowed to create stored Procedure inside the Company Database. We only use selecting and joining tables and somehow some complex sql procedures to meet our requirements.
    Thanks, but my question is if there's nothing wrong with it why my SAP B1 Closes when previewing the Crystal Report. Im running on Windows 7 64-bit, i will not imagine that the capacity of memory of my Terminal Unit is not enough because my memory is 8GB. I run crystal report but it shows the record, but when running the Cystal Viewer inside SAP B1 it illegally terminated.
    Thanks for clarifying the creation of Stored Procedure.
    Ben

  • Can't close Crystal Report Viewer after printing.

    I am using VS2010 and the CR runtime for VS2010.
    I have a Crystal Report on a page and a menu button to return to the menu.  When the report displays, if I click the menu button, it takes me to the menu.  But, if I choose to print, then click the menu button, the report still shows and no matter what I select from the menu, the report stays on the screen, although the menu page is linked to as I placed an alert there and it executes, the print page is still on the screen and actually the address bar still has the report page address.
    The page the report is on uses a Master Page if that matters.
    What can I do to dispose of this report after it prints (I do have a report.Close and report.Dispose before it gets redirected to the menu.)   I've commented out the line that redirects to the menu and placed code that gets executed both ways but when I print, the report doesn't go away.

    OK, you wrote:
    I have a Crystal Report on a page and a menu button to return to the menu. When the report displays, if I click the menu button, it takes me to the menu. But, if I choose to print, then click the menu button, the report still shows and no matter what I select from the menu, the report stays on the screen, although the menu page is linked to as I placed an alert there and it executes, the print page is still on the screen and actually the address bar still has the report page address
    So this is not a the Standard Menu bar but a Menu button you have on your form. I added the Standard Menu bar to my form and then hit the CR Print button in the viewer and while that MS Printer Dialog box is open I can't set focus to anything else.
    This suggests that your focus control is getting lost somewhere or taking over/wiping out the focus ID for the Crviewer with no way to return to it...
    Check you form options and specifically on your "Menu" button or what ever it is....
    Don

  • Crystal reports has encountered a problem and needs to close

    Hi all.
    We have a dev machine XP sp3 with all critical updates applied.  It has Crystal reports 11 and visual studio 2008 on it (both have all updates applied).  We seem to have this problem consistently in crystal reports.  If we open a new blank report, and try to drag & drop a field to anywhere on the report, we get this message.  This happens whether we connect to an access database or an sql database.  In the event log, it has this additional information:
    Event Type:     Error
    Event Source:     .NET Runtime 2.0 Error Reporting
    Event Category:     None
    Event ID:     1000
    Date:          6/15/2009
    Time:          2:46:09 PM
    User:          N/A
    Computer:     SNORDLUNDXP
    Description:
    Faulting application crw32.exe, version 11.0.0.2495, stamp 465ef18a, faulting module crw32.exe, version 11.0.0.2495, stamp 465ef18a, debug? 0, fault address 0x0049af99.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 00 70 00 70 00 6c 00   A.p.p.l.
    0008: 69 00 63 00 61 00 74 00   i.c.a.t.
    0010: 69 00 6f 00 6e 00 20 00   i.o.n. .
    0018: 46 00 61 00 69 00 6c 00   F.a.i.l.
    0020: 75 00 72 00 65 00 20 00   u.r.e. .
    0028: 20 00 63 00 72 00 77 00    .c.r.w.
    0030: 33 00 32 00 2e 00 65 00   3.2...e.
    0038: 78 00 65 00 20 00 31 00   x.e. .1.
    0040: 31 00 2e 00 30 00 2e 00   1...0...
    0048: 30 00 2e 00 32 00 34 00   0...2.4.
    0050: 39 00 35 00 20 00 34 00   9.5. .4.
    0058: 36 00 35 00 65 00 66 00   6.5.e.f.
    0060: 31 00 38 00 61 00 20 00   1.8.a. .
    0068: 69 00 6e 00 20 00 63 00   i.n. .c.
    0070: 72 00 77 00 33 00 32 00   r.w.3.2.
    0078: 2e 00 65 00 78 00 65 00   ..e.x.e.
    0080: 20 00 31 00 31 00 2e 00    .1.1...
    0088: 30 00 2e 00 30 00 2e 00   0...0...
    0090: 32 00 34 00 39 00 35 00   2.4.9.5.
    0098: 20 00 34 00 36 00 35 00    .4.6.5.
    00a0: 65 00 66 00 31 00 38 00   e.f.1.8.
    00a8: 61 00 20 00 66 00 44 00   a. .f.D.
    00b0: 65 00 62 00 75 00 67 00   e.b.u.g.
    00b8: 20 00 30 00 20 00 61 00    .0. .a.
    00c0: 74 00 20 00 6f 00 66 00   t. .o.f.
    00c8: 66 00 73 00 65 00 74 00   f.s.e.t.
    00d0: 20 00 30 00 30 00 34 00    .0.0.4.
    00d8: 39 00 61 00 66 00 39 00   9.a.f.9.
    00e0: 39 00 0d 00 0a 00         9..... 
    Does anyone have a suggestion as to how to try and fix this?  Right now we can't build reports.  Thanks!!

    This latest service pack fixed my issue!!  Thanks a million Stratos!  Here is the direct link to the service pack for others that may experience this problem:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    On this page, choose Crystal Reports, then choose Crystal Reports XI R2, then choose service pack and it shows up at the top of the list.
    If you are going from CR XI R1 to R2 (like I had to), you can download R2 full install from the trials, uninstall R1, reboot, install R2, use the same license number for R1.  Then apply the latest service pack (R2 SP5).
    With great appreciation,
    Tinyang

Maybe you are looking for