download it here
Filed under: SQL Server | 2 Comments »
Filed under: SQL Server | 2 Comments »
Filed under: Sharepoint | Leave a comment »
Ryan has a posting on a tool used within Microsoft PSS. SPSReport, which is very similar to PSS MPSReports for other products/technologies, collects a ton of information from the SharePoint Portal Server machine on which it is run; that information includes: event logs, metabase/IIS settings, hotfix lists, MD5 sums of relevant directories, important registry entries, etc., etc., etc. The download contains a readme file that contains all of the various reports that it creates. This looks like a nifty tool that can be very helpful in a lot of situations.
Filed under: Sharepoint | 2 Comments »
Filed under: Uncategorized | Leave a comment »
IBF is still alive-and-kicking for those of you who have doubts. I am sure that Microsoft will release pretty soon more information on the path IBF will take in the future. Starting in August, 4 Webcasts will be available:
Filed under: Office | 3 Comments »
It’s possible to consume web services from Excel 2003, but few of the sources seem to cover the topic from end-to-end. This post is intended as a companion to an O’Reilly article on the topic and includes a few elements I found necessary to get it all working.
Here’s the web method we’re going to consume:
[WebMethod (Description="Retrieve the production volume for a given year and region. Returns a single integer.")]
public System.Xml.XmlDocument GetVolume(int year, string region)
{
System.Xml.XmlDocument xd = new System.Xml.XmlDocument();
xd.LoadXml("<root><volume>" + MyNamespace.GetVolume().ToString() + "</volume></root>");
return xd;
}
The MyNamespace.GetVolume method returns a single value which I then pad with a descriptive tag (volume) and a root tag (root). Without the root tag I kept seeing a "root element is missing" error from the VB, and figured it meant my resultset was empty, not that it was looking for an actual element named "root." Note to people who write error messages for a living: concise is nice unless you write error messages for a living. Just two more characters and this could have read "<root> element is missing."
This is the code-behind for the button-click event from the Excel spreadsheet:
Public Sub GetVolume()
Dim objVolumeCalc As clsws_VolumeCalc
Set objVolumeCalc = New clsws_VolumeCalc
Dim lngVolume As Long
Dim objRange As Excel.RangeApplication.ActiveSheet.Range("A2").Activate
Do
If Application.ActiveCell.Value = "" Then
Exit Do
Else
lngVolume = 0
lngVolume = objVolumeCalc.wsm_GetVolume(Application.ActiveCell.Value, "CAN").Item(0).TextSet objRange = Application.ActiveCell.Offset(ColumnOffset:=1)
objRange.Value = lngVolume
objRange.Activate
Set objRange = Application.ActiveCell.Offset(RowOffset:=1, ColumnOffset:=-1)
objRange.Activate
End If
LoopEnd Sub
The companion article shows how to install and use the Office 2003 Web Services Toolkit to create the web service reference. This creates a proxy class in your VB code-behind to make the web service calls. The next frustrating error I received was "argument not optional." At that time my WS call looked like this:
lngVolume = objVolumeCalc.wsm_GetVolume(Application.ActiveCell.Value, "CAN")
The question being, "which argument is missing?" It was apparently the argument for the item specifier I hadn’t yet added:
lngVolume = objVolumeCalc.wsm_GetVolume(Application.ActiveCell.Value, "CAN").Item(0).Text
Happily, the string is auto-basically converted to a long, and getting this line right was the final trick to getting the spreadsheet working. What does the rest do? Well, it uses the values from cell A2 on down to populate the cells from cell B2 on down with the results of the web service calls. This code came from an article that is now otherwise outdated.
The end-result is a form with a button that looks something like this:
Filed under: Office | 5 Comments »
Filed under: Sharepoint | Leave a comment »
Ian mentioned me about a new (minor) version of SMove. Major new feature is drag and drop Copy of Lists and Document Libraries, across sites, including properties and versions.
"SMove is a SharePoint Utility that takes the pain out of common SharePoint administration and development tasks."
Click here for more info, or a trial version.
Filed under: Sharepoint | Leave a comment »
Peter Himschoot, our RD here in Belgium, has made his demo he did during the ASP.NET 2.0 Web Parts session available online. Together with it, you can download the detailed demo script.
And if you want to watch a video presentation demonstrating the creation of Web Parts, click here.
Filed under: Sharepoint | Leave a comment »
Filed under: Uncategorized | 3 Comments »