Compartilhar via


SPUtility.GetHtmlTranslateUrlFromExt Method

Returns the Universal Resource Locator (URL) of a back-end converter program that is used to handle a request when the client computer does not have the Microsoft Office application installed.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub GetHtmlTranslateUrlFromExt ( _
    web As SPWeb, _
    strExtension As String, _
    <OutAttribute> ByRef strHandlerUrl As String _
)
'Usage
Dim web As SPWeb
Dim strExtension As String
Dim strHandlerUrl As StringSPUtility.GetHtmlTranslateUrlFromExt(web, _
    strExtension, strHandlerUrl)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void GetHtmlTranslateUrlFromExt(
    SPWeb web,
    string strExtension,
    out string strHandlerUrl
)

Parameters

  • strExtension
    Type: System.String

    A string that contains the file name extension of the file that is converted.

  • strHandlerUrl
    Type: System.String

    A string that contains the URL of the converter program.

Remarks

For an overview of HTML translation, see Programming with the Microsoft.HtmlTrans Namespace.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace