小编zyt*_*ham的帖子

如何在Outlook中为自定义按钮添加图像图标

我在Outlook中有一个自定义按钮,我必须为同一个按钮添加图像图标.

功能区XML是:

<button id="GoToAppConfiguration" 
    label="Application Configuration" 
    getImage="GetCustomImage" 
    onAction="GoToAppConfigurationClicked" 
    size="normal" />
Run Code Online (Sandbox Code Playgroud)

我想编写功能区回调方法但是如何编写相同的内容以及如何使用存储在Addin项目下的Resource文件夹中的图像.

c# outlook add-in ribbon-control

10
推荐指数
1
解决办法
8287
查看次数

如何区分Outlook 2010中的内嵌图像和附件[C#]

嗨,我必须使用C#在Outlook 2010的本地目录中分别阅读附件和内联图像.我已经使用了属性和内容ID概念.我正在使用以下代码,但它现在正在工作.

if (mailItem.Attachments.Count > 0)
{
    /*for (int i = 1; i <= mailItem.Attachments.Count; i++)
    {
    string filePath = Path.Combine(destinationDirectory, mailItem.Attachments[i].FileName);
    mailItem.Attachments[i].SaveAsFile(filePath);
    AttachmentDetails.Add(filePath);
    }*/

    foreach (Outlook.Attachment atmt in mailItem.Attachments)
    {
        MessageBox.Show("inside for each loop" );
        prop = atmt.PropertyAccessor;
        string contentID = (string)prop.GetProperty(SchemaPR_ATTACH_CONTENT_ID);
        MessageBox.Show("content if is " +contentID);

        if (contentID != "")
        {
            MessageBox.Show("inside if loop");
            string filePath = Path.Combine(destinationDirectory, atmt.FileName);
            MessageBox.Show(filePath);
            atmt.SaveAsFile(filePath);
            AttachmentDetails.Add(filePath);
        }
        else
        {
            MessageBox.Show("inside else loop");
            string filePath = Path.Combine(destinationDirectoryT, atmt.FileName);
            atmt.SaveAsFile(filePath);
            AttachmentDetails.Add(filePath);
        }
    }
} …
Run Code Online (Sandbox Code Playgroud)

c# msdn mailitem outlook-addin

5
推荐指数
1
解决办法
3942
查看次数

JSTL c:forEach在Facelets中不起作用

我有一个名为test.xhtml的文件我试图在Facelets中使用foreach访问哈希映射,但它没有显示键值对,我的代码如下所示.这是怎么造成的,我该如何解决?

    <html xmlns:c="http://java.sun.com/jstl/core" xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
    <title>JSTL Simple Conditional Execution Example</title>
</head>
<h:body>
    <f:view>
        <c:forEach var="nameMap" items="${specificationAutogege.details}">
            <p> ${nameMap.key}</p>
        </c:forEach>
    </f:view>
</h:body>
Run Code Online (Sandbox Code Playgroud)

是否可以在Facelets中使用JSTL?

HTML输出呈现如下:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core">
<head>
    <title>JSTL Simple Conditional Execution Example</title>
</head>
<body>
    <c:forEach var="nameMap" items="{Versnellingsk=A very long text come here, Kleur=ZWART Two, Model=3008, Carrosiere=5 deures MPV, A very long text come here=Date Here, BrandShoert=E, Type=3008 Hybrid4 2.0 HDi, Merk=Peugeot, Bowjaar=2011 Shortgate}" varstatus="true">
        <p/>
    </c:forEach>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

jsf jstl facelets

5
推荐指数
1
解决办法
1万
查看次数

const char [22]'到'LPCWSTR'

error C2664: 'MessageBoxW' : cannot convert parameter 3 from 'const char [22]' to 'LPCWSTR'
     Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Run Code Online (Sandbox Code Playgroud)

我试图在下面执行此代码并获得上述错误.

bool RegistryHandler::readRegistryEntry(String^ referencePath, String^ keyName, String ^keyValue)
{
    HKEY keyHandle;
    LPCTSTR sk = TEXT("SOFTWARE\\Microsoft\\Office\\Outlook\\Addins\\GoToApp");
    wchar_t  rgValue [1024];
    wchar_t fnlRes [1024];
    DWORD size1;
    DWORD Type;
    if( RegOpenKeyEx(HKEY_CURRENT_USER, sk,0,KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS)
         {
            size1=1023;
            RegQueryValueEx( keyHandle,L"ApplicationUrl", NULL, &Type,(LPBYTE)rgValue,&size1);
            MessageBoxW(NULL,L"inside for readindg",L"Native Addin",MB_OK);
            MessageBoxW(NULL,rgValue, "Product ID of Windows", MB_OK);
         }     
    else {
            MessageBoxW(NULL,L"inside for else",L"Native …
Run Code Online (Sandbox Code Playgroud)

c++ type-conversion visual-c++

1
推荐指数
1
解决办法
6654
查看次数

每个jsf的C都不起作用.JSF

我试图在jsf 2.0中使用带有hashmap或table的c foreach但是它没有工作所以我写了一个这样的简单代码仍然这个不工作....请帮助我失踪的地方...

<body>
<f:view>
    <c:forEach var="i" begin="1" end="20" step="1" varStatus ="status">
        <c:out value="#{i}" /> 
    </c:forEach>
</f:view>
Run Code Online (Sandbox Code Playgroud)

和输出为此我得到这样的..

#{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} #{i} 
Run Code Online (Sandbox Code Playgroud)

java jsf jstl

0
推荐指数
1
解决办法
6398
查看次数