我正在寻找Lync 2010的客户端和服务器端API.但我找到了许多能够开发的API.任何人都有什么区别?请帮忙
Microsoft Lync Server 2010 SDK http://www.microsoft.com/downloads/en/details.aspx?FamilyID=58ccf6fd-31db-4f15-bafb-c5ef28afc5fc
Microsoft统一通信托管API 3.0软件开发工具包 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=4493BAAB-6214-4770-8CF9-69C813E8A9FA
Microsoft Unified Communications Client API SDK
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=82c468da-3294-4ca9-bbcc-d455cfd06af2
我想在水平滚动div中显示一些记录.我正在使用Twitter Bootstrap并设置了一个div行,每个数据记录都表示为一列.
如果我需要为这部分转储Bootstrap网格那么这很好,我并没有按照设计的方式使用它我怀疑...如果我不使用Twitter Bootstrap这部分那么我的问题几乎完全相同防止浮动的div包装到新行.在这个问题上接受的答案的问题是,它假设您可以计算容器的总宽度.在我的例子中,项目div的数量是动态的.
我正在寻找一个纯CSS/HTML解决方案.如果需要Javascript,我使用的是没有jQuery的AngularJS.
我的例子:http://jsfiddle.net/V5zWT/2/
CSS
.DocumentList
{
overflow-x:scroll;
overflow-y:hidden;
height:200px;
width:100%;
padding: 0 15px;
}
.DocumentItem
{
border:1px solid black;
padding:0;
height:200px;
}
Run Code Online (Sandbox Code Playgroud)
HTML
<div class="DocumentList">
<div class="row">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 DocumentItem">
Record 12345
<br/>
More data
<br />
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 DocumentItem">
Record 12345
<br/>
More data
<br />
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 DocumentItem">
Record 12345
<br/>
More data
<br />
</div>
<div class="col-xs-3 col-sm-3 …
Run Code Online (Sandbox Code Playgroud) 澄清一点:我没有任何问题在我的jQuery ajax调用中添加自定义标头,我希望自动将我的自定义标头添加到所有ajax调用中.
如果你看一下jquery $ .ajax自定义http头问题(不是我的问题),你会看到一个非常好的例子,说明如果手动为每个ajax调用实现代码的工作方式.
我想覆盖所有jQuery ajax调用的beforeSend.据jQuery的文档,我可以利用这样做jQuery.ajaxSetup() ,但有一个警告,说你可能不应该,可能会导致意外的行为,所有的东西.对于这种全局回调,他们建议使用.ajaxStart(). .ajaxStart()看起来很棒,除了它不公开XHR所以我可以添加标题.
我应该使用ajaxSetup添加beforeSend吗?有没有办法从ajaxStart访问XHR?其他选择?
我有一个Listview,其中有一个复选框作为列之一.如果我点击实际复选框的任何位置,ListView的SelectedItem将按预期设置为当前选定的行.另一方面,如果我单击复选框(不先单击该行),则SelectedItem为null或先前单击的行.
谁能帮我吗....
干杯
<ListView Width="auto" SelectionMode="Single" x:Name="listBox" ItemsSource="{Binding MyData}" SelectedItem="{Binding Path=SelectedMyData}">
<ListView.View>
<GridView>
<GridViewColumn Header="Date" Width="120">
<GridViewColumn.CellTemplate>
<DataTemplate>
<ContentPresenter Style="{StaticResource DateTimeContent}" Content="{Binding MyDate}"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="Is Correct" Width="100">
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox IsThreeState="False"
Checked="OnChkChecked"
Unchecked="OnChkChecked"
IsChecked="{Binding IsCorrect}"></CheckBox>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox IsThreeState="False"
Checked="OnChkChecked"
Unchecked="OnChkChecked"
IsChecked="{Binding IsCorrect}"></CheckBox>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
Run Code Online (Sandbox Code Playgroud) 对于遇到同样问题的人来说,这不是一个问题.
发生以下错误:
System.DirectoryServices.AccountManagement.PrincipalOperationException: An error (87) occurred while enumerating the groups. The group's SID could not be resolved.
at System.DirectoryServices.AccountManagement.SidList.TranslateSids(String target, IntPtr[] pSids)
at System.DirectoryServices.AccountManagement.SidList.ctor(List`1 sidListByteFormat, String target, NetCred credentials)
at System.DirectoryServices.AccountManagement.ADDNLinkedAttrSet.TranslateForeignMembers()
Run Code Online (Sandbox Code Playgroud)
运行以下代码并且组或子组包含ForeignSecurityPrincipal时:
private static void GetUsersFromGroup()
{
var groupDistinguishedName = "CN=IIS_IUSRS,CN=Builtin,DC=Domain,DC=com";
//NB: Exception thrown during iteration of members rather than call to GetMembers.
using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "Domain", "Username", "Password"))
{
using (GroupPrincipal groupPrincipal = GroupPrincipal.FindByIdentity(ctx, IdentityType.DistinguishedName, groupDistinguishedName))
{
using (var searchResults = groupPrincipal.GetMembers(true))//Occurs when false also. …
Run Code Online (Sandbox Code Playgroud) 当我在visual studio中通过调试模式运行我的网站时,一切看起来都很棒,页面上的所有图像都很好.但是,一旦我将我的网站部署到IIS7网络服务器(怀疑其他版本会有所作为,但你永远不知道),那么用户在登录之前无法看到网站上的图像.
该网站是一个asp.net MVC网站,我是MVC的新手,虽然我有很多asp.net表单的经验.似乎只允许经过身份验证的用户访问images文件夹,并且我的web.config中有一个授权部分,说只有管理员可以访问该站点,所以我该如何创建它以便所有用户,经过身份验证或以其他方式查看图像?
- 更新 -
我尝试了一下建议的配置块,从我能说的一切都很有道理,但它似乎没有什么区别.下面的示例包含路径的内容/图像,但在此之前我只尝试了内容,因为可以访问其中的所有内容.我也尝试将allowOverride设置为false,这似乎也没有什么区别.
<location path="Content/Images">
<system.web>
<authorization>
<allow users ="*" />
</authorization>
</system.web>
</location>
Run Code Online (Sandbox Code Playgroud)
- 更新2-- 有趣的是,我甚至没有在web.config中看到任何明确的拒绝条目,只是允许管理员,当我进入IIS 7并使用UI允许所有用户访问它没有在列表中显示任何拒绝的内容目录.但是,当我从我的个人计算机上调试它时,这个项目工作得很好,只有在我部署它之后我才有问题......
<authorization>
<allow roles="admin" />
</authorization>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
Run Code Online (Sandbox Code Playgroud) 我正在制定验证文件的流程,以确保它们符合公司标准.其中一个步骤是确保Word文档不使用未经批准的字体.
我有以下代码存根,它有效:
Dim wordApplication As Word.ApplicationClass = New Word.ApplicationClass()
Dim wordDocument As Word.Document = Nothing
Dim fontList As New List(Of String)()
Try
wordDocument = wordApplication.Documents.Open(FileName:="document Path")
'I've also tried using a for loop with an integer counter, no change in speed'
For Each c As Word.Range In wordDocument.Characters
If Not fontList.Contains(c.Font.Name) Then
fontList.Add(c.Font.Name)
End If
Next
Run Code Online (Sandbox Code Playgroud)
但这非常慢!令人难以置信的慢= 2500字符/分钟(我用StopWatch计时).我的大多数文件大约是6000字/ 30,000个字符(约25页).但有一些文件在100页的页面中......
有更快的方法吗?我必须支持Office 2003格式文件,因此Open XML SDK不是一个选项.
--UPDATE--
我尝试将其作为Word宏运行(使用@ http://word.tips.net/Pages/T001522_Creating_a_Document_Font_List.html中找到的代码),它运行得更快(一分钟内).不幸的是,出于我的目的,我不相信宏会起作用.
--UPDATE#2--
我接受了Chris的建议并将文档转换为Open XML格式.然后我使用以下代码查找所有RunFonts对象并读取字体名称:
Using docP As WordprocessingDocument = WordprocessingDocument.Open(tmpPath, False)
Dim …
Run Code Online (Sandbox Code Playgroud) 我正在创建一个pdf,需要在页面中放置一条水平线.任何人都可以告诉你该怎么做?
我有一个xml文件,其中包含我的html标签(<table>....</table>
).并且xml
文件的整个内容被解析string
为用于创建的文件pdf
.现在不支持某些标签.其中之一是<hr>
.那么我可以在xml
文件中使用任何其他标记,以便line
在使用xml数据创建pdf时绘制
.
下面是xml xontent的示例
<table>
<tr>
<td>
<span>
This is working properly.
</span>
</td>
<tr>
</table>
<table>
<tr>
<td>
<span>
<hr>
This is not working properly.
</span>
</td>
<tr>
</table>
Run Code Online (Sandbox Code Playgroud)
如果需要更多信息,请告诉我.
提前致谢.
我使用Exchange Web服务调用GetRoomLists,我们正在运行Exchange 2010.以下代码正在通过控制台应用程序执行.根据"无错误"的XML响应,调用成功,但不返回任何数据.当您尝试通过Outlook约会添加一个时,我们列出了几百个房间,因此不确定为什么会发生这种情况.
我已尝试使用EWS DLL版本1.2和2.0,使用默认凭据或传入凭据.我注意到在最初发布之后,响应标题显示我们正在使用Exchange 2012 SP2,因此我尝试更新我的代码以使用该ExchangeVersion枚举值,但结果没有变化.
我已成功在此Exchange服务器上使用EWS来读取邮箱,但之前从未使用过房间.
C#
ExchangeService es = new ExchangeService(ExchangeVersion.Exchange2010);
es.TraceFlags = TraceFlags.EwsResponse | TraceFlags.EwsRequest;
es.TraceEnabled = true;
es.UseDefaultCredentials = true;
es.AutodiscoverUrl("autodiscover@example.com");
//this collection is empty after processing
EmailAddressCollection eac = es.GetRoomLists();
Run Code Online (Sandbox Code Playgroud)
来自Web服务请求/响应的XML跟踪
<Trace Tag="EwsRequest" Tid="9" Time="2013-03-13 20:39:41Z" Version="14.03.0032.000">
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010" />
</soap:Header>
<soap:Body>
<m:GetRoomLists />
</soap:Body>
</soap:Envelope>
</Trace>
<Trace Tag="EwsResponse" Tid="9" Time="2013-03-13 20:39:41Z" Version="14.03.0032.000">
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14" MinorVersion="2" MajorBuildNumber="328" MinorBuildNumber="9" Version="Exchange2010_SP2" …
Run Code Online (Sandbox Code Playgroud) 我在VS2010中有一个存储在TFS 2010团队项目中的.NET 4网站.我需要在网站上添加对System.Data.Linq.dll的引用.我正在引用另一个项目中定义的LINQ DataContext,我得到构建错误,说我需要对System.Data.Linq的引用.我进入"添加引用"菜单选项并像我任何普通引用一样添加它,它甚至显示在Web.config和网站的属性页面中......但是如果我构建我仍然得到同样的错误.
所以我在我的代码中找到了一个地方,我引用了LINQ计数函数,它告诉我它无效,因为我错过了一个引用,它提供了自动添加引用.我告诉它自动添加引用,正是在这一点上我得到了主题中提到的错误:
TF14040:可能无法检出文件夹$/Folder/Subfolder.没有物品被检出
我在网上做了一些研究,但我找不到多少.我在博客上看到,让文件夹不能直接解决他的问题,但除非我误解了某些内容,否则它似乎对我不起作用.
我尝试将项目从源代码控制加载到一台新的计算机上,之前从未加载过该项目,我可以用同样的方式重现问题.非常感谢帮助.
asp.net ×3
c# ×3
.net ×1
ajax ×1
angularjs ×1
asp.net-mvc ×1
checkbox ×1
css ×1
http-headers ×1
iis-7 ×1
itextsharp ×1
jquery ×1
listview ×1
lync ×1
ms-word ×1
ocs ×1
selecteditem ×1
tfs ×1
tfs2010 ×1
uccapi ×1
ucma ×1
vb.net ×1
web-services ×1
wpf ×1