Opening a document from a SharePoint URL
Using the SDK's instructions on how to open a file, I cannot find the right way to open a file from a SharePoint URL
I understand it relates to the ASFileSys, and I thought ASGetDefaultFileSysForPath would give me the right type, but I cannot figure the right combination of pathType to get the right ASFileSys.
Whatever I try, I get the below error
Code below:
ASAtom pathType = ASAtomFromString("CString");
ASText titleText = ASTextNew();
ASTextSetPDText(titleText, "This PDF was opened by using the Acrobat SDK");
ASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, sharePointUrl);
ASPathName pathName = ASFileSysCreatePathName(fileSys, pathType, sharePointUrl, NULL);
AVDoc myDoc = AVDocOpenFromFile(pathName, fileSys, titleText);
Anyone able to give me a push in the right direction?
Are you able to open a sharepoint URL at all (i.e. with the UI, somehow)? If so, you may be able to write some test code in a plugin that looks up the code for the relevant ASFileSys. I have a feeling that ASGetDefaultFileSysForPath serves a very special and limited purpose.
Similar Messages
-
Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications
One of our Managers encounters the error 'A problem occurred while accessing the Office document cache. Do you want to repair this problem?'
Then When he says yes it give a warning that the cache will be backed up and replaced
Then it says 'A new office document Cache has been created...'
Then it loads this cache with an error
Then After all that the next time he tries to open the document it says is encountered "Sorry, we couldn't open 'URL."
We have Reinstalled office 2013 on the users PC repaired the cache numerous times
Followed - http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
Repair installed office 2010 and office 2013 again
The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
Office 365 said
Reply by Rachel Zhang MSFT Support
Hi Alex,
From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
the support engineers will help you with the issues about Office client:
Microsoft Office Community:
http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
Microsoft Office Community:
Feel free to sign in to the Office community and click to post the question with the relevant information.
Office team said
Hello Alex,
Thank you for posting your query in Microsoft Office Community.Check if other excel works fine
Do you have any script\macro in excel file
Check if all application pool on all servers are running
both office and IE should be same build (64 or 32 bit)
what is the error message in ULS log and Event viewer
If this helped you resolve your issue, please mark it Answered -
Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011
I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
of a SharePoint question so I'm going to try here as well.
We just discovered an issue where a user logs into a SharePoint site using Forms based authentication. When clicking on an Office file they get
'Sorry, this site hasn't been shared with you' message:
The user can download the file and can also open the file within the browser (Office Web apps). This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
When logging into this same site as an internal user I am able to open the file just fine.
I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.
I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site. When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
servers are supported' message. If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
Any ideas??Hi Szamir,
As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
Make sure that the user has permission to view the documents in the site.
Please select "Sign me in automatically" when you sign in the login page.
More references:
https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Getting error while opening Excel document from SharePoint site
Hello All,
I am getting following error while opening Excel document from SharePoint site.
This issue appears when we open Excel document from Windows>> Run using below mentioned command:
Excel.exe "{File Name}"
If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
Thanks,
Amit Bansal
Amit Bansal http://www.oops4you.blogspot.com/Hi Amit Bansal,
Thanks for posting in MSDN forum.
This forum is for developers discussing developing issues involve Excel application.
According to the description, you got an error when you open the document form SharePoint site.
Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
SharePoint 2013 - General Discussions and Questions forum.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thanks for your understanding.
Regards & Fei
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. -
Why do I have to logon each time when opening a office Document from a SharePoint 2010 Library
Hello guys,
I'm facing some design issue with sharepoint 2010 and Microsoft office, hope you can help me to fix this.
Why do I have to logon each time when opening a office Document from a SharePoint Library when I'm already authenticated via the browser?
Please help me to skip this authentication when i try to open office documents from sharepoint library.
Thanks
Jeyaraman SHi Jeyaraman, in addition to Alex's solution, check the following browser settings:
Make sure “Enable protected mode” in security tab & “Require server verification” in “sites” area are unchecked. In “Custom level,” choose “Automatic logon” way at the bottom.
cameron rautmann -
Can't open Office documents from network share
Dear,
I have a user named X that can't open Office documents from two specific shares. We call this shares T and U.
When the user X opens Office documents the error message is "...xlsx can't be opened". The problem is not client specific because when I login on the same client I can open the documents without any problem. If you copy the file to your desktop it
opens fine.
Any idea?Anybody?
We have a problem with a customer that they can't open Office documents(Word,Excel etc.) on Windows 8 image on a network share. The error message is just that they can't open the document. The documents are on a sharepoint site and we can open the documents
within the site and also we can open the Office documents on a Windows 7 image.
I think there is a group policy for Windows 8 for this but I don't know for sure?
Anybody? -
Can't open Office documents from share on Windows 8
We have a problem with a customer that they can't open Office documents(Word,Excel etc.) on Windows 8.1 image on a network share. The error message is just that the document can't open.
The documents are on a sharepoint site and we can open the documents within the site and also we can open the Office documents on a Windows 7 image from the networkshares.
Also can't open the documents if i copy them to the local desktop.
I think there is a group policy for Windows 8 for this but I don't know for sure?
Anybody?Hi,
As I understand, the issue is that customers can’t open office documents on windows 8.1 on a network share or copying them to the local desktop.
Per my test, I can open documents on windows 8.1 on a network share.
1. By default, Word doesn't trust files in temp directories from your browser. You can add the
network address and local address to the trusted list. From Word 2010/2013: Click File > Word Options > Trust Center->trust center setting->add new location.
2. You can create a shortcut on the desktop using the network address and then open the documents by that way.
3. To narrow down the research scope that you can create a new document library->Download a problematic file (an Excel workbook or a word document) to your local->Upload the local file to the new document library->do the same option to check if
the same situation will occur.
There is a similar case:
http://superuser.com/questions/693871/word-2013-wont-open-files-downloaded-trust-center
Best regards
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected].
Hi Sara Fan,
Thanks for your reply.
I have added the profile to the trusted locations but without success. Also a shortcut is not working. I still can't open any Office document on that location(Error message: location ***.xxxx can't be opened). The problem occurs on every client.
1. Opening Office documents under local administrator account, domain admin account is working fine
2. Re-image the machine is not a solution
4. All locations use the same Windows 8.1 image through SCCM
3. When the user logon to another location(site) it's working fine and they can open Office documents so it seems site-specific
4. The problem is specific from 2 sharepoint shares. We can open office documents from other shares.
5. Can't open Office documents from the library on the sharepoint site(browser), but on another location it's working fine.
Problem only occurs on Windows 8.1 image with domain users. Other locations of this company do not have the problem. Note, every location have their own OU for users/clients.
Any other suggestions? -
How can I copy documents from a Sharepoint On Premises library to a Sharepoint Online library and at the same time preserving their metadata?
I use the Open Explorer Windows to drag and drop the files, but the metadata are not copied. Thanks.To maintain the metadata you'll need to use one of the third party tools that does this kind of migration. Metalogix has a product with a free trial that we have used before. (Don't remember whether the free version maintains metadata or not).
You can read about it here:
http://www.metalogix.com/Products/Content-Matrix.aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Pages 2.0.2 doesn't open Pages documents from ipad
Pages 2.0.2 doesn't open Pages documents from ipad 2. Document succesfully transferred as Pages document to computer, but Pages 2.0,2 wouldn;t open it. Version too old?
Pages 2 is iWork '06, two versions behind what the iOS Pages creates. You need to use Pages '09 which you can purchase from the Mac App Store as a stand-alone application or a retail box of the iWork '09 suite.
-
Open Pages documents from an older version
I need to open Pages documents from an older version of Pages that I saved to an external drive from a computer that I no longer have access to. My current operating system is 10.7.5 and I can't upgrade it right now. I see that Pages 5.0 requires 10.10 or higher and I can't find older versions to download and from what I've read, it doesn't sound like I'd be able to open the old documents with the new version anyway. I really need these documents. What can I do?
I found it helpful to convert all my old Pages '08 files to .doc files. They can be opened by the new version of Pages.
Since the new version of Pages is no longer back compatible, and so not good for anything you want to keep for a long time, you might consider using an open source word processing application like Libra Office. That's what I had to do. After seven years of being a happy Pages user - archiving thousands of files in Pages -Apple has abandoned us. I no longer think it is wise to use the new Pages and then five years down the road (or sooner) not to be able to open them in a newer version.
If you would like a quick way to convert your Pages '08 files to .doc, let me know. -
Will not open a document from a website in another tab.
When I am trying to open a document from a website link, a new tab opens in the link but the document is not there, the screen is blank. This happen EVERY time. For example, I just wanted to print a coupon from a department store and I clicked on the link, it opened in another tab and it was blank. The way I solve this is I open up Safari or Google Chrome and open the website and I can then get the coupon to show up. Other people have had this same problem with Firefox. I work at a store that uses printed coupons and people come in and tell me this. This also happens with PDF file links.
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
OS: Windows Server 2008 R2
If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.Hi
Thank you for using
Microsoft Office for IT Professionals Forums.
From your description, we can Create a trusted location follow these steps
Click the Microsoft Office Button , and then click Excel Options.
Click Trust Center, click Trust Center Settings, and then click
Trusted Locations.
If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
box.
Click Add new location.
IMPORTANT We recommended that you don't make your entire
Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
locate the folder.
If you want to include subfolders as trusted locations, select the
Subfolders of this location are also trusted check box.
In the Description box, type what you want to describe the purpose of the trusted location.
Click OK.
More detailed information you can refer to this link:
http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
I can do for you, please feel free to let me know.
Hope that helps.
Sincerely
William Zhou CHN
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Problem opening Office documents from KM
Hello, I have some problem opening Office documents from KM.
We stored a lot of office documents (Excel, Word ecc.) in a File System repository (the standard repository "/documents"), when I open one of these files, before to view the document, a little logon window appears, it asks portal user's credentials.
If the user presses the "Cancel" button the logon window will be closed and the document showed, but on the next attempt to open an office file the system will asks again the user information .
If the user gives the right information the documents will be showed and the logon window does not appear again..
How con I avoid the logon request for each Office document in my repository?
Any suggestion??
Best RegardsThank you a lot Brad!!
We use Office 2003 and the note 549610 solves our issue!!
Best Regards. -
E72 I can not open office documents from my email ...
I have the phone for two months and already I have two problems. For two weeks I can not open office documents from my email and I can not connect the phone via Bluetooth to my computer.
Se7entadi wrote:
i can not open www.icloud.com/activationlock from my iphone . i get this error. Your browser is not supported. to use icloud, we recommend using the latest version of safari, firefox, or internet explorer. i have IOS 7.1.1
So follow the instructions and use one of the recommended browsers. What's the problem? -
Hello! I'm hoping someone can help me with a recent problem on my MacBook Pro. When I try to open a document from one of my files, it only seems to open in a small screen and I can't seem to make that screen any bigger to work on it. Has this happened to anyone else before? Thank you for your answer in advance!
Oh, I wanted to add that trying to drag the little diagonal lines to the right of the page doesn't seem to work.
Maybe you are looking for
-
When I open Firefox I do not get an address bar only Google comes up. I don't get a back or forward button nor do I get the tool bar or menu bar. There is no default button. I read the forum but I can not make any corrections because I don't have a t
-
Android calendar on shows a subset of what's on Google calendar
I have seen so many different posts regarding calendar problems that I'm sorry if this answer is already out there, but I can't find it by searching so I'm going to ask for myself: I have a Google Calendar that works fine when I create/update entries
-
"Mark as played" for podcasts doesnt work in itunes 11.1.3 and Mavericks
Ever since updating to Mavricks, iTunes is not keeping track of my podcasts correctly. If I right click a podcast from the "Unplayed" list and choose "Mark As Played," nothing happens. the podcast stays in that list and the blue dot stays next to the
-
Opening Ports, how to get more than 10 slots
Hello. My Router is a WRT54GS running the latest firmware. I am trying to set my 360 up for Media Sharing using Windows Media Centre. To do this, I have to open up 5 ports in total. I already have 3 slots taken up by the PS3, two for IRC and 1 for ut
-
Revalulation without posting in GL
Hi experts, we have to post an asset revaluation at the 01.01.2009 without posting the accounting documents in GL at the run of the depreciation, because the document manually posted in GL. Please, is there a way to post this operation / transaction