How to delete a connection?

I am trying to create a snapshot from a full workbook downloaded from Excel services web service.  Excel services does not preserve page breaks so I am using OpenXML sdk to remove data connections from the workbook and copy/paste cell values over formulas.
All is well except that after deleting connections the workbook throws the "unreadable content" error when the user opens it in excel.  The workbook still opens and the repair message says the "connections.xml" file was repaired.
 The code I am using is:
     For i As Integer = wbPart.ConnectionsPart.Connections.Count - 1 To 0 Step -1
                   Dim conn As Connection = wbPart.ConnectionsPart.Connections(i)
                   conn.Deleted = True
             Next
This works fine to delete the connections, but obviously something else is required to maintain workbook integrity.  Is there another attribute of the connection node I should be changing or some other part of the workbook to update after deleting a
connection?  Thanks in advance,  Marcus
scholz

Hi scholz,
After you remove the connections, you'll also have to remove the references to these connections. For example, if you create a QueryTablePart and add a QueryTable which refers to a ConnectionId. You need to remove this QueryTable along with the Connection so
that the Excel application can properly resolve the spreadsheet.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to delete "Other" partition in yellow color that appears when I connect my devices to the laptop, it's a giant one (4 GB)

    Hello, I would like to know how to delete the yellow partition named "Other" (in italian "Altro") that appears when I connect all my devices to the laptop. This partition in Ipad comes with 4 Gb that for an instrument of 16 seems a bit too also because it far exceeds anything else. So far not been able to find useful information and is a very common problem. Thank you.

    Thank you very much, but it's not so simple. I read somewhere in this same forum that:
    I quote: "That large of "other" is corrupt data. Try restoring your phone from backup first, followed by syncing your content back to the phone. If restoring from backup does not fix things, you will have to restore as a new device to get rid of it. There is no way to directly delete it, other than restoring your phone."
    First of all it's terrible, (but we know that itunes is very far to work properly, it's a store) and how many times a day we should make a restoring? and if it does not have we to buy another device? I cannot believe that there aren't other solutions.

  • I got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    Under Network Preferences, select the WiFi
    click on "Advanced..." button
    Select the network you want to delete from the list and click on "-"
    Click "Ok"
    Click "Apply"
    Well done ;-)
    You may also want to delete the wireless key from Keychain.
    Open Keychain, seach for the old wifi network name, slect it and click delete

  • I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?

    I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?
    Also where exactly on the laptop is teh data stored.
    Thank you!!

    go to 'Edit' in the menu bar. Then choose 'Preferences'.
    you'll see a pop-up and there's a tab called 'Devices' there. If you click that, you will be able to check a box that says 'prevent automatic syncing for iPods, iPads and iPhones' or something like that.
    Hope this helps
    NB: if you don't even see the menu bar that has options like 'File, Edit, View, etc', first click the black/white square button on the top left of your screen, and then click 'show menu bar'. It should pop right up.
    Good luck

  • How to delete connections for modules in OWB?

    Hi all,
    When we create an Oracle Module in OWB, we can create and specify a connection for the module. But I don't know how to delete or modify those connections. Anyone can tell me a method. Thanks a lot.

    Hi Nikolai Rochnik,
    Thank u. But I think u misunderstood me. I'm not refering to OWB Module locations. Instead, I'm referring to Module Connections. That is:
    /Databases/Oracle/<Module>/Properties/Connection.
    When u enter the screen, u can find the "new DB Link..." button. Now I know that the connections are in fact db links in the design time repository db. So we can modify them using SQL.

  • I have an 8g Ipod Touch and I accidentally recorded some video on it.  Now I don't know how to delete it.  When I connect to Itunes, there is no 'Video' Folder, so I can't even see/find the videos to delete them!

    I have an 8g Ipod Touch and I accidentally recorded some video on it.  Now I don't know how to delete it.  When I connect to Itunes, there is no 'Video' Folder, so I can't even see/find the videos to delete them!  I am not very experienced with Itunes, please help me.

    On the iPod go to the Photo app and then to the Camera Roll. Tap on the the video yu want to delete and then tap on the trash can icon in the lower right.

  • How to delete meeting through API for Using Adobe Connect 8 Web Services

    Using Adobe Connect 8 Web Services support "Create meetings" API to create a Adobe Connect meeting.
    But I can't find "Delete meeting" API similar to delete meeting,Could you tell me how to delete meeting through API.
    Thanks!

    You must have used sco-create to create meeting. To delete a meeting, use sco-delete API call.
    Find its documentation here.

  • How do I get my Iphone 4S to sync to my compute?.  Comcast deleted the connection.

    I was connected to my computer with my Iphone 4S.  Comcast deleted the connection.  How can I get the Iphone to get hooked up to my computer to sync?

    What do you mean Comcast deleted the connection? How can comcast delete the connection between your phone and iTunes?
    You're going to need to clarify. This makes no sense.
    Just plug your phone into the computer you are syncing with.  What happens when you do?

  • I have just started using iPhone 4s and cannot find out how to delete unwanted photos. I have used iPhone 3 gs for last 2 years and had no problem with this. Phone is connected to i cloud. Help please.

    I have just started using iPhone 4s and cannot find how to delete photos. Have used iPhone 3 GS for last 2 years and not had this problem. I have iCloud for my Apple family and don't know if this is causing problem. Help please.

    Log in to icloud.com with your Apple ID. Once you're logged in, click on your name on the upper right corner. Click Advanced and then Reset Photo Stream. This will delete all your photos in the album Photo Stream in your iPhone 4S so make sure you have backed up (copy to Camera Roll or new folder) all those that you want to keep.
    This is the only way to do it with iOS 5 (not the beta releases)
    http://iphone-and-i.blogspot.com/

  • How to delete file on ftp server

    hello,how to delete file on ftp server?thank you!

    I was trying to hint to the fact that you gave no where near enough information.
    Have you already written anything? Such as software that will connect to an FTP server?
    Are you using a 3rd party package?
    Are you doing it by hand, using sockets?

  • My apple and itunes id are synched but my icloud is an old apple id and I can't figure out how to delete it and change to current Apple Id. i tried to delete it but I have to have the oassword and the knes I know of are not working. Thanks for any he

    I have an iPad 2 with most recent update 8.1.3. I have been experiencing connection problems, wifi dropping all the time. I get the prompts to enter passwords for iCloud and i Tunes all the time. I finally synched my Apple ID with my iTunes ID but the iCloud is still connected to an old email. I cannot figure out how to delete it as iCloud is not accepting the password I am using. I go round and round with changing passwords, etc. What am I doing wrong? How can I sync everything?

    Hi, Abril_Perez17.
    This may be related to a new feature embedded in iOS7 that shows all purchased music by default.  Go to Settings > Music, then turn off Show All Music.  See if the issue ceases once the feature has been disabled.  This information is located on page 63 of the user guide below. 
    iPhone User Guide
    Regards,
    Jason H. 

  • Photos on iPad and iPhone as Events that i have already deleted in iPhoto and can't find out how to delete?!

    Photos on iPad and iPhone as Events that i have already deleted in iPhoto and can't find out how to delete?!

    I had an album on my iPad that didn't have a delete option. I was able to finally remove everything by connecting the iPad to iTunes and going to the Photos tab. Select sync photos. It will ask you if you want to replace all photo on iPad with sync photos. Apply the setting and then un-sync photo again. It will then remove all photos on iPad starting with a clean slate.
    Be sure to backup all your photos before doing this. Hope that helps.

  • How to delete a file in Keynote Remote for iPhone4?

    Any one know how to delete a file in Keynote remote app for iPhone4? I uploaded a Keynote file from iDisk to my iphone and I can't delete the file. The file does not show up when I connect my phone to iTunes.
    I also cannot connect my Iphone to Keynote anymore because of this file.

    The file is actually in the Keynote app and not the Keynote remote app for iPhone.

  • How to delete a MOV file off of my iPad

    I just bought a Nikon S8100 camera, it can shoot video as well. I shot a couple of test videos, and left it in 1080p mode. I used my camera kit to connect it directly to my iPad, and uploaded the pictures I had taken, and the two videos. They all load into the Photos app on the iPad, but the videos won't play. I figured out that the format was not supported on the iPad. When I lower the resolution to 720p or lower, it will play on the iPad, and can be managed there. My problem is that I can't figure out how to DELETE the 2 .mov files I initially loaded. When I am in the Photos app, the thumbnail just say "MOV". Unlike every other item, this one I cannot select, so I can't delete. I've tried syncing through iTunes and accessing my iPad files that way, but there does not seem to be an option there to delete.

    I had the same problem with my Kodak FX3 (Playsport) camcorder.  I uploaded some .MOV files to my iPad but it won't play them and I can't seem to delete them.
    These files don't show up in the Video app so we can't use that to delete them.
    Any suggestions?  Anyone?
    Thanks

  • How to delete tune without iTunes

    Hi,
    I have a problem, I have some old podcast which I like to keep on my harddrive. Then I got the ipod, so I want to store the podcast episodes there. But dragging direct from Finder to ipod show me it copied but didn't appear under podcast. I found out after a few trial and error that I should have added the podcast to iTunes before dragging into ipod. So...
    Good : Finder -> iTunes Podcast -> iPod
    Bad : Finder -> iPod
    So now those files I drag direct from finder into ipod are in the ipod but I can't get rid of them, cause they don't show up in the iTunes list. It shows up in Senuti and iPodDisk, but both don't allow me to delete the song. Now I can't drag those podcast episodes in to ipod from iTunes podcast anymore. It somehow recognise that the file exist on the ipod but wouldn't list it on the podcast.
    So, back to the question, How to delete tune without iTunes?? thanks

    Did you try using the Finder? I'm trying to accomplish similar management tasks. Finder seems far superior to itune management, for podcasts management. This might work-- First quit itunes.
    Use a finder window, not spotlight, search itunes and single-click on any folder by that name. Notice which of these files is in your startup disc (in case you have other bootable drives connected)-- Notice the little icons on the bottom of the Finder window. Double click on "iTunes Music" at the window bottom. A new Finder window should open. I recomend the list mode, selectable at the top left of Finder window. Now you should be able to view all your itune- contents on the computer. It seems these files can be deleted, but one must remeber to empty trash before going further. Unfortunately this approach won't allow adding new folders that will show up in itunes.

Maybe you are looking for