Excel add-in does not load automatically to my excel test file when running in visual studio - visual-studio

When I use the "new workbook" option as the start document, the add-in loads automatically but when i add my own test file it doesn't load. I have to go to manually start it in the insert tab.
How do i fix it?

I figured it out:
Simply click save in Excel after loading the app from the insert menu.

Related

how to run the NetOffice example?

I'm checking NetOffice and trying to run a simple example from below:
https://github.com/NetOfficeFw/Samples/tree/master/Excel/02%20NetOffice%20Excel%20COMAddin%20Sample/01%20Simple
how can run this example in visual studio? ideally I think it should be opening a blank Excel which contains addin, but when debugging, it just an error "In order to debug this project , add an executable project to this solution...."
so what executable project I need to add?
thanks,
To debug this example, you must do two steps:
The add-in must be registered in the registry to load it when starting Excel.
This step is done automatically, when you built the add-in (this is part of the NetOffice "magic" with the COMAddin attribute).
You can do the registration of the add-in manually too by using regasm.exe.
Excel must be started so that the add-in is loaded and the debugger can be used.
I prefer to set this up in the project properties. Go in the project properties on the tab Debug, go on Start external program and select the path of the excel.exe on your computer.
You could also start Excel and attach the project debugging to the Excel process.
If you have done the two steps, then start debugging by clicking F5. Now Excel starts. If you set a breakpoint, then it should be reached either at the Excel starting process or when you open a workbook in Excel.

wanna have a designer for a REPX file - VS13/DevExpress

I want to open a repx file with a designer.
(but now, I only see the code behind)
I have installed Visual Studio 2013 and DevExpress.
I just want to add 3 paramters to a printer lable.
The existing file was made with XtraReport - maybe that helps.
Thx.
First, open or create a blank XtraReport file in design mode in Visual Studio. Then, click on the Tasks tag on the upper-left corner of the report design surface. From the pop-up menu, click on "Open/Import" and select a .repx file.

Browser links are not showing in Visual Studio 2013

I am using Visual Studio 2013. I don't no what happened to VS,now it is not showing Browsers list.How to overcome from this problem please suggest me.
Include screenshot of the project / solution list. I believe somehow you are opening a .csproj project file for a non MVC application even though it has all the code files that look like a MVC application. For instance someone may have created a windows form application and imported all the MVC / .cs files from a MVC ASP .NET project.
If you included that screenshot we could see the icon next to the project to rule that out as a potential cause.
Alternatively you can try reset your visual studio 2013 settings by doing the following:
1.On the Tools menu, click Import and Export Settings.
2.On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
3.If you want to save your current settings combination, click Yes, save my current settings, specify a file name, and then click Next.
—or—
If you want to delete your current settings combination, choose No, just reset settings, overwriting my current settings, and then click Next. This option does not delete default settings, which will still be available the next time you use the wizard.
4.In Which collection of settings do you want to reset to, select a settings collection from the list.
5.Click Finish.

Pressing F5 in Visual Studio opens selected file

I have been a bit hesitant to post this as a question as I'm sure I'm missing something obvious...
When I press F5 in Visual Studio 2012 it builds my web app and launches in IE with whatever file is currently selected file in the solution explorer. So if I've got a html file selected I'll get that html page displayed, or if I've got an aspx file selected then it will try to open that particular page.
My expected behaviour when I press F5 is that it will run the application not the individual files I may happen to be working on. So when I press F5 I want it to build and launch my web app which is set as the startup project BTW.
So either I need to have my expectations adjusted or I'm being totally thick...
I'm not positive I understand -- are you expecting visual studio to run some sort of index/login/etc. page instead of what you're currently looking at?
If so:
right click the project
select properties
select web
set the specific page

RDLC file opens as text only not in the designer

I have an RDLC file that opens as text only (xml) not in the designer,
how can I force it back to default to open with the designer. (I need to go back and forth).
I swear I saw this on Stack already, but for the google of me I can't find it.
This problem comes when we change the default settings for any file type in visual studio.
Follow the steps given below to fix such issues:
You can right click on the file!
Select open with
Click on Report Designer.
Click on 'Set as Default'
Click OK
You should be all set now. It will now always open in Report Designer.
I just had this issue...
I resolved by adding a new Report to the project, which opened in the designer.
After the designer opened correctly, the existing reports also opened in the designer as not as XML.

Resources