I'm currently developing an add-in aimed to edit office documents stored in a codendi forge.
First problem was the read only flag on my file. A simple ‘save as’ solved that problem.
This solution was ok until I removed codendi’s cookie then instead of my file I received an error page.
What I want to do is to be able to catch an event triggered by office before it starts downloading the file. Then I can prompt the user for authentication and recreate a cookie by myself without the need for the user to open internet explorer and sign in.
Is there a way to catch an event indicating that word, excel and powerpoint are about to start a download?
Thanks in advance
I'm not sure I really understand what you want to do.
I don't think any office application actually downloads the wanted file, it is downloaded by your browser in a temporary file and therefrom opened by it.
I think that if you want to edit the file from you client, the best way would be to use the soap interface, which is part of Codendi. Have a look to
[yourforgehostname]/soap
[yourforgehostname]/soap/codendi.wsdl.php?wsdl
If you want to see the wsdl in a more readable form consider using
http://tomi.vanek.sk/index.php?page=wsdl-viewer
One of the supported API is login
Hope it helps
Related
I am trying to create an Outlook plugin which will ask the user couple of Question like URL/Username etc when they try to install the plugin. Then want to save those data in a text file which can be access later on when needed.
Can someone please help me with this. I am very new in Plugin development.
Thanks
If your adddin is not configured on startup, display the necessary prompts when it is used for the very first time.
I want to write a code in c# for adding save to web(custom url) for saving word documents, for this microsoft has explained some registry editing here
http://msdn.microsoft.com/en-us/library/office/ff709802%28v=office.14%29.aspx
first thing i want to know is, i am not able to know where these files would be saved after editing registry, means where is the url i am giving to save files, i have edited registry directly without any code, i am able to see save to gmail option,in ms word, but not able to sign in, so what went wrong with me in that
second thing i want to know, how to create web service for the saving word document, i am totally new to web service.
if anyone can help me with the code of web service and explaining the details of first question, please help
thank you
I have a lotus notes web form in which computer-illiterate customers will use to attach Excel files and submit them to our company. I am using a Lotus Notes File Upload Control to allow them to do this, however, I need to default this File Upload Control to a certain directory location. I have already created a C# application the customers will be using, which places all of these excel files in a certain directory location, hence the reason I need to focus this File Upload Control. Unfortunately, some of the customers are computer challenged enough to not know how to navigate to these files on their own. Is this possible at all?
I'm assuming the users will be visiting a web page with the File Upload control, yes? If I'm misunderstanding please let me know and I'll delete this answer.
The simple answer is it isn't possible. The problem is that the browser can't know anything about the file structure of the clients that visit the site, so a "default path" property doesn't really make sense. It would likely only work in very specific environments (which is maybe true in your case, but not across the web in general)
I would investigate using the Notes API to have the C# program handle the upload without involving the browser client use of the file upload control. I don't know enough Java to be sure, but perhaps that might also be an option -- basically writing your own custom upload control that only asks the user for the filename.
You may also be seriously underestimating the ability of the users to follow directions. If your page identifies which directory the file will be found in, I expect most users will be able to follow the directions and upload from the correct directory.
So, I'm sure that accomplishing what you want to accomplish is possible in Notes, just not as simply as adding a default directory to the File Upload Control.
I am making a web browser in C Sharp, I want that all the files downloaded by the user on this web browser from any web sites, web browser saves it in one default folder (i.e C:\Users\Abc\Downloads)
Currently when i try to download file from any url it pops up a dialogue box asking for path, and it is annoying thing to have so i just wants to give one default path where it just saves the file automatically without asking user for the path.
Like we have default download path for Mozila firefox and google whenever user download any file from the web browser it saves in one default folder. so how can I achieve this in .net 4.0 Csharp web browser.
I'm afraid you can't with the webbrowser control,
maybe take a look at
http://www.mono-project.com/WebBrowser
first you don't use IE, and you can do more if I'm right
Regards,
Corné
If you're using the WebBrowser control in c# this can be somewhat of a challenge, but have a look at this link which might help you, I've tried it myself with good results.
http://www.codeproject.com/Articles/31163/Suppressing-Hosted-WebBrowser-Control-Dialogs
Good Luck! :)
Edit:
You might want to look into this solution to your issue as well:
Automated filedownload using WebBrowser without url
:)
I'm trying to develop a Point of Purchase sign creator.
The best way that I can think of going about this is using a powerpoint slide to create the POP.
The problem that I'm having with this is I can find pages after pages of information to open up a presentation, but I can't seem to find anything that'll let me open the actual powerpoint file for editing. The client will not need to make new textboxes or anything of that sort, but will need to be able to edit them.
Currently I'm using a web browser to view the ppt presentation but as I mentioned, it is merely a presentation.
private void Form1_Load(object sender, EventArgs e)
{
this.webBrowser1.Navigate("about.blank");
string path = "C:\\Users\\Test\\test.ppt";
this.webBrowser1.Navigate(path);
}
Thank you in advance
p.s. I do have Office Interop referenced in the project but it seems that everything is so situationally specific that I cannot find much information to help me out.
It would be good if you could provide a little more info on exactly how flexible the editing needs to be, and what version of PowerPoint you are targeting. From your question and approach you appear to be looking for access to all of the capabilities. This is not something that you are going to be able to do easily with your approach.
A few other options which might work for you:
Use the Open XML format and generate the PPT from an external data source. This seems a lot cleaner to me but you have less flexibility than your current approach. You would need to capture user's changes yourself and then generate the file to preview.
Copy a PPT file to a temp file and open it in PowerPoint for editing. Then allow the user to edit and update it. When they close the temp file capture it and bring them back to your main application. The user has full access to the PPT file to do what they want but you have a lot of edge cases to handle. eg. what if they close the file and don't exit PowerPoint etc.
Write a PowerPoint add-in that works with your application, and make some Ribbon customisations. The user will get the full PowerPoint experience but there will be custom support for your application on the Ribbon and the user can just click to have the finished PPT sent back to your application. This seems like it would be more maintainable than option 2 since you are probably going to use more standard APIs and a user has to click your "finish" button to complete the process meaning that you have a clearly defined end point instead of watching for user behaviour that you could miss.