WPF Crystal report throws an exception when user tries to replace a file which is open during export of report.

I am using the latest version of crystal report CRforVS_13_0_10 with Visual Studio 2013.
I am working a WPF application and using the WPF crystalreportviewer control.
The steps to reproduce the exception is ,
1) Create a report.
2) Export report with sample.xls  as file name
3) Now open the sample.xls file in Excel
4) Again export the report with sample.xls  as file name
5) There is dialog which asks "Do you want to replace existing file sample.xls"
6)Click "Yes"
7) Now the exception will be thrown.
This is System.IO.IOException which is thrown by crystal report  when user tries to save the file which is already opened by user. Also there is no event provided to handle Export_click for WPF CrystalReportViewer where I can handle this.

I can replicate the issue. Not sure how we can hook into the System.IO process to capture the exception. I have not played with that part yet...
I created my own export button and wrapped it in a try/catch and this is what I get:
Which is what you would expect rather than a Null Exception error:
We'll have to do more testing to see how or if System IO errors can caught outside of CR.
Don

Similar Messages

  • I just recently upgraded my itouch from 4.1 to ios5, and updated to itunes 10.5. when isynced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod.help

    i just recently upgraded my itouch from 4.1 to ios 5, and updated to itunes 10.5. but when i synced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod. but those are the same files that i have when i was using the old 4.1 version and its syncing just fine.. the itunes advanced tab "create iphone or ipod version" is not working either so i cant convert it to be xferred and synced. what can i do to have my video files synced?

    i had the same problem but i just got a new video converter and made it convert videos to ipod/iphone format and then put them into itunes. i would suggest GOM encoder as the encoder can convert them and then once they're finished converting, put them automatically into your itunes for you. from there you can just sync them to your ipod.

  • Hi, i have a problem on a Facebook game Mafia Wars. I mark it trustable site but... everything else is working fine except when im trying to send a gift to a friend. Mozilla doesnt show me my friends on a list.

    Question
    Hi, i have a problem on a Facebook game Mafia Wars. I mark it trustable site but... everything else is working fine except when im trying to send a gift to a friend. Mozilla doesnt show me my friends on a list. What should i do..?

    Question
    Hi, i have a problem on a Facebook game Mafia Wars. I mark it trustable site but... everything else is working fine except when im trying to send a gift to a friend. Mozilla doesnt show me my friends on a list. What should i do..?

  • When I tried to Mail Merge for Data is is not exporting any data.

    HI,
    EBS-12.1.3
    DB-11gR1
    OS - RHEL 5.6
    [With my Login User and SysAdmin Login User] When I enter into to the "People -> Enter and Maintain" Form and then I press the "Export Button", there is error Alert
    Function is not available to this responsibility. Change Responsibilities or Connect to the System Administrator
    I Added the Function "HR ADI Seeded Integrator Form Functions" into the "AE HRMS Manager" Responsiblity. It is also working and Export Data icon is enable.
    Problem:
    But Problem is when I tried to Mail Merge for Data is is not exporting any data.
    ====================================================================
    Steps
    1.Move to the "People -> Recruirment" and then "Request Recruitment Letter" .
    2. Enter the New Request. as
    Letter Name "App. Letter Contract Site",
    Automatic or Manual = Manual.
    Select the Name from the LOVs for the Request for Detail Block.
    3. Press the "Export Data" icon.
    4. Integrator Page Appear with my Custom Integrator Name as "Appointment Letter - Contact Site".
    5. Select the "Word 2003" from the View List. and Reporting is Checked.
    6. Review the Folowing Enteries as:
    Integrator Appointment Letter - Contact Site
    Viewer Word 2003
    Reporting Yes
    Layout App. Letter Contract Site
    Content XXHR_MBE_APP_LET_CONT_SITE_V
    Session Date 2011/08/02
    Mapping XXHR_MBE_APP_LET_CONT_SITE_V Mapping
    7. Press "Create Document" Button.
    8. It will open the Excel 2003 and then Word 2003. But no data down download from the Form.
    9. It open the Mail Merge Letter but no Data is Display.
    ===========================================================
    Note:
    a. I am following the Steps from the Link:"http://apps2fusion.com/at/38-ss/351-generate-recruitment-letters-web-adi".
    b. From the "Desktop Integrator Manager", "Oracle Web ADI", "HRMS Web ADI", it is working fine and Dowload the Data.
    ===========================================================
    Thanks
    Vishwa

    Please try the solution in ("Function not available to this responsibility" Error While Cliclking On Forms Personalisation [ID 1263970.1]) and see if it helps.
    Thanks,
    Hussein

  • I recently purchased an upgrade to Photoshop CS6. (Dec 9 2014).  I have today downloaded the file (Photoshop_13_LS16.7z  This downloaded OK   When I tried to run the file (Winzip) I got the following message  "Installer failed to initialise. Could be due

    I recently purchased an upgrade to Photoshop CS6. (Dec 9 2014).  I have today downloaded the file (Photoshop_13_LS16.7z
    This downloaded OK
    When I tried to run the file (Winzip) I got the following message
    "Installer failed to initialise. Could be due to a missing file.  Please download Abobe support adviser."
    I tried to do that and it told me Adobe support adviser no longer exists.
    Could you please advise a solution.

    Extract it to a different location inside a dedicated folder and make sure to not destroy the file and folder hierarchy inside the archive. also run the install with sufficient user privielges and security stuff turned off.
    Mylenium

  • TS1424 I have downloaded a movie off iTunes and when I tried to press play it said"cannot open" I have received an email of my purchase but cannot watch the movie ,what do I do ?

    I have downloaded a movie off iTunes and when I tried to press play it said"cannot open" I have received an email of my purchase but cannot watch the movie ,what do I do ?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • I downloaded an update for my Safari web browser to "snow leopard". When I click on the .dmg file, a window opens up with a .pkg file but when I click on the .pkg file I get a prompt saying that it doesn't know what program to open it with. with a

    I downloaded an update for my Safari web browser to "snow leopard". When I click on the .dmg file, a window opens up with a .pkg file but when I click on the .pkg file I get a prompt saying that it doesn't know what program to open it with.

    I suspect if you're trying to open a file in 08 that's been opened in 09 the file has been updated to 09 and will not open in 08.

  • My files on pages cannot be opened, when I click on them appear" file impossible to open". All is.saved.on iCloud and iCloud drive and on my devices is the same

    My files on pages cannot be opened, when I click on them appear" file impossible to open". All is.saved.on iCloud and iCloud drive and on my devices is the same
    All iCloud systems works properly, also  WiFi and devices and the system
    Help me please

    hi there,
    try booting into safe mode, by pressing the Shift button once you hear the startup sound.
    Hope this helps,
    Chris

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • HT1420 When I tried to authorize my computer and I open itunes and go to the "store" menu I can't find "authorize my computer".

    When I tried to authorize my computer and I open itunes and go to the "store" menu I can't find "authorize my computer". 

    You clicked the word Store at the top of your computer screen by File, View, etc

  • Some report fields not displaying when users view reports in a Citrix

    Hi All, got a weird one.
    We have an app developed in MS Visual Studio 2007 that utilizes .NET crystal reports. Our users access these reports through citrix. Most of teh time, most people can view these reports correctly. SOME of the time, however, certain fields will disappear. The report still runs the same (grouping, ordering, etc) but key information is missing.
    After re deploying the reports and / or clearing the user's roaming profile then everything is good for a while, so I know it has something to do with a temp or cached version of the report. is there a way to set .net crystal reports to NOT cache AKA create new every time?
    Any assistance would be greatly appreciated!
    JOhn.

    Hi John,
    Yes and Yes.... 14 years...
    Multiple Commands and multiple data sources without being linked can cause problems if you also use SQL Expressions. If you try to add more than one data source in the Designer you'll get a pop up warning about server side grouping and SQLExpressions can not be used.
    But I don't think this would be the cause. May be a result of the option logically internal to CR but I don't think the data source would be the issue, again you said the info is there just not displayed.
    Do they have access to run your app without going through Citrix? Possibly running your app using Remote Desktop. Could rule out if it's a CR issue. I think this may be a GDIPlus problem, it is the dll that renders the page and could be dropping the objects. I know MS has been patching it lately to plug security holes....
    One option, if they can, is to use [Modules |https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip], get then to run it when the reports are working and then again when they are not and see if there are any dll differences...
    I have heard of a few other cases with Citrix and I believe it was narrowed down to being a Citrix problem and that was as far as we could take it....
    Process Monitor may help but if it's random it's a lot of info to go through to determine the cause.
    Maybe logging a case with Citrix might help also....
    Thanks again
    Don

  • Ant throws the exception when builds B2B

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP4, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool, j2sdk1.4.2_07.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    have you tried to urlencode the hash char?
    Might be interesting as well if the problem also occours when you point to a local script in your url. The script should then contain a static link to your xml file.
    cheers,
    jossif

  • JNDI: DirContext::list throws on exception when existing context is in LDAP

    I was able to import tutorial.ldif using LDAP Browser/Editor without incident:
    http://www-unix.mcs.anl.gov/~gawor/ldap/
    My LDAP now has the following tree:
    o=JNDITutorial
    ou=Groups
    5 cn entries
    ou=People
    10+ cn entries
    However, when calling DirContext::list("ou=People"), it throws the following exception message:
    javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=People'
    Here is the code:
         final static String ldapServerName = "backbone.seamonkey";
        public static void main(String[] args) {
         // Set up the environment for creating the initial context
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://" + ldapServerName +"/o=JNDITutorial");
         try {
             // Create initial context
             DirContext ctx = new InitialDirContext(env);
             // Return enum of people, but throws an exception...
             NamingEnumeration people = ctx.list("ou=People");

    I tried the same with a known LDAP service: OpenLDAP.org, and I get the same exception NameNotFoundException thrown with the following code:
         final static String m_ldapServerName = "OpenLDAP.org";
        public static void main(String[] args) {
         // Set up the environment for creating the initial context
         Hashtable<Object, Object> env = new Hashtable<Object, Object>();
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://" + m_ldapServerName + ":389/");
         try {
             // Create initial context
             DirContext ctx = new InitialDirContext(env);
             // Return enum of people, but throws an exception...
             NamingEnumeration people = ctx.list("ou=People");

  • Ant throws the exception when builds B2B (E-selling of CRM-ISA)

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

  • FRM-92101 when user tries to log on with invalid password

    Hi,
    We have the following issue.
    When users try to log on to our webforms applications with correct user name and password everything works fine.
    When they try to logon and use (by accident) an incorrect password they do not get the expected ORA-1017 invalid username/password; logon denied but a FRM-92101 - There was a failure in the Forms Server during startup ....
    Any help is appreciated!

    B.t.w. the application.log on the Oracle Application Server shows the error text:
    java.io.IOException: FRM-93000: unexpected internal error.
    Details: No HTTP headers received from runform
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534).

Maybe you are looking for

  • How to upgrade the patches in ACS 5.1

    I want to upgrade the acs 5.1 in distributed system. We have one hub/ primary ACS and two other spoke / secodary acs. I have following querry. Will it be possible to upgrad only one Secondary server.> Will updated secondary ACS will able to sych it c

  • Problem with Master Pages Incorrectly Formatting

    I have an employee whose master pages are not opening up correctly. Every time she opens up a blank In Design file, then selects to open up the Master Pages, her fonts are incorrect on several of the master pages and some of the sizes are incorrect.

  • Registering iLife '80 on Apple web site

    I'm trying to register iLife '08 Family Pack on the Apple web site. During the last step is required the code of the product... while in iWork '08 there is a card in the package with the serial number, for iLife I didn't find any serial. I tryied to

  • Tree Grid Control

    to show hierarchical list data we want to use a tree grid control like RadControl from Telerik (which is to slow for our needs) after looking for alternatives we found something like ezzylearning-asp-net-gridview-control. Ok, but we need collapse and

  • Measuring temperature with PCI-4351 & TC-2190

    Hi, I am a new LabView developer. I have a PCI-4351 data logger card and a TC-2190 thermocouple chassis. I cannot communicate with the 4351 cuz I don't know how. I've set up a channel with MAC and the hardware test works okay, but I can't find the ri