SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs



Add to Technorati Favorites

Jun 262007

Visual Studio 2005 Keyboard Shortcut References

You can download an overview for Default Visual Studio 2005 Shortcuts for C+ here.


Published: 6/26/2007  7:26 PM | 0  Comments | 0  Links to this post
Tagged as: Visual Studio

Jun 252007

„File not found“ error

If somehow the path to your masterpage is broken, you will get an error message like "file not found" when you access a website. This could happen if you create a new site from a template, which comes from another server. You can open your site in SharePoint Designer, though.

The KB article A subsite that you create in SharePoint Server 2007 does not inherit master page settings from its parent site, and you receive error messages on the Site Master Page Settings page describes this problem. You can solve it by enabling and disabling the Publishing feature in your sitesettings.


Published: 6/25/2007  6:26 PM | 0  Comments | 0  Links to this post
Tagged as: SharePoint

Jun 242007

Open Office 2007 files from WSS V2/SPS 2003

You all know, that you can open a document via the context menu in SharePoint in editmode in an Office Application. This does not work, if you save e.g. a .docx.

But help is on the way: Icons that represent 2007 Office files are incorrect, and the "Edit in Microsoft Office <ProgramName>" option does not appear in a document library in SharePoint Portal Server 2003 or in Windows SharePoint Services 2.0

RESOLUTION

Modify the Docicon.xml file and the Htmltransinfo.xml file to include the file name extensions of the 2007 Office file types that you want. Perform this procedure on each front-end Web server on the server farm. To modify the Docicon.xml file and the Htmltransinfo.xml file to include the file name extensions of 2007 Office file types, follow these steps.
Note The following procedure shows you how to add support for Microsoft Office Word 2007 documents (.docx). Use the same procedure to add support for Microsoft Office Excel 2007 files (.xlsx) and for Microsoft Office PowerPoint 2007 files (.pptx).

1. Start Windows Explorer, and then locate the following folder:
Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml

2. Modify the Docicon.xml file. To do this, follow these steps:

a. Open the Docicon.xml file.

b. Locate, and then copy the following line:
<Mapping Key="doc" Value="icdoc.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>

c. Paste the line under the line that you copied, and then modify it so that it reads as follows:
<Mapping Key="docx" Value="icdoc.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>

3. Modify the Htmltransinfo.xml file. To do this, follow these steps:

a. Locate, and then copy the following line:
<Mapping Extension="doc" AcceptHeader="application/msword" HandlerUrl="Htmltranslate.aspx" ProgId="SharePoint.OpenDocuments.2"/>

b. Paste the line under the line that you copied, and then modify it so that it reads as follows:
<Mapping Extension="docx" AcceptHeader="application/msword" HandlerUrl="" ProgId="SharePoint.OpenDocuments.2"/>

4. Repeat step 2 and step 3 for each 2007 Office file type that you want. Make sure that you use the appropriate file name extension. For example, do one or both of the following:

• To add support for .pptx files, modify the line that you add to the Docicon.xml file and the Htmltransinfo.xml file to include Mapping Key="pptx" parameter.

• To add support for .xlsx files, modify the line that you add to the Docicon.xml file and the Htmltransinfo.xml file to include Mapping Key="xlsx" parameter.

5. Restart Internet Information Services (IIS). To do this, click Start, click Run, type iisreset, and then click OK.


Published: 6/24/2007  11:57 AM | 0  Comments | 0  Links to this post
Tagged as: SharePoint

Jun 232007

How to get LookupField Information from a listItem

If you want the ID or the value form a LookupField, you can get it easily with this code snippet:

SPListItem item = getitsomewhare...
SPFieldLookupValue lf =
    (SPFieldLookupValue)
     item.ParentList.Fields.GetField(_FieldName).GetFieldValue(
     item.GetFormattedValue(_FieldName));

if you got the field, fetch its properties via

if (lf == null)
{
    int itemID = lf.LookupId;
    string itemValue = lf.LookupValue;
}
Have fun ;-)

Published: 6/23/2007  1:29 PM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint, SPField