SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the following to open a template document from one location which will be saved to a another location:

<a href="javascript:'" onclick="CoreInvoke(&#39;createNewDocumentWithRedirect2&#39;,event,&#39;https:\u002f\\u002fsites\u002fTesting\u002fShared Documents\u002ftemplate.docx&#39;, &#39;https:\u002f\\u002fsites\u002fTesting\u002fShared Documents&#39;, &#39;SharePoint.OpenDocuments&#39;, false, &#39;;, true, 1); return false;" href="#">CreateNewDocument</a>

This works fine on my PC where the document opens in word (desktop app) and when I press save it picks up my (destination document library) location.

The issue is my tablet (IPad). The link direct me to a form page which asks for the Document Name. After pressing OK, I receive a failed to create file error.

Any suggestions for altering the above script to force SharePoint to use Office Web App instead of opening the doc in the desktop app? I think this might overcome my issue.

share|improve this question
Why do you have two href attributes on your link? – Robert Lindgren May 6 '13 at 8:48
no reason. good point. removed thehref="'javascript:'. The issue remains, however I have added some more details above. – LeeRayM May 10 '13 at 2:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.