문제

I am trying to set the InitialDirectory to a sharepoint URL

        SaveFileDialog saveDialog = new SaveFileDialog();
        saveDialog.InitialDirectory = @"https://sharepoint.mycompany.com/documents/sale/0001/";
        saveDialog.ShowDialog();

However I get the following error: You can't open this location using this program. Please try a different location.

However if I copy the web address into the top of the SaveFileDialog and press return, it opens the directory as expected.

도움이 되었습니까?

해결책

It is not possible to call the SaveFileDialog on webpages,you'll need custom web parts along with SaveFileDialog to save a file from a given url.

다른 팁

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top