Excel_Work​bookClose in excel2000.​fp generates unwanted "Save As" prompt.

Hi,
I created a LabWindows/CVI application that is developed and built on:
Windows XP Pro SP3
Labwindows/CVI 2009 Version 9.1.1
Microsoft Excel 2000
The application generates a report using excel2000.fp activex functions.
We've been running successfully for over a year until yesterday when I installed the application
on another computer running Windows7 and Excel2010.
On the new Win7 computer the report is created correctly.
The problem shows up when the application tries to save the workbook:
The "Save As" dialog box pops up and prompts the operator to verify the file name and location.
This does not happen on the computer that I'm developing on.
It also runs installs and runs OK on WinXP Pro and Excel2003.
The function call that causes the "Save As" to pop up is:
        autoError = Excel_WorkbookClose ( ExcelWorkbookHandleReport, NULL, CA_VariantBool (VTRUE), CA_DEFAULT_VAL, CA_VariantBool (VFALSE) );
It's a real problem because the program can no longer run un-attended.
Any ideas on how to work around this?
Kirk

Hi Michael,
I'm trying not to switch to ExcelRpt because I have quite a lot of code that is opening several different .CSV files and pasting/ manimpulating the data into the final report.  It would be a lot of re-work.
I did try Excel_WorkbookSave(...).  It works on the Win XP system but returns an exception on the Win7 system.  Not sure why.
After much experimenting I found a solution that works on both XP and Win7:
First, after Excel_NewApp(...) I use a call to
 Excel_SetProperty ( ExcelAppHandle,              // CAObjHandle Object_Handle,
                                NULL,             ​                // ERRORINFO *Error_Info,
                                Excel_AppDisplayAlerts,  // unsigned int Property_ID,
                                CAVT_BOOL,                 // unsigned int Property_Type,
                                VFALSE            ​            // ...
This disables the prompting during the save.
Then when it comes time to save the file I use:
Excel_WorkbookSaveAs ( ExcelWorkbookHandleReport,  // CAObjHandle objectHandle,
                                       NULL,                                    // ERRORINFO *errorInfo,
                                       FileNameV,                            // VARIANT filename,
                                       CA_DEFAULT_VAL,               // VARIANT fileFormat,
                                       CA_DEFAULT_VAL,               // VARIANT password,
                                       CA_DEFAULT_VAL,               // VARIANT writeResPassword,
                                       CA_DEFAULT_VAL,               // VARIANT readOnlyRecommended,
                                       CA_DEFAULT_VAL,               // VARIANT createBackup,
                                       ExcelConst_xlNoChange,        // enum ExcelEnum_XlSaveAsAccessMode accessMode,
                                       CA_DEFAULT_VAL,               // VARIANT conflictResolution,
                                       CA_DEFAULT_VAL,               // VARIANT addToMru,
                                       CA_DEFAULT_VAL,               // VARIANT textCodepage,
                                       CA_DEFAULT_VAL                // VARIANT textVisualLayout
This is followed by a call to Excel_WorkbookClose(...) with the save arugument set to False.  (previously I had set the save to True.)
Kind of frustrating that I don't understand WHY it doesn't the old way.  But at least I have a solution.
Maybe I should just be grateful that it continues to function (mostly) from Excel2000 all the way up to Excel2010  
Also, the excel2000.fp documentation is tough to deal with.  Right-clicking a function panel displays the message: "Could not launch VBAXL9.CHM"
I was able to find the VBAXL9.CHM help-file which is written for Visual Basic but you can mostly figure out what you need.
Thanks,
Kirk

Similar Messages

  • ADOBE GENERATOR TO SAVE IN PDF?

    ADOBE GENERATOR TO SAVE IN PDF?

    This is the scenario:
    When I open any PDF document, there is only one option to save this document: "save a copy". What I am looking for is a way to connect with Alfresco server in order to choose my target folder inside Alfresco and then save the document in it.

  • After userA check out a page, edit the page and save, Sharepoint prompt userA have checked out the page

    In one of site collection at our SP2013 farm, we have "SharePoint Server Publishing" site feature and "SharePoint Server Publishing Infrastructure" site collection feature activated.
    One of user (UserA) create a page in a page library. The new page is marked as "checked out by UserA". It is fine.
    Then UserA open the page -> edit page -> key in something and "save". Then the page prompt him "The file Pages/subfolder/test001.aspx has been modified by i:0#.w|test\userA on 8Aug2014 xx:xx:xx" and ask him to choose "Leave
    this page" or "say at this page".  The date time is exactly the time he was editing the page.
    Whatever he choose will save the page and return to "View" mode (non-edit mode).
    It is not the only problem. When userA want to edit the same page again and save, it prompt him that "The page could not be saved because your changes conflict with recent changes made by another user. If you continue, your changes will be lost."!
    When userA choose continue or "check out". Follow screen show up:
    What can we do? In summary, userA cannot edit a page because userA have checked out! We have tried for different users have exactly same issue.

    We are having the same problem, the one thing we have found is if we use the Save Icon on the top right hand side of the page in the ribbon (next to follow), that Save works just fine.  What is causing the issue is when trying to use the Save Icon on
    the left hand side of the ribbon that has the dropdown options to 'Save', 'Save and Keep Editing' or 'Stop Editing'.  It doesn't matter if you just click on the main Icon or choose any of the dropdown options, they all cause issues with the pages.  
    Thoughts?
    Nick Hurst

  • "Save As" prompt won't quit

    I keep getting a "Save As" prompt after waking pc from sleep mode.  Prompt wants to save PDF file as "NsPdf" and no matter what I do--save, cancel, or "x out" the prompt returns next time I wake computer.  Restart has not worked.  Saving file as a different name in different locations does not work...and the files I save never actually show up.  Any ideas?

    I don''t know if you solved your problem yet, but i had the same problem and just figured out the problem. One of my printers was "PageManager PDF Writer". For reason there was a document stuck in its queue and it needed to be canceled. Hopefully that works for you too.

  • Some user cannot save Dashboard Prompt Selections OBIEE

    We are having issue with some users cannot able save dashboard prompt selections of themselves, even though the group they belong to has rights to it.
    This issue happens only for some users, it works fine for other users. They all belong to the same group.
    Access privilege on the Saved Selections is set for "Everyone".
    Any help will be great appreciated

    Verify if the 'My folders' for each user has been enabled or not. Usually , if 'My Folders' is disabled for that user there would'nt be any "_selections" folder created in the individual user catalog folder. Once the "My Folders" is enabled for that user via Manage Previlages , the users should be able to save the dashboard prompt selection 'for themselves and also for other too'.All the selections by the user would be saved to this folder.

  • Videos play on iPhone, but not MacBook (page generated by 'Save for Web')

    I have QT 10, and I wanted to post a video I made on a personal webpage. I used the 'save for web' option from within QT 10, and it generated the usual ugly HTML page, the MOV file, and the source files that I specified. I edited the HTML to make it look a bit prettier and added the extra content I wanted to have, and uploaded it to my webserver (page is located at http://www.mripatientsafety.com/NERHRM/Resources/NERHRM_TGilk_on_MRI_Safety.html).
    The video played when I loaded it on my iPhone, but wouldn't load / display on my MacBook in either Firefox or Safari. I thought it might be something wrong with the MOV wrapper file, so I changed the HTML to skip the MOV and point directly to the MV4 file, but the exact same symptoms persist.
    I don't do this often, but I have used the 'Save for Web' feature maybe a half-dozen times before, and I've never had this problem. At this point, I'm thinking that the problem might be:
    I'm a dummy and goofed up a section of code and didn't realize it.
    There's been updates to Firefox and Safari since the last time I tried this (perhaps a year ago) and they now are unfriendly with the way that QT 10 prepares the HTML.
    I would greatly appreciate any help that anyone can offer to help make sure that the video displays properly for the greatest number of viewers.
    Thank you in advance.

    Further update:
    I am trying to import the files to my Macbook Pro (10.10.3) via Photos, and it will not allow me to import them.
    I receiving the below error message:
    The following files could not be imported (they may be an unrecognized file type or the files may to contain valid data).
    Reason: The operation couldn't be completed. (com.apple.ImageCaptureCore error -9912.)
    The file types are .mp4 and .mov
    Any ideas or recommendations?
    I have done a Hard reset, soft reset, and tried resetting network settings.
    I have done a Manual Backup to computer and did a backup to iCloud- but I have not restored the iPhone yet, as I am not sure if the files are being backed up or not?
    I also tried using a third party transfer app (AnyTrans) to transfer the files to my computer hard drive, but it would not allow the transfer and kept skipping the videos which won't play back (even though it recognizes them - but won't play them back).

  • Generate Preview - Save for Web Crashes Photoshop

    Ok so when using Photoshop CS3 for web use i usually save for the web and preview in firefox, Now i had a few issues with photoshop, and so reinstalled my system, However since this now when i go to save for web, then preview image, Photoshop freezes during the Generate Preview.
    Any Help
    Cheers
    Alex

    Thanks Chris,
    Here is the latest crash details from Event Viewer, it also crashes intermittently when I open documents, this is a crash from opening a document today.
    Faulting application name: Photoshop.exe, version: 14.0.0.0, time stamp: 0x5176451b
    Faulting module name: ntdll.dll, version: 6.1.7601.18205, time stamp: 0x51dba4e7
    Exception code: 0xc0000005
    Fault offset: 0x0000000000027b0b
    Faulting process id: 0x2fa4
    Faulting application start time: 0x01cea063426c74fe
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: 715dd1e4-1044-11e3-8c24-7c05070d23cd

  • MEMO NO SHULD GENERATE AFTER SAVE IN FORM

    hI,
    memo no should generate automatically when we save the record in oracle form
    could u please help me in which trigger i would use the squence.
    Thanks

    hi
    If you use the code Set_Block_Property('MYBLOCK',update_allowed,PROPERTY_FALSE);
    you can't make update_allowed any item in "MYBLOCK" unless you use
    Set_Block_Property('MYBLOCK',update_allowed,PROPERTY_TRUE);. But through this command all item would be update_allowed.
    Under your condition you can repeat
    Set_Item_Property('MYBLOCK.ITEM...',update_allowed,PROPERTY_FALSE);
    above line for all displayed item of your block. And for item1 you have to use
    Set_Item_Property('MYBLOCK.ITEM1',update_allowed,PROPERTY_TRUE);
    So the code should be,
    IF :MYBLOCK.STATUS=1 THEN
    Set_item_Property('MYBLOCK.item2',update_allowed,PROPERTY_FALSE);
    Set_Item_Property('MYBLOCK.item3',update_allowed,PROPERTY_FALSE);
    Set_Item_Property('MYBLOCK.ITEM1',update_allowed,PROPERTY_TRUE);
    sarah

  • Generate and Save PDF / Append Filename with Username

    When you select a row to download as PDF in FormsCentral response table, and Save As dialog box appears, it would be nice if it appended the filename so we don't have to do this ourselves everytime.  If you forget to append the filename it will use the generic name and overwrite the previously saved file with generic name.  Seems like something Adobe could have easily programmed in, but failed to do so.

    btw:
    Timestamp would mean nothing to me when I receive 200 job applications and can't identify the applicant by filename.  It would look like gibberish at that point.  Also, you can add the option upfront to concatenate fields so later the filenames are appended with 2 fields (for example) that are selected by the form creator as part of designing the form.  In that case, whether it's a survey with 5 generic questions or a 50 question job application, each set of filenames would be unique in its own scenario.

  • Remove unwanted save as file formats

    There are so many save as options. I'd like to remove some to make scrolling down to the ones I only use such as jpeg, Tiff, PSD etc.
    Research brought up this option, but before I blunder in are there any risks to this method or is there another "more approved" method?
    Cheers
    J

    If you have no Scripting experience you could also link to Actions from a Configurator Panel.
    Configurator is available for free:
    http://labs.adobe.com/downloads/configurator.html

  • Code generating unwanted '0'

    I've written this piece of code
    for (int i=0; i<array.length-2; i++) //assigning random numbers to the array
                        array[i]  = ( (int)(Math.random() * lastNumber + 1));
                   }And I do not want it to generate the number 0 but it does. Can somebody please tell me where I went wrong? I thought even if Math.random produces a 0 and * it with lastNumber, it would still + 1 in the end but I still keep getting the number 0 generated especially in my second last and last array space.
    lastNumber is defined by the user.
    Thanks in advance to all who extend their assistance.

    I would also do this:
    ((Math.random() * lastNumber) + 1)); to make sure it does what you expect. I don't know whether this matters here or not and I don't care to look it up. It's bad practice to rely on the order of operations when the result isn't obvious.

  • Generate and save w3d

    Hello.
    There exists the function "savew3d". It allows you to save a
    w3d that you could have created dinamically.
    But it only works on projectors.
    I would like to do it on servers, that is, on a website.
    If I am in my 3D world on my website, I would like to place a
    button to save the w3d, either on your computer or on the server.
    Is this possible?
    If so, how?
    Thank you very much.

    First of all, you cannot "save" (upload) a file on a server
    without a server-side script (PHP,CGI,ASP,etc).
    Secondly, for security reasons, "savew3d" is disabled in
    shockwave mode.
    It works in authoring & projector mode only.
    cheers

  • Using RSLs generates unwanted dialog for other Flex developers

    I posted earlier about this, but I can be more specific now
    about the problem. Other users with the debug version of Flash see
    a dialog asking 'Where is the debugger of host application
    running?' EVERY time an RSL is linked at runtime. So if I have two
    libraries being referenced by an application, the user sees it
    twice.
    I have checked very thoroughly to make sure I am using the
    release version of the application. I am using FlexBuilder, and can
    see no way of disabling debug information for a library project.
    This is a shame, because the idea of RSLs is great.
    Is there any way of avoiding this dialog by usine command
    line compilation, or do I just have to abandon RSLs?

    Modules do not have a preloader like an application does. You can track the progress of the module being loaded but not the progress of its RSLs. If you would like to have this feature please create an enhancement request in the JIRA bug database. Thanks.
    -Darrell

  • Reverse Proxy + Policy Agent generates unwanted Basic Authentication

    We have a policy agent installed on the SJWS 7.0u1. It's configured as a reverse proxy to a server running on another port on the same machine as the web server. The policy agent catches the request and redirects to the access manager, which authenticates fine. The access manager then redirects back to the web server, which then issues presents the basic authentication dialog. (We did not configure it for basic authentication).
    In a previous post I was directed to check my DNS entries. Both servers can resolve each other without problem. I can type nslookup server.practicegreenhealth.org, nslookup server (these are the web server addresses) and they both resolve to the correct ip. I can type nslookup access.practicegreenhealth.org and nslookup access and they both resolve to the correct IP.
    I had the application deployed as a JRuby application within the SJWS's servlet container and the setup worked fine. I switched back to using SJWS as a reverse proxy to application running as its own instance and am now presented with the basic auth dialog. I can hit the application fine both from the box it's running on and if I disable the policy agent. It's just the combination of the reverse proxy configuration + the policy agent that doesn't seem to work.
    Edited by: phoehne on Jun 23, 2008 12:40 PM

    what does the server error log say ? you might want to increase the log level to finest (config/server.xml change info to finest) and restart and look at the server error logs. this could provide us some insight on what is happening. most likely some config parameters in obj.conf need to be fine tuned.

  • Entering calendar event generates unwanted email

    Every time I add an event to my calendar, I get an email. How do I stop this?

    Update: I found that if I right-click on the Automator calendar within the Calendar app in OS X, I can select Get Info > "Ignore alerts" - this prevents the alerts popping up in the notification area on OS X. But this fails to prevent the alerts from popping up on iOS, and also prevents the actual Automator script itself running on OS X which defeats the whole purpose.
    I can't see a way to configure the event to disable alert pop-ups on all devices while still running the Automator script.
    Also - I don't actually need the Automator calendar to sync over iCloud anyway, because the script only runs on my Mac, but I can't see a way to turn off iCloud syncing just for this calendar.

Maybe you are looking for

  • Creation of control file

    Hi friends, I want to do homogeneous system copy. I want to know the steps in homogeneous copy, and how to create control file from source system for target system. And after that what activity is required . thanks Regards Manoj

  • UTF-8 to UTF-16

    Hi, Currently XI is pushing the data to Siebel in UTF-8. But Siebel wants only in UTF-16 format. How can I change this in XI. Thanks Sudheer

  • How to remake image in high quality?

    Hi guys, i really need some help, i need this extremely low quality image remade so its high quality. Doesn't have to be EXACTLY the same but pretty close a transparent background (so a PDF) would be so amazing! Any help would be greatly appreciated!

  • Why are pdf exports so large?

    I created a slide show with keynote, exported the slides, they came out to be 5.4 Mb. I then exported the slide show to powerpoint and then did the same from powerpoint. The resulting slides were 984 kb? Umm, 5.4 Mb is way to large to be emailing aro

  • Q:  how to highlight PDF created via scanner?

    hi: 1. i'm going to assume that this is a very basic question but i can't figure out how to highlight text in a PDF file that i created via flatbed scanner. 2. i have no problem highlighting PDF files that i may have created via the web, but for some