Hi,
We are trying to integrate Zoho Remote API on our server...
All is fine width Zoho Writer ... read/write docs is OK !
But with Sheet and Show... we can read documents, and save... but the changes are'nt really saved...
Do we forget any thing ?
Then url for submitting ... : http://www.soludesk.com/zohoa.html (you can use it ... )
The code :
<form method="POST" action="http://export.writer.zoho.com/remotedoc.im?apikey=07d54740819543ec46003acca43d6251&output=editor" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/cahierdeschargesSVI.doc">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="cahierdeschargesSVI.doc">
<input type="hidden" name="id" value="1234567788998888">
<input type="hidden" name="format" value="doc">
<input type="hidden" name="persistence" value="true">
<input type="submit" value="Writer Editor" class="divbutton" name="submit">
</form>
<form method="POST" action="http://export.writer.zoho.com/remotedoc.im?apikey=07d54740819543ec46003acca43d6251&output=url" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/cahierdeschargesSVI.doc">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="cahierdeschargesSVI.doc">
<input type="hidden" name="id" value="1234567788998888">
<input type="hidden" name="format" value="doc">
<input type="hidden" name="persistence" value="true">
<input type="submit" value="Writer URL" class="divbutton" name="submit">
</form>
<form method="POST" action="http://sheet.zoho.com/remotedoc.im?apikey=2771f071e80e5de18119209c5606c303&output=editor" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/anvar.xls">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="anvar.xls">
<input type="hidden" name="id" value="1234567788998889">
<input type="hidden" name="format" value="xls">
<input type="hidden" name="persistence" value="true">
<input type="submit" value="sheet Editor" class="divbutton" name="submit">
</form>
<form method="POST" action="http://sheet.zoho.com/remotedoc.im?apikey=2771f071e80e5de18119209c5606c303&output=url" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/anvar.xls">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="anvar.xls">
<input type="hidden" name="id" value="1234567788998889">
<input type="hidden" name="format" value="xls">
<input type="hidden" name="persistence" value="true">
<input type="submit" value="sheet URL" class="divbutton" name="submit">
</form>
<form method="POST" action="http://show.zoho.com/remotedoc.im?apikey=07d54740819543ec46003acca43d6251&output=editor" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/dddddd.ppt">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="dddddd.ppt">
<input type="hidden" name="id" value="1234567788998887">
<input type="hidden" name="format" value="ppt">
<input type="submit" value="show" class="divbutton" name="submit">
</form>
<form method="POST" action="http://show.zoho.com/remotedoc.im?apikey=07d54740819543ec46003acca43d6251&output=url" target="_blank">
<input type="hidden" name="url" value="http://www.soludesk.com/datas/documents/A.161/archives/dddddd.ppt">
<input type="hidden" name="saveurl" value="http://www.soludesk.com/savedoc.aspx">
<input type="hidden" name="filename" value="dddddd.ppt">
<input type="hidden" name="id" value="1234567788998887">
<input type="hidden" name="format" value="ppt">
<input type="submit" value="show URL" class="divbutton" name="submit">
</form>
Here is the code of the saving page :
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim m_objFile As HttpPostedFile
Dim filename As String
m_objFile = Request.Files("content")
filename =m_objFile.FileName().Substring(m_objFile.FileName().IndexOf("_") + 1)
Request.Files("content").SaveAs("C:\Inetpub\wwwroot\soludesk\datas\documents\A.161\archives\" & filename)
End Sub
</SCRIPT>
As you can see, nothing special... can you help us ?
I can confirm you that rights for writing are ok ...
The real strange behaviour is taht it's ok for writer and not for sheet and show...
Thanks
Writer is a powerful online word processor, designed for collaborative work.