I am developing a add-in for outlook using VS2008, C#.
I am trying to figure out a way to allow user to specify some settings during the installation and use them in the add-in.
seeking ways I don't have to write use registry.
thanks in advance~
Thanks,
I actually decided to read the outlook addins registry for the installed location and have configuration file copied there during installation. so far it works fine :)
app.config, and make sure that it's copied to dll directory?
Its an Addin, so how exactly is
app.config, and make sure that it's
copied to dll directory?
going to help?
Basically you would need to create a file called Outlook.exe.config and put it in the Office12 folder with Outlook.exe (c:\Program Files\Microsoft Office\Office12)
If you do this it will get loaded, the only potential issue is that it is also available to any other addins that are loaded into the outlook.exe process.
A better idea is just as the OP suggested an use an arbitary config file copied to the targetdir and read it from there.
Related
We have a customer with their SFTP site, and I would like to copy files from specific folder, by using any automated process.
One of the example which I found, is winscp.net, but I have not managed how to use it, for my purpose.
http://www.itworld.com/article/2928599/windows/how-to-automate-sftp-file-transfers-in-microsoft-windows.html
QUESTION: All I will need is not run script and the file should be copied from their directory to my local folder. Is it possible at all?
I found the way of using PSFTP(Putty) to connect to the server, but how to make it automatically, do not know.
I think its a good solution for your problem.
You have to install winscp and the code some files and it will do automaticaly. I used 3 or 4 times. Also you need the key for your SFTP to connect throught it.
Here a link to the guide step by step.
https://winscp.net/eng/docs/guides
Here is a link to the scripting webpage
https://winscp.net/eng/docs/scripting
I recommend you to create an ini file to load all of the characteristics of your ftp connection and then execute an script over this.
It can be launched like that
WinSCP.com /ini=[your ini file] /script=[Your script file(what you want to do when it is connect)]
Hope this helps!.
I have developed an add-in (xlam) for Excel 2013 (some users have 2010) that contains half a dozen macros.
I used to load it from UNC path on the server and that worked great, but every time I need to update it, all the users have to quit excel because it's locked. There are now too many users in multiple buildings, so this is approach is no longer viable. I need to find a way to deploy new version of the macro-enabled workbook and the add-in, so that it works on local PC's.
We use Microsoft SCCM at work, so I figured, no problems, I'll just deploy the add-in to the users' local add-in directory (%APPDATA%/Microst/Addins). This works fine. The problem is when I send them an updated version of the macro enabled worksheet that uses the add-in (which changes fairly frequently), %appdata% has been expanded to my user name and of course the path to the add-in is not valid on someone else's machine.
I figured, no problems, I'll make a common dir on everyone's machine (C:\Program Files\CompanyName\Addins) and install the add-in there, so that the path is valid on all machines. I open my workbook, load the add-in and test it. Works great.
I have a DisplayVersions macro that shows the correct version and the path I just loaded the addin from (C:\Program Files\CompanyName\Addins) as the Addin path.
I save the worksheet, quit Excel. Next time I open it, it's trying to load it from my %appdata%/Microsoft/Addins directory and of course it doesn't exist there. It never asked me if I wanted to copy it there.
This is driving me mad. There HAS to be a way to deploy an add-in and a worksheet, so it will work from all local PC's
Anyone got any suggestions
Regards
Mark
I am learning how to use the Ajax Control Toolkit using VB.NET in code-behind in Visual Studio 10.0.40219.1 SP1Rel, .NET 4.0.30319 SP1Rel. I have been to many websites and tried lots of code, using the AnimationExtender. The sample that came with the toolkit works perfectly, but on
http://localhost:1049/
which is different from my "view code in browser" url:
http://localhost:4258/
When I change the url to mine, I get this error:
Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.
Nothing in the installation instructions mentions this. I can't run the page I'm using to learn how to use the AnimationExtender. I am at a loss, and I can't find anything like this on Google or here.
Thanks!
Matty's suggestion to check the sample project sent me back to the directory where I'd unzipped it, then checked the file AjaxControlToolkit.Binary.NET40.zip, which had the AjaxMin.dll file in it. I had admin move the file to C:\Program Files\Microsoft Visual Studio 10.0\VB\Bin (I don't know if that directory matters, it works for me), then in VS added the DLL as a reference to the project. The few errors I've gotten since are nothing to do with ajaxmin.
I had the same problem, I had to copy the file AjaxMin.dll from where I extracted the AjaxControlToolkit.Binary.NET40.zip, to my project's bin folder. i.e. C:\Users\MyUserName\Documents\Visual Studio 2010\Projects\MyProject\MyProject\bin
Rebuilt the solution and this time worked fine..
Hope that will help you :)
I'm trying to setup Microsoft reporting on a shared hosted server. I've set up the web.config files with the necessary entries and uploaded the assemblies Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.WebForms.dll as well as the file Microsoft.ReportViewer.xml via FTP.
The site loads OK, but when I try to load a report a get a missing reference to Microsoft.ReportViewer.ProcessingObjectModel.dll. If I can get a hold of a copy of this dll, can I expect the report view to work? If so, what's the best way to get a copy? Or should I start trying to cajole the server administrator to run ReportViewer.exe?
This project is using Visual Studio 2008.
It appears that the answer is yes. I had never extracted a file from the GAC before, but it was pretty easy by following the command line method described in this question. Once the correct version of Microsoft.ReportViewer.ProcessingObjectModel.dll was extracted from the GAC on my development machine and uploaded to the site, the reports started working.
I have created a web part using VSeWSS 1.3. It creates a wsp file and my web part gets installed, everything works great.
I would like to also create a folder in the LAYOUTS directory of the 12 hive and place a couple files in there. How do I go about doing this? I know that I can manually place the files there, but I would prefer to have it all done in one fell swoop when I uses stsadm to install my solution.
Is there a best practices guide out there for using VSeWSS 1.3 to do this? They changed a bunch of stuff with this new version and I want to make sure I don't mess anything up.
You can create a new folder structure in your webpart project, like:
Templates/Layouts/CustomFolder and put your files in the CustomFolder directory and include them in your project.
When you go to the WSP View in Visual Studio, you can see in the manifest.xml that your files are being included in the deployment.
I have done this successfully on multiple projects now.
In case anyone is wondering, the VSeWSS 1.3 user guide is incredibly helpful. It is installed to the same directory as the tool itself, default in C:\Program Files\Microsoft SharePoint Developer Tools 9.0\VSeWSS13.CHM
You can see a working example with screenshots Here
A simple step-by-step tutorial for the above, along with deploy/retract scripts is here at Add New Files To 12-Hive Through A SharePoint Solution. Just follow the steps and in a few minutes you'll be able to add whatever you want to the 12-Hive!