Saving to Windows Phone Documents Folder

Greetings,
I tried to look through the forum but could not find anything on saving to the Windows Phone Documents folder. From what I researched online on the Windows Phone 8 it was not possible to do this as Microsoft had blocked the ability to do this due to security
reasons. But on the 8.1 release they allowed this area to be accessed by third party apps. Is this correct?
If so how do I go abouts saving to the documents folder. Basically my app is really simple I just input a couple of words into different text boxes and that should save to a text file. How do I go abouts doing this.
I tried doing this
StorageFolder local = KnownFolders.DocumentsLibrary;
However, when I run it the program stops at this spot:
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
            UnhandledException += (sender, e) =>
                if
(global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
#endif
What am I doing wrong. Thank you in advanced!!

I apologize for that I looked at it quickly on my phone. Ok so I managed to get it to save to a file. The problem is now is I want to be able to append to that same file. Is that possible?
Here is what I have so far:
using SDKTemplate;
using System;
using System.Collections.Generic;
using Windows.ApplicationModel.Activation;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.Storage.Provider;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace FilePicker
    /// <summary>
    /// Implement IFileSavePickerContinuable interface, in order that Continuation Manager can automatically
    /// trigger the method to process returned file.
    /// </summary>
    public sealed partial class Scenario4 : Page, IFileSavePickerContinuable
        MainPage rootPage = MainPage.Current;
        public Scenario4()
            this.InitializeComponent();
            SaveFileButton.Click += new RoutedEventHandler(SaveFileButton_Click);
        private void SaveFileButton_Click(object sender, RoutedEventArgs e)
            // Clear previous returned file name, if it exists, between iterations of this scenario
            OutputTextBlock.Text = "";
            FileSavePicker savePicker = new FileSavePicker();
            savePicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
            // Dropdown of file types the user can save the file as
            savePicker.FileTypeChoices.Add("Plain Text", new List<string>() { ".csv" });
            // Default file name if the user does not type one in or select a file to replace
            savePicker.SuggestedFileName = "New Document";
            savePicker.PickSaveFileAndContinue();
        /// <summary>
        /// Handle the returned file from file picker
        /// This method is triggered by ContinuationManager based on ActivationKind
        /// </summary>
        /// <param name="args">File save picker continuation activation argment. It cantains the file user selected with file save picker </param>
        public async void ContinueFileSavePicker(FileSavePickerContinuationEventArgs args)
            string complete = "";
            string office = "";
            string revenue = "";
            string nps = "";
            string answer;
            answer = NotesTxt.Text;
            StorageFile file = args.File;
            if (file != null)
                // Prevent updates to the remote version of the file until we finish making changes and call CompleteUpdatesAsync.
                CachedFileManager.DeferUpdates(file);
                // write to file
                await FileIO.WriteTextAsync(file, answer);
                // Let Windows know that we're finished changing the file so the other app can update the remote version of the file.
                // Completing updates may require Windows to ask for user input.
                FileUpdateStatus status = await CachedFileManager.CompleteUpdatesAsync(file);
                if (status == FileUpdateStatus.Complete)
                    OutputTextBlock.Text = "File " + file.Name + " was saved.";
                else
                    OutputTextBlock.Text = "File " + file.Name + " couldn't be saved.";
            else
                OutputTextBlock.Text = "Operation cancelled.";
        private void SaveFileButton_Click_1(object sender, RoutedEventArgs e)

Similar Messages

  • Saving always goes to documents folder

    Hello,
    I've posted this problem before but haven't received a fix for it yet. Perhaps I'm just explaining it wrong. Simply put every time I go to save a document, instead of going to the last folder used in the program it always goes to the documents folder of the user. Also the last folder does not even show up in the drop down of the save window, only the path to the documents folder. The various programs do remember recent documents opened. But the "open file" always goes to documents, not last folder. This was not always the case, but has been for the last 6months or so and I can't seem to correct it.
    I've tested the system by adding a new account and seeing if it happen there also or if it is just the one account. But the same situation exists, so it seems to be universal to this computer.
    Based on previous threads this is what I've attempted so far:
    Deleted in: (myhome)/Library/Preferences
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    com.apple.launchservices.plist
    com.adobe.xxxx.plist
    com.macromedia.xxxx.plist
    ALSO Deleted : /library/caches/com.applelaunchservices-xxxx.csstore (all)
    Then restarted computer. This however has not resolved the problem. I know all the work arounds of "put folder in sidebar" and what not, but that doesn't fix the problem. I want to fix this problem.
    thanks
    mark

    I don't know what else you can do, nor why dialogs aren't working correctly. The Open and Save dialogs in most applications are now handled by Apple's Navigation Services, although developers can add some custom things to this basic arrangement. See this article:
    http://developer.apple.com/documentation/Carbon/Conceptual/ProvidingNavigationDi alogs/nsxconcepts/chapter_2_section2.html
    Note especially this paragraph:
    "...two types of dialogs can appear—a minimal Save dialog and a full Save dialog. The minimal Save dialog, shown in Figure 1-2, is displayed the first time a user saves a document in an application. This dialog provides a text field for the user to enter a filename. Applications can optionally specify a default filename to display. The dialog has a Where pop-up menu that, by default, suggests the Documents folder for the user. The user can open the pop-up menu to choose from locations previously set in the Finder sidebar or a recently-visited location. If none of those locations are acceptable, the user can click the disclosure button to the right of the text field to access the full Save dialog."
    AFAIK the user choices made are then saved to the application's plist file. A list of Recent Items is also written to the com.apple.finder.plist and to the com.apple.recentitems.plist. So if you tossed those two plist files and the application's plist file, plus the sidebar plist for good measure you should get back to the default state. You would then open a dialog, expand it to full navigation view, pick new stuff, and these changes would be written to the respective plists. If this is not happening--if the plists are not being written to--I'm afraid I don't know what else you could do.
    If you've never created a test user you might do so (in System Prefs/Acconts), log in to the test user and do some opening and saving (remember you will be at the default of the simple window with the Documents as the usual default). After you've done some open and save actions see if the test user now works correctly, with your actions remembered when you go back after a logout/in. If that is the case, then there is something odd going on in your regular account.
    Francine
    Francine
    Schwieder

  • Content of my document folder being delete in windows 8,1

    From couple of months all saved data in My Document folder is being delete repeatedly, its like the folder is flushing automatically. Please help me with this. Thank You

    Or do you have any Synchronization Settings? I mean your document folder might sync with another folder (it's content is empty ) automatically in the background.
    And tell us something about this document, is it in a local place or a network place ? Does this issue only happen in Document folder?
    And if this is a redirected folder, then check this policy Move the contents of [FolderName] to the new location  . This setting moves all the data the user has in the local folder to the shared folder on the network.
    You can find more information about fodler redirection in the following link
    http://technet.microsoft.com/en-us/library/cc732275.aspx
    Yolanda Zhu
    TechNet Community Support

  • Hello and HELP! Over the years I have saved Invoices in my Documents. I have just tried to open them and all I am getting is " cannot be opened, Invoice**** is used by another user, do you want to make a copy?" That's on all my invoices.

    Can someone help please.
    I have just "lost" ( cannot open) all my saved Invoices in the Document folder.  All I am getting is " cannot open, Invoice ** is used bey another user, do you want to make copy? " That doesn't work either. I can't get anything on the time capsule either. How can I reset to an earlier time? Or what can I do?
    Thank you

    Did you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.

  • Final Cut Pro Documents Folder

    Hi,
    I have been happily using Final Cut Pro for a while now. However, the one thing that has always ****** me off is that god **** "Final Cut Pro Documents" folder that keeps on saving itself in my "Documents" folder. I do not understand why this is happening, seeing as I have a separate drive that is set as my scratch disk. However FCP insists on planting a folder right in the middle of my "Documents" folder on my main drive. I cannot get rid of this folder either, every time i move it or delete it, it just keeps coming back. The most irritating part is that the folder does not even have any contents.
    I had a similar problem with microsoft saving a similar folder in my "Documents" folder. However, I was able to move that one rather easily.
    So, does anyone know where I can move this folder so that it will stop recreating itself in my "Documents" folder.
    Please help,
    Tyler

    Everything is working properly, and there is another FCP Documents folder on my second drive (Scratch Disk)
    Is your scratch disk set to your primary drive?
    I think the only reason it is creating this folder is b/c my scratch drive is set to my secondary drive and it wants to have the FCPD folder on my primary incase my secondary is not available.
    So i want to know if i can move this folder and keep it moved.

  • Office 2013 applications cannot be made to show the "Documents" folder when opening and saving files

    (Windows Server 2012R2 and Windows 8.1 PRO)
    We are redirecting the user's "Documents" folder to the network (using Folder Redirection). The OS hides this fact however, and most applications simply see the "Documents" folder when opening or saving files, including Office 2003.
    Office 2013 however displays the actual path, which in this case is:
    \\sever1\redirect$\username\documents
    Even if you forcibly set the "Default local file location:"  in the Options Save area to the 'Documents' folder in, say, Word, Word immediately converts the local path to the network path.
    Is there anyway to get Office 2013 to follow the virtual path? All of other apps follow it and expose the users only to "Documents".
    Thank you so much.
    Dana

    There's nothing in my FAQ concerning screen savers, so I'm unsure why you decided to take that approach. From your description, it looks like you only tried a few of the suggestions before throwing in the towel. That's fine, it's your call.
    I don't have the problems you described with 10.4.7. Usually when folks have problems after an update, these are caused by either installing an update on an already-corrutped system or they've installed third-party applications or hardware that have been rendered incompatible by the update.
    Before installing software updates, you may wish to consider the advice in my "Installing Software Updates" FAQ. Taking the steps therein before installing an update often helps avert problems and gives you a fallback position in case trouble arises.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • After saving a file using Excel 2010 in the My Documents folder, it cannot be found using the open button in Excel 2010

    When certain files are saved using Excel 2010 to the My Documents folder, they cannot be found by using the Open button within Excel 2010.  But the file is always found using My Computer and following the path to My Documents.  What is
    even odder is that if I do a "Save As" within Excel and rename the file to the same name but with a "!" at the beginning of the name, it will then show up in the Excel Open window.  There doesn't seem to be a distinct pattern as to
    when the file can or cannot be displayed by the Excel Open button.
    I am using Windows 7 64bit along with Office 2010 64bit.  Windows has current service packs and updates.  There are perhaps 200 - 400 Excel files in the My documents folder. Some of them are .XLS and some are .XLSX.
    William Fearn

    Hi,
    Do you mean that you can't find the Excel file when you click Excel->Open->My Documents folder? 
    Do you use the other folder path to test?
    Dose the issue occur in other Office suits (Word, Power Point)?
    Do you get some error message, like "Windows cannot find 'FilePath\FileName', Make sure you typed the name correctly, and then try again."?
    Please try the following methods:
    Method1:
    1. Go to the registry. Click START, and in the RUN command line type REGEDIT and hit ENTER or click OK.
    2. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
    3. Double click on the (Default) instance over to the right. Right now this probably says something like:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    Change this value to:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    4. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command
    Again, double click the (Default) entry to the right and change
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    to
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    Note : Please backup the registry key before you modify.
    Method2:
    Click the File tab, and then click Options.
    Click Advanced, scroll down to the General
    section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the
    General area.
    Thanks
    George Zhao
    Forum Support
     Come back and mark the replies as answers if they help and unmark them if they provide no help.
     If you have any feedback on our support, please click "[email protected]"

  • I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    Has your carrier been having issues with Call Display? Do the telephone numbers come up when people call, or does it just show 'Unknown Number' or 'Blocked' ?

  • Can't drop files from Downloads or Documents folder on the dock to any other Finder window

    I have been downloading some files and dragging/dropping them into another folder for the last 30 minutes or so. They're downloading to the default Downloads folder, and then I've been dragging them from that folder in the Dock, which opens like a fan, and dropping them into another folder (my Documents folder) in an open Finder window.
    All of a sudden, I can't drop files from the Downloads fan anywhere else. I also tested, and can't drop files from my Documents folder or my Screenshots folder, two other folders that are on the right side of my dock and open up like a fan.
    I can drag them, but when I hover over the folder that I want to drop them into, nothing happens. If I let go, they just stay in their original folder (the Downloads folder).
    So basically something happened with the folders on the right side of the dock that's not letting me drop the files anywhere else from the Dock. If I open the folders in their own Finder window, I can drag/drop just fine. It just won't let me do it from the Dock as I had been.
    Any ideas? I've tried restarting as well as sleeping/waking as I saw recommended on here, but no luck.

    Open Finder, press Option key, select Go > Library, open Preferences, delete com.apple.dock.plist and reboot

  • User cannot access redirected Documents folder, but can connect to share in Windows Explorer and access folder on server

    I am in the final stages of a cross-forest migration.  Users have Windows 7 workstations with redirected folders on a Windows Server 2012 box running in the old forest.  User accounts were not migrated.  The accounts in use have always
    been in the "new" forest.  One of our challenges was the large volume of data in redirected folders.  I made sure users in the target forest had continued to have access to their redirected folders in the old forest and robocopied
    the entire users share, copying the permissions with the files.  By doing incremental robocopies, we can get a final copy done now in about six hours.  The plan was simple: copy the files, do an incremental copy every night, on the night of the cutover
    change the folder redirection policy Documents path from
    \\oldserver\users\%USERNAME% to
    \\newserver\users\%USERNAME%. The policy is configured to NOT copy user files from the existing folder to the new redirected folder.  Everything was going well until I tested the policy change.  After the folder redirection policy is updated
    and applied, the user cannot access the private Documents folder.  For example, user Chester Tester logs on as ctester.  I open Windows Explorer and click the Documents shortcut.  I see one subfolder, which is subfolder of Public Documents. 
    So I can look at Public Documents but when I click on the Documents folder (Under the Documents library link) I get an access denied error.  Now for the kicker, if I open another Windows Explorer window and edit the address bar to
    \\newserver\users\ctester, I can navigate the Documents folder tree and see my thousands of documents. What the ....?
    I'm hoping this is something really simple to fix!
    TIA

    HI Vivian,
    Thank you for your reply.  Yes, the path in Group Policy Folder Redirection Root Path was updated to
    \\NEWSERVER\users.  I had planned to point this to the distributed file system, so the first used was actually
    \\domain\dfs\users.  To simplify things I have backed off to copying to just a normal share
    \\newserver\users. 
    We are using BASIC folder redirection and we create a folder for each user under the root path. 
    We did not want the policy to move content, as we were seeing users requiring 15-20 minute logon times  (or higher) after the policy is changed.
    Grant the User exclusive right to Documents - Disabled
    Move the contents of Documents to the new location - Disabled
    Related folder settings
    Video - Follow Documents
    Music - Follow Documents
    Pictures - Follow Documents
    Now when I change the folder redirection from old server to new server I now have TWO My Documents folders in the user's redirection folder on the server.  The redirected Documents points to an empty folder set.  The copied folders with all user
    data are there, but folder redirection refuses to recognize the original folder.
    I am looking at the full view of the folder, nothing hidden, so I'm wondering how a folder can have two subfolders with the exact same name.  For now, I just want the redirection to move from the old server to the new server properly.  I deleted
    the new My Documents folder, rebooted the user's workstation and tried again.  The behavior repeats itself, i.e., a new My Documents folder is always created when the redirection policy is changed from the old server to the new server.  The environment
    has about 1500 users with approximately 1.3TB of data in the redirected Documents folders.  OUCH!

  • I have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows

    i have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows a couple of folders to click upon to view pictures. when i open the pictures folder and delete all the pictures , even then a lots of unclickable windows icons remain
    i have attached the picture of that window's screenshot. plus when ever i try deleting them it says,
    please help!.. i shall be really thankful.
    iPhone 5s, iOS 8

    I have the same issue and it has to do with iOS 8.2
    Apple, please mend this ASAP. Really stupid change since iOS 8.1
    If you for some reason must have many different folder make sure that you put the newst photo in the last folder so one can easily find a photo when I don't want to copy all photos to, let' say, my friend computer.

  • When I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    when I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    I restored the phone so had no apps on it at all and there was still this certain amount of space used up by documents ! I've already had it in to the apple store and they didn't seem to have a clue either ! Ugh ! Wouldn't mind so much if the phone was free with a contract but I actually spent 450 quid buying this phone and it's always full of "nothing" so virtually unusable

  • I need a word document generator, that has a bar to enter equations similar to the Microsoft word program. The document needs to be able to be saved as a word document so my professors can open it in windows. HELP!!

    I need a word document generator, that has a bar to enter equations similar to the Microsoft word program. The document needs to be able to be saved as a word document so my professors can open it in windows. HELP!! My computer is 2012 iMac desktop

    Not sure if any of the alternatives to Office (word) for Mac are near the feature set you require.
    There are a few listed here at this page, in some ways aren't exactly like Office or Word; the feature you seek may (or may not) exist. I'd try & see about neooffice compatibility...
    http://www.digitaltrends.com/computing/best-microsoft-office-alternatives/
    http://www.neooffice.org/neojava/en/index.php
    http://www.libreoffice.org/
    Good luck & happy computing!

  • HT2509 I have installed a font from the internet into Font Book and saved it in my Fonts folder under my user library. How can I make it available in Word to type a document?

    I have installed a font from the internet into Font Book and saved it in my Fonts folder under my user library. How can I make it available in Word to type a document?

    Font Management in OS X

  • Some Media Card folders within 'documents​' folder not visible in Windows XP Pro SP3

    I have tried renaming these folders on the device (eliminating '.'s and generally shortening the folder names) and then connecting to a Windows machine again afterwards, however, I have two problematic folders (within the 'documents' folder) that are still not visible in Windows.
    One thing that is kind of troubling is that I thought I noticed that when I was moving files out of the 'documents' root directory (only place I can put files from the Windows machine [while connected] because I can't see the target folders in Windows) on the device to one of the problematic folders (again, because I cannot accomplish this in Windows), the original full-length folder name was still being referenced in the path displayed in the intermediate confirmation dialog.
    Does it matter whether the folders are created within the (connected to) Windows environment or done on the device?  Are there folder name length considerations or illegal characters?
    I have created (in the Windows environment, while connected) some rather long folder names (including ''' & '.' characters) within the 'pictures' directory and have no trouble seeing them later in Windows.
    What could be going on here?
    Thanks, FFF

    ... bump ...

Maybe you are looking for