Find Public Key Token of my Project in Visual Studio 2012

In order to find the public key token of your project you need to follow this: 1. Open the Developer Command Prompt fot VS2012. 2. Write this command (Use full path of your DLL file): sn -T C:MyDLLdirectoryMyDLLfile.dll 3. Automatically it shows you your token: Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.17929 Copyright …

Sigue leyendo Find Public Key Token of my Project in Visual Studio 2012

Project Professional: Get Current Project Resource Rates with VBA

You can obtain the Current Project Resource Rates by the following code in Visual Basic for Applications: Public Sub UpdateCostRates() Dim ProjectName As Project Set ProjectName = ActiveProject Dim N As Assignment Dim Names As String For Each T In ProjectName.Tasks For Each I In T.Resources For Each P In I.Assignments Set N = P …

Sigue leyendo Project Professional: Get Current Project Resource Rates with VBA

SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

Sometimes, when you're developing a visual web part, the designer file (with .g.cs extension) dissapears in front of your eyes. After finding nothing in the internet, we've just discovered why it is happening: You've to add the "Site URL" property in the Project properties. That's beacuse it is a web part for sharepoint, and Visual …

Sigue leyendo SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

ERROR Retrieving the COM class factory for component with CLSID {'XXX...'} failed due to the following error: 80040154. CAUSE You're trying to build your project in x86 and you've to do it in x64. SOLUTION 1. Go To Your Project Properties. 2. Select 'Build' (Left Tabs). 3. Change the property 'Platform Target' to 'Any CPU' …

Sigue leyendo ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

Obtener Última Celda de Excel Aunque No Todas Tengan Información con Visual Basic For Applications

Podemos encontrarnos con una situación en la que necesitemos saber el número de filas o de columnas de una tabla dinámica (por ejemplo) en la que hay campos que para no repetirse están ocultos. Si queremos saber cuantas filas tiene una columna, pero puede que haya elementos ocultos, no nos sirve utilizar el simple "xlDown" …

Sigue leyendo Obtener Última Celda de Excel Aunque No Todas Tengan Información con Visual Basic For Applications

Crear WebPart para SharePoint en Visual Studio 2010

Para crear un WebPart con código y añadirlo después a una página de SharePoint debemos seguir estos pasos: 1. Creamos un nuevo proyecto en Visual Studio 2010 a partir de la plantilla "Elemento web visual" (Visual WebPart). Cuando nos pregunte sobre el sitio que deseamos usar para la depuración, seleccionamos nuestro Sitio. 2. Dentro del …

Sigue leyendo Crear WebPart para SharePoint en Visual Studio 2010