I’m testing the trial version of Edraw Component for Word v.7.4 befor upgrade from my version.
Everything it’s ok except SaveToServer : I’ve tried out both streaming and none, as in the sample code, but I’ve always the same message « Saved successfully ! » but it’s not so.
I’m developing an .asp application.
I can’t debug the UploadAction.aspx page because of the post method and I don’t know witch is the problem.
What does HttpPost method do?
My code in the SavetoServer method is :
[…]
document.getElementById(“OA1”).HttpInit
document.getElementById(“OA1”).HttpAddPostOpenedFile(myFile)
document.getElementById(“OA1”).HttpPost(myUploadPage)
Where myFile is initialized with the full logical path of the file on the server (es. \\Server_name\directory1\..\document.doc)
And myUploadPage is initialized with UploadAction.aspx location (es. http://…/UploadAction.aspx)
I’ve notice that when I open a file from the server the method IsReadOnly return allways true also if is not so.
I’ve tried also to give a new name to the file when I save to the server (replacing the original name with another in myFile variable), but no trace of the new file instead I receive the message « Save successfully ! ».
I’m developing also in C# for a .NET application that use framework 4 and here I’ve a different behaviour: I get error 17 corresponding to eSC_EndRequestFailed. What about this error ? when occur ?
Thanks for your attention
One Response to “SavetoServer and UploadAction.aspx”
Leave a Reply
You must be logged in to post a comment.
November 18th, 2011 at 3:00 pm
About the upload, you can referent the follow page:
http://www.edrawsoft.com/httpupload-office-files.php
In the install folder, there is an asp.net and html test project.
You can find them at
install folder\samples\html
—> run the wordviewer.htm then open a file and click the save to server.
install folder\samples\asp.net
How to add Edraw Viewer Component to your ASP.NET project
1. Open Visual Studio.
2. Create a new ASP.NET project.
3. Don not attempt to add the Edraw Viewer Component to the Toolbox. It is a client component. You can add it as the HTML Object.
4. Copy all files at the ASP.NET to the new project folder. ( UploadAction.aspx UploadAction.aspx.cs Default.aspx.cs Default.aspx)
5. Then add exist items…
6. Modify the Server Port in the Default.aspx.
6. Run.
The HttpPost method are posting the open file as the standard file stream to any page which to receipt the stream.
The url parameter in the httppost method can’t has the ? or #.
If you have any question, please feel free to contact us.